Simulating the use of a splitter
-
Hello, I have a form set up so that it auto-magically resizes its controls when a horizontal splitter is moved. However, when the user resizes the form it is possible for some controls to end up being too small, or pushed out of the form's visible area altogether. I have found that just a click on the horizontal splitter fixes everything up. So I thought I would just add code to do invoke the splitter in the form's resize event. Only I can't find a way to do that. Is there a way to fake having the user move the splitter?
Clive Pottinger Victoria, BC
-
Hello, I have a form set up so that it auto-magically resizes its controls when a horizontal splitter is moved. However, when the user resizes the form it is possible for some controls to end up being too small, or pushed out of the form's visible area altogether. I have found that just a click on the horizontal splitter fixes everything up. So I thought I would just add code to do invoke the splitter in the form's resize event. Only I can't find a way to do that. Is there a way to fake having the user move the splitter?
Clive Pottinger Victoria, BC
-
Sorry I haven't got an answer but i *HAD* to congratualte you on the word 'auto-magically'! :-D
-
Hello, I have a form set up so that it auto-magically resizes its controls when a horizontal splitter is moved. However, when the user resizes the form it is possible for some controls to end up being too small, or pushed out of the form's visible area altogether. I have found that just a click on the horizontal splitter fixes everything up. So I thought I would just add code to do invoke the splitter in the form's resize event. Only I can't find a way to do that. Is there a way to fake having the user move the splitter?
Clive Pottinger Victoria, BC
cpotting wrote:
Is there a way to fake having the user move the splitter?
Would an
Invalidate()
followed by anUpdate()
work instead? Looks like the window needs to be completely refreshed in order for the controls to render properly. This bug is in the Win32 layer and has been around for years. :( /raviThis is your brain on Celcius Home | Music | Articles | Freeware ravib(at)ravib(dot)com