Placing An Image In The Center Of A Dialog.
Posted: Sun Dec 22, 2019 8:15 am
Hi Guys!!
I am trying to put a small image into the center of my dialog and am having some troubles. I have a fair idea that this is a simple progress, but having no luck. My code is as follows:
Any help would be greatly appreciated!!
Many Thanks,
Googie.
I am trying to put a small image into the center of my dialog and am having some troubles. I have a fair idea that this is a simple progress, but having no luck. My code is as follows:
Code: Select all
on mouseUp
put the width of this stack into width1
put the height of this stack into height1
divide width1 by 2
divide height1 by 2
set the center of image "Icon.png" to width1
end mouseUp
Many Thanks,
Googie.