I always add code where appropriate to reduce flicker and such.
There have been a couple of instances now where much searching and tearing code (and hair!) apart has revealed a source of irritating flicker to be the ResizeGadget() command. Switching this for MoveWindow_() with the 'bRepaint' flag set to false has removed the flicker completely.
Could you perhaps therefore consider adding such a flag to the ResizeGadget() command (perhaps make it an optional parameter) ? I know opting not to repaint the gadget in question can lead to all kinds of repaint problems, but in my case I always have a lot of custom code for erasing and painting anyhow and consequently such an option is very useful.
Just thought it might help those working on Linux as well etc.
Thanks.
I may look like a mule, but I'm not a complete ass.
If this request is accepted (I strongly support it) then there should be a native
RepaintGadget() as well. It wouldn't make sense to use a native command and then
be forced to use the API to repaint the gadget...
I have put in a simple request for the addition of a simple flag to the ResizeGadget() command. The addition of a snippet of code will add nothing to the arguments for or against such an addition as I think that my reasons for making the request are clear enough.
Either Fred/Timo will agree with the validity of my request of they will not, but I do not believe that either would require some code before making their decision.
I may look like a mule, but I'm not a complete ass.
> always add code where appropriate to reduce flicker and such.
> Could you perhaps therefore consider adding such a flag to the ResizeGadget() command
I hope, I understand you correctly, but do you know the urpose of SmartWindowRefresh()? It's exactly for reducing flickering.
In my opinion, this command should be improved, instead of modifying other principles.
(I hope, my opinion matches this topic...)
SmartWindowRefresh() is neither appropriate or effective in the situations in which I endeavour to combat flicker (and yes I did try it whilst hunting down the original problem). I am talking about working with individual gadgets -not the entire parent window etc.
Beside's, SmartWindowRefresh() is not something I would ever need because of all the custom painting and erasing which I usually undertake.
The purpose of my original post was not to point Fred/Timo towards some desperately needed feature (as using MoveWindow_() in my situation is pretty trivial) but to essentially request a crossplatform feature -nothing more!
I may look like a mule, but I'm not a complete ass.