1. Another (different) UI question; bug in Win32Lib or no?
- Posted by Mike777 <anon4321 at g??il.com> Apr 16, 2008
- 541 views
- Last edited Apr 17, 2008
In the last few hours I've posted on attempting to access a group control through its label. I understand that is a no go. This is similar. What about a tab index? My experiments indicate that when one clicks on the tab page indicator (the little tab area at the top), the caption for that control gains focus (in the literal sense). For example, assuming there are 6 tab indexes (pages) on a single tab control, when one clicks on the caption of, say, page 4, you will see the caption for page 4 encased in a rectangular set of dots. One would expect that the return from the getFocus() function would be the control id of the tab page (the tab index). When I do that, instead the underlying tab control's ID is returned. At that point, I have no way of telling (do I?) that the 4th of 6 tabs was selected. Is this a bug in Win32Lib? If it isn't a bug, is there a way to tell what the tab index is of the page that truly has the focus, if the tab caption is selected (in the sense that the rectangular dots are visible on the screen)? I'm talking about testing from within a menu item routine, not from a command button, in case that matters. Thanks Mike
2. Re: Another (different) UI question; bug in Win32Lib or no?
- Posted by Derek Parnell <ddparnell at big?ond.com> Apr 17, 2008
- 528 views
Mike777 wrote: > > In the last few hours I've posted on attempting to access a group control > through > its label. I understand that is a no go. Yeah, the group control does not get notified of mouse clicks. > What about a tab index? To find out which tab page is currently on display I think you can use the getControlInfo function ... pageid = getControlInfo( tabcontrolid, CONTROLINFO_focus ) -- Derek Parnell Melbourne, Australia Skype name: derek.j.parnell
3. Re: Another (different) UI question; bug in Win32Lib or no?
- Posted by Mike777 <anon4321 at ?mail?com> Apr 17, 2008
- 539 views
Derek Parnell wrote: > > What about a tab index? > > To find out which tab page is currently on display I think you can use the > getControlInfo > function ... > > pageid = getControlInfo( tabcontrolid, CONTROLINFO_focus ) Indeed I can. Thank you. Mike
4. Re: Another (different) UI question; bug in Win32Lib or no?
- Posted by Mike777 <anon4321 at g?ail.?om> Apr 18, 2008
- 519 views
Mike777 wrote: > > Derek Parnell wrote: > > > What about a tab index? > > > > To find out which tab page is currently on display I think you can use the > > getControlInfo > > function ... > > > > pageid = getControlInfo( tabcontrolid, CONTROLINFO_focus ) > > Indeed I can. Of course, since I'm using win32Lib, another approach would have been to use the win32Lib function: pageid = getTabItem(tabcontrolid) Mike