Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.visual.basic    |    MS Visual Basic discussions, NOT dot-net    |    10,840 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 8,869 of 10,840    |
|    Calan to All    |
|    Problem with changing backcolor of pictu    |
|    10 Oct 04 13:48:02    |
      From: none@nospam.com              I have a form with some picture boxes as buttons. I'm setting the picture       property to a gif file for "normal", and to a different gif for the       "pressed" state. This works fine. I get into trouble with the fact that the       gif files have a transperent region in the middle (the button icon) that       lets the back color of the picture box show through. This lets me change the       button highlight to any user-specified color when I mouseover the picbox       (which is done very inefficiently I might add, but that's another story).              Everything works, except that I get occasional flicker that shows through       the image as the backcolor is changing. Is there a way to change the picture       box backcolor without any flicker? I've tried setting it to invisible and       then back, played with z-order, LockWindowUpdate API, etc., all to no avail.       Some type of memory painting/swapping maybe?              Any help is greatly appreciated. Any good advice for an efficient       "mouseover" event for controls would also be greatly appreciated.              Thanks much in advance              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca