[PB4.20] ImageGadget does not refresh automatically

Mac OSX specific forum
jamirokwai
Enthusiast
Enthusiast
Posts: 799
Joined: Tue May 20, 2008 2:12 am
Location: Cologne, Germany
Contact:

[PB4.20] ImageGadget does not refresh automatically

Post by jamirokwai »

In a little tool (which is to be announced later this year), the user can
chose different colors for different objects. I implemented the color-chosers
with ImageGadgets to press, which contain images of the chosen color. When
I change color via colorrequester, the image is drawn in the new chosen color.
But: the windows is not refreshed automatically. My workaraound is as follows:

Code: Select all

  DisableWindow(#fenster,1)
  ; redraw your images here
  DisableWindow(#fenster,0)
There is only a little delay, and the new color is displayed. I needed to
code about 10 pre-alpha-versions of that tool to realize this... :O

Hopefully, future versions of PB support background-color inside StringGadgets
on Mac OS, which could be the fault of Mac OS also... See here:
http://www.purebasic.fr/english/viewtopic.php?t=32980

My Application is in no way suitable for handicapet people, so please
do not comment on barrier-free design because of the ImageGadgets... :)
Regards,
JamiroKwai