Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: TImageControl causes a dialog box to open (Windows)


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Last Post: Jan 14, 2017 12:13 PM Last Post By: Dave Nottage
Frank Yingst

Posts: 175
Registered: 1/19/05
TImageControl causes a dialog box to open (Windows)  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 13, 2017 11:15 PM
While running the app, If I click on the Image Control it opens a dialog box and seems to want an image to be selected even though it already has an image It only does this in Windows, works fine on the Android device. How can I disable this behavior? I do want to click on it still, but just execute the code that I have written for it and do nothing else.
Dave Nottage

Posts: 1,850
Registered: 1/7/00
Re: TImageControl causes a dialog box to open (Windows)  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 14, 2017 12:13 PM   in response to: Frank Yingst in response to: Frank Yingst
Frank Yingst wrote:

While running the app, If I click on the Image Control it opens a dialog box and seems to want an image to be
selected even though it already has an image It only does this in Windows, works fine on the Android device. How can
I disable this behavior? I do want to click on it still, but just execute the code that I have written for it and do
nothing else.

Set the EnableOpenDialog property to False.

--
Dave Nottage [MVP, TeamB]
Hints, tips and tricks at: http://www.delphiworlds.com/blog
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02