1. Another (different) UI question; bug in Win32Lib or no?

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

new topic     » topic index » view message » categorize

2. Re: Another (different) UI question; bug in Win32Lib or no?

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

new topic     » goto parent     » topic index » view message » categorize

3. Re: Another (different) UI question; bug in Win32Lib or no?

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

new topic     » goto parent     » topic index » view message » categorize

4. Re: Another (different) UI question; bug in Win32Lib or no?

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu