Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
PeterPanino
Posted - Jul 06 2020 : 08:01:10 In the click-event-handler of a control which has no Action property I call a TImageEnViewPromptToOpen action:
ImageEnViewPromptToOpen1.Execute;
Unfortunately, this does not work while ImageEnView1.Visible = False.
The reason for ImageEnView1 being invisible at that time: ImageEnView1 is made visible only in a successive general processing step where an image file is being passed to the app.
Obviously, the ImageEnViewPromptToOpen1 action must pass the loaded file to ImageEnView1 through my custom routine, not by loading it implicitly in ImageEnView1.
So how can I execute the ImageEnViewPromptToOpen1 action while ImageEnView1 is still invisible?
2 L A T E S T R E P L I E S (Newest First)
xequte
Posted - Jul 06 2020 : 16:37:03 Hi Peter
That's correct. None of the TImageEnView actions will fire on an invisible or disabled control. You have found the best solution.