gettingstarted
[Top] [All Lists]

TabPanelIndex property

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: TabPanelIndex property
From: Wayne Dreier <wwdmld at earthlink dot net>
Date: Fri, 28 Nov 2003 14:07:21 -0500
In order to test some code, I created a new project. In the default window I placed a tabpanel. On Tab 0 I placed an Editfield and a pushbutton. On Tab 1 I also placed an EditField and a pushbutton.

In the action sub of the pushbutton on tab 0 I put the following code:

TabPanel1.TabPanelIndex = 2

In the action sub of pushbutton on tab 1 I put the following code:

TabPanel1.TabPanelIndex = 1

When I run the app from the IDE the window opens and everything displays properly meaning each tab has the proper editfield and pushbutton. I can move back and forth by clicking the tabs and each panel continues to display the proper controls.

However, if I click the pushbutton on tab 0 nothing appears to change but then when I click on tab 1 the editfield is gone; the proper pushbutton is there.

There are other combinations that also show up depending upon whether I click a tab or the pushbutton and at some point one of the tabs has neither an editfield or a pushbutton.

The LR warns that using the property of TabPanelIndex may require a change in code at some point in the future. Is the explanation in the LR no longer accurate?

I'm using RB 5.2.4 and OS X 10.1.5.

Wayne


- - -
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>