Replace picture with double click, keeping object properties
Posted: Fri Jan 17, 2014 12:47 pm
I have a .RVF-file with a (temporary) picture. I want the end-user to replace this picture by double click on the picture, keeping object properties (visible size and spacing)
It should be a short cut to the File Dialog you get by richtclick on the picture, select Object Properties and then press the button Change.
It's necessery to set the Initial Directory!
ANY SUGGESTIONS?
I have tried by using the ActionInsertPicture
srvActionsResource.rvActionInsertPicture1.OnExecute := nil;
srvActionsResource.rvActionInsertPicture1.InitialDir := 'c:\';
srvActionsResource.rvActionInsertPicture1.MaxImageSize := 100;
srvActionsResource.rvActionInsertPicture1.Spacing := 5;
srvActionsResource.rvActionInsertPicture1.Execute;
srvActionsResource.rvActionInsertPicture1.OnExecute := srvActionsResource.rvActionInsertPicture1Execute;
but then i need to get the Object Properties of the double clicked picture to set
srvActionsResource.rvActionInsertPicture1.MaxImageSize
srvActionsResource.rvActionInsertPicture1.Spacing
I can not find out how
ANY SUGGESTIONS?
It should be a short cut to the File Dialog you get by richtclick on the picture, select Object Properties and then press the button Change.
It's necessery to set the Initial Directory!
ANY SUGGESTIONS?
I have tried by using the ActionInsertPicture
srvActionsResource.rvActionInsertPicture1.OnExecute := nil;
srvActionsResource.rvActionInsertPicture1.InitialDir := 'c:\';
srvActionsResource.rvActionInsertPicture1.MaxImageSize := 100;
srvActionsResource.rvActionInsertPicture1.Spacing := 5;
srvActionsResource.rvActionInsertPicture1.Execute;
srvActionsResource.rvActionInsertPicture1.OnExecute := srvActionsResource.rvActionInsertPicture1Execute;
but then i need to get the Object Properties of the double clicked picture to set
srvActionsResource.rvActionInsertPicture1.MaxImageSize
srvActionsResource.rvActionInsertPicture1.Spacing
I can not find out how
ANY SUGGESTIONS?