Board index » cppbuilder » How to refresh all control on Tab ?
Jacek Dobaczewski
CBuilder Developer |
How to refresh all control on Tab ?2004-07-14 08:19:26 AM cppbuilder89 Hi, That question is so basic that I'm surprised that I can't find the answer in documentation. I would like to set the controls values taken from the remote system only when Tab is activated or if user change server connection (so constructor is not an option). To do that I added new Component inherited from TEdit with modified Update method. I would like to call this method for active TabSheet when user switch Tabs or when user change server. Problem is that Update is never called. How can I force the TabSheet to call Update() for all controls on the sheet? I tried to add my own OnShow() method and call PaintControls( GetDeviceContext(&WindowHandle), NULL); inside but it doesn't work. I see that OnShow is activated but I don't see any Window Messages flowing. I also don't see Update function is called when I put other window on top of my application to force refresh. May be the original Update() from TEdit is called instead of my function? Any help will be appreciated Jacek |