1. activateTabItems()?

------=_NextPart_000_001D_01C063C6.32F279C0
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I have another much smaller problem to figure out but haven't obviously.

If I have a TabControl with several TabItems and my user selects
TabItem[x]  and closes the Child Window
then later opens the Child Window the default TabItem has the Controls
of TabItems[1]  yet the Tab Selected button appears to be
always the TabItem Last selected when the Child Window was closed first.

activateTabItem() doesn't work.

Any Suggestions other than RTFM?
euman at bellsouth.net


------=_NextPart_000_001D_01C063C6.32F279C0
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I have another much smaller problem to =
figure out=20
but haven't obviously.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>If I have a TabControl with several =
TabItems and my=20
user selects</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>TabItem[x]&nbsp; and closes the Child=20
Window</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>then later opens the Child Window the =
default=20
TabItem has the Controls</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>of TabItems[1]&nbsp; yet the Tab =
Selected button=20
appears to be</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>always the TabItem Last selected when =
the Child=20
Window was closed first.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>activateTabItem() doesn't =
work.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Any Suggestions other than =
RTFM?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><A=20

------=_NextPart_000_001D_01C063C6.32F279C0--

new topic     » topic index » view message » categorize

2. Re: activateTabItems()?

Derek
I suppose in all the madness I had stuck setFocus in the wrong place
which led me to believe that wouldnt work either but in light of your
responce I thought about it again and yes setFocus worked
I have an onClose for the ChildWin that got in the way.

Thanks Derek, I truly appreciate it.
euman at bellsouth.net


----- Original Message -----
From: Derek Parnell <derekp at SOLACE.COM.AU>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Tuesday, December 12, 2000 12:01 AM
Subject: Re: activateTabItems()?


> Hi Euman,
>
> >If I have a TabControl with several TabItems and my user
> >selects TabItem[x]  and closes the Child Window then later
> >opens the Child Window the default TabItem has the Controls
> >of TabItems[1]  yet the Tab Selected button appears to be
> >always the TabItem Last selected when the Child Window was
> >closed first.
> >
> >activateTabItem() doesn't work.
> >
> >Any Suggestions other than RTFM?
>
> I've just fininished rewriting activeTabItems() this afternoon. There were
a
> number of problems with it that now seem to have been cleared up. It now
> correctly displays the controls in the tabitem, and even allows nested
> tabcontrols. However, the problem you have found is due to openWindow()
> having hardcoded the display of the first tabitem rather than the current
> tabitem. When win32LIb closes a window, it actually just hides it, thus
> anything that Windows manages for the window is still active - like which
is
> the current tabitem. I'll change openWindow() to display the current
> tabitem.
>
> In the mean time you can use setFocus() on the tabitem you want displayed
> when the window opens.
>
> eg.
>
>     closeWindow(ChildWindow)
>     .
>     .
>     .
>     -- Force the tabitem called 'tab2' to display next.
>     setFocus(tab2)
>     -- Open the window.
>     openWindow(ChildWindow)
>
>
> -----
> cheers,
> Derek Parnell
>

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

3. Re: activateTabItems()?

Hi Derek,

now that you have fixed the tabitems problem, is there a chance to get a
prerelease-version??

Greetings,

Sascha

--
Sent through GMX FreeMail - http://www.gmx.net

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

Search



Quick Links

User menu

Not signed in.

Misc Menu