compare pictures in dialog

4 posts / 0 new
Last post
KieliJan
Offline
Joined: 11/21/2018 - 04:15
compare pictures in dialog

Hi @ all,
i tried to compare 2 pictures within a dialog.
But it doesn't work. Has someone a suggestion to solve the problem?
Thanks a lot
Jan

Brian Element's picture
Brian Element
Offline
Joined: 07/11/2012 - 19:57

Hi Jan,

Just curious why you are trying to compare two pictures in the dialog.  The picture function in the dialog is very limited so what you are trying to do, I believe, is not possible.

Brian

KieliJan
Offline
Joined: 11/21/2018 - 04:15

Hi Brian,
I wanted to make the dialogue more dynamic and appealing.Therefore the image content should be based on the selection of a checkbox or an option button.
In my company the integration of other programming languages in IDEA is limited, so that I can realize my idea exclusively with IDEA script - or even not ...
I thought the solution would be to compare the ID of the image or bitmap file with a path and the file stored there:
==> If "Picture1" = Client.WorkingDirectory() & Pfad & "01_blank_blue.bmp" Then    'Pfad (in german) = path
Thank you very much for your appreciation.
Jan

Brian Element's picture
Brian Element
Offline
Joined: 07/11/2012 - 19:57

I don't think there is anyway of changing the picture without closing the dialog and reopening it.  Once you the bmp has been selected it can't be changed so long as the dialog is open.  If you are using 10.3 or above you could probably do this through a Python dialog using Tkinter.

Brian