RE: Weird Behavior in Win32Lib App
- Posted by Matt Lewis <matthewwalkerlewis at yahoo.com> Aug 21, 2003
- 417 views
C. K. Lester wrote: > > > Hopefully somebody can point me to a clue regarding this one. The > following code creates a window with three tabs. Upon starting the > program, the display of the first tab is screwed up. Clicking on > another tab, then back to the first clears it up. > > Also, when I try to disable the 2nd and 3rd tabs, it totally > disables all items on tab 1. > The code is as follows: > procedure main() > setVisible( msgWindow, False ) > setFocus( tab_Step1 ) > centerWindow( mainWin ) > openWindow(mainWin, Normal) > WinMain( mainWin,Normal ) > end procedure Is there a reason for putting openWindow() in there? If you get rid of that, then everything is positioned properly. As for setEnable(), it enables/disables the TabControl, since TabItems aren't really controls themselves. The easiest thing to do is probably to make a sequence that contains all the controls on each tab item, and disable/enable them that way. The user will be able to click between the tabs, but won't be able to do anything there. Another option would be to make the stuff visible only when it's needed and make it invisible after it's needed. Then it would act a little more like the install wizards everyone is used to. Matt Lewis