[PB4.20] ImageGadget does not refresh automatically
Posted: Mon Jun 23, 2008 10:28 pm
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:
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...
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)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...