Xojo Conferences
XDCMay2019MiamiUSA

Getting Tab Panel Tab Index (Real Studio getting started Mailinglist archive)

Back to the thread list
Previous thread: RegEx and variables
Next thread: Contextual menu


RB Database   -   tom.russell transport.alstom.com
  Getting Tab Panel Tab Index   -   Chuck Pelto
   Re: Getting Tab Panel Tab Index   -   Paul Goodrich
    Re: Getting Tab Panel Tab Index   -   Chuck Pelto
     Re: Getting Tab Panel Tab Index   -   Paul Goodrich
      Re: Getting Tab Panel Tab Index   -   Chuck Pelto
      Re: Getting Tab Panel Tab Index   -   Chuck Pelto
       Re: Getting Tab Panel Tab Index   -   Paul Goodrich
    Re: Getting Tab Panel Tab Index   -   Chuck Pelto

Getting Tab Panel Tab Index
Date: 02.02.05 18:48 (Wed, 2 Feb 2005 10:48:36 -0700)
From: Chuck Pelto
Greetings,

Trying to get the index value of a tab when it is selected.

Here's the code I'm using....

dim tbIndex as integer

tbIndex = tbPrefs.Index // where tbPrefs is the name of the tab panel
in the modal window being worked in

What I'm getting is -213943233134 in tbIndex after that call.

What's going worng?

Thanks,

Chuck

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

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

Re: Getting Tab Panel Tab Index
Date: 02.02.05 20:16 (Wed, 02 Feb 2005 11:16:39 -0800)
From: Paul Goodrich
on 2/2/05 9:48 AM, Chuck Pelto wrote:

> Greetings,
>
> Trying to get the index value of a tab when it is selected.
>
> Here's the code I'm using....
>
> dim tbIndex as integer
>
> tbIndex = tbPrefs.Index // where tbPrefs is the name of the tab panel
> in the modal window being worked in
>
> What I'm getting is -213943233134 in tbIndex after that call.
>
> What's going worng?
>
Try using tbprefs.value as it is value that contains the number of the
currently selected tab. Check out the LR PagePanel control. 0 is the first
page/tab...

HTH,

Paul

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

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

Re: Getting Tab Panel Tab Index
Date: 02.02.05 20:54 (Wed, 2 Feb 2005 12:54:19 -0700)
From: Chuck Pelto
Actually, I am using the tbprefs.value call.

I keep getting a return of -2147483648.

However, if I apply 1 to the value, before the next step in the
process, the method behaves properly.

What can be causing this improper return value for the call of
tbprefs.value?

Regards,

Chuck

On Feb 2, 2005, at 12:16 PM, Paul Goodrich wrote:

> on 2/2/05 9:48 AM, Chuck Pelto wrote:
>
>> Greetings,
>>
>> Trying to get the index value of a tab when it is selected.
>>
>> Here's the code I'm using....
>>
>> dim tbIndex as integer
>>
>> tbIndex = tbPrefs.Index // where tbPrefs is the name of the tab panel
>> in the modal window being worked in
>>
>> What I'm getting is -213943233134 in tbIndex after that call.
>>
>> What's going worng?
>>
> Try using tbprefs.value as it is value that contains the number of the
> currently selected tab. Check out the LR PagePanel control. 0 is the
> first
> page/tab...
>
> HTH,
>
> Paul
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> Search the archives of this list here:
> <http://www.realsoftware.com/listarchives/lists.html>

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

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

Re: Getting Tab Panel Tab Index
Date: 02.02.05 21:18 (Wed, 02 Feb 2005 12:18:59 -0800)
From: Paul Goodrich

on 2/2/05 11:54 AM, Chuck Pelto wrote:

> Actually, I am using the tbprefs.value call.
>
> I keep getting a return of -2147483648.
>
> However, if I apply 1 to the value, before the next step in the
> process, the method behaves properly.
>
> What can be causing this improper return value for the call of
> tbprefs.value?
>

Chuck,

Without seeing your code, it is hard to say. But if it's just a simple call
to tab.value, then I have no idea. Are you assigning anything to .value,
say in a loop or something else?

Regards,

Paul

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

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

Re: Getting Tab Panel Tab Index
Date: 02.02.05 21:36 (Wed, 2 Feb 2005 13:36:21 -0700)
From: Chuck Pelto
Here is all the code from inside the CHANGE item of the Tab Panel's
CONTROLS

dim tpIndexPrev as integer

tpIndexPrev = tpIndex // put the window's previous index data into
this local variable.

tpIndex = self.tpPreferences.index() // set the current tab index to
the window's property of tpIndex

prefRecID = tpIndex // save same data to another variable in
PROPERTIES for another activity.

if tpIndexPrev = 1 then // we just left the CONTROLLER tab save the
data from lbPorts

SaveControlPrefs()

end if

if tpIndex = 0 then // GENERAL tab selected

elseif tpIndex = 1 then // CONTROLLERS tab selected

ShowControlPrefs()

elseif tpIndex = 2 then // COMMUNICATIONS tab selected

elseif tpIndex = 3 then // SECURITY tab selected

end if

There are no params being passed. The tpIndex and prefRecID are
PROPERTIES of the window, winPreferences.

Hope that helps....

Thanks,

Chuck

On Feb 2, 2005, at 1:18 PM, Paul Goodrich wrote:

>
> on 2/2/05 11:54 AM, Chuck Pelto wrote:
>
>> Actually, I am using the tbprefs.value call.
>>
>> I keep getting a return of -2147483648.
>>
>> However, if I apply 1 to the value, before the next step in the
>> process, the method behaves properly.
>>
>> What can be causing this improper return value for the call of
>> tbprefs.value?
>>
> Chuck,
>
> Without seeing your code, it is hard to say. But if it's just a
> simple call
> to tab.value, then I have no idea. Are you assigning anything to
> .value,
> say in a loop or something else?
>
> Regards,
>
> Paul
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> Search the archives of this list here:
> <http://www.realsoftware.com/listarchives/lists.html>

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

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

Re: Getting Tab Panel Tab Index
Date: 02.02.05 22:36 (Wed, 2 Feb 2005 14:36:33 -0700)
From: Chuck Pelto
And the answer IS.....

use Value not Index.

On Feb 2, 2005, at 1:36 PM, Chuck Pelto wrote:

> Here is all the code from inside the CHANGE item of the Tab Panel's
> CONTROLS
>
> dim tpIndexPrev as integer
>
> tpIndexPrev = tpIndex // put the window's previous index data into
> this local variable.
>
> tpIndex = self.tpPreferences.index() // set the current tab index to
> the window's property of tpIndex
>
> prefRecID = tpIndex // save same data to another variable in
> PROPERTIES for another activity.
>
> if tpIndexPrev = 1 then // we just left the CONTROLLER tab save the
> data from lbPorts
>
> SaveControlPrefs()
>
> end if
>
> if tpIndex = 0 then // GENERAL tab selected
>
> elseif tpIndex = 1 then // CONTROLLERS tab selected
>
> ShowControlPrefs()
>
> elseif tpIndex = 2 then // COMMUNICATIONS tab selected
>
> elseif tpIndex = 3 then // SECURITY tab selected
>
> end if
>
> There are no params being passed. The tpIndex and prefRecID are
> PROPERTIES of the window, winPreferences.
>
> Hope that helps....
>
> Thanks,
>
> Chuck
>
> On Feb 2, 2005, at 1:18 PM, Paul Goodrich wrote:
>
>>
>> on 2/2/05 11:54 AM, Chuck Pelto wrote:
>>
>>> Actually, I am using the tbprefs.value call.
>>>
>>> I keep getting a return of -2147483648.
>>>
>>> However, if I apply 1 to the value, before the next step in the
>>> process, the method behaves properly.
>>>
>>> What can be causing this improper return value for the call of
>>> tbprefs.value?
>>>
>> Chuck,
>>
>> Without seeing your code, it is hard to say. But if it's just a
>> simple call
>> to tab.value, then I have no idea. Are you assigning anything to
>> .value,
>> say in a loop or something else?
>>
>> Regards,
>>
>> Paul
>>
>> _______________________________________________
>> Unsubscribe or switch delivery mode:
>> <http://www.realsoftware.com/support/listmanager/>
>>
>> Search the archives of this list here:
>> <http://www.realsoftware.com/listarchives/lists.html>
>>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> Search the archives of this list here:
> <http://www.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

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

Re: Getting Tab Panel Tab Index
Date: 02.02.05 23:27 (Wed, 02 Feb 2005 14:27:59 -0800)
From: Paul Goodrich
on 2/2/05 1:36 PM, Chuck Pelto wrote:

> And the answer IS.....
>
> use Value not Index.
>
There ya go!

Regards,

Paul

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

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

Re: Getting Tab Panel Tab Index
Date: 02.02.05 21:17 (Wed, 2 Feb 2005 13:17:37 -0700)
From: Chuck Pelto
P.S. This method is located in the CHANGE part of the tpPrefs CONTROL
of the winPreferences window. If that makes any difference.....

On Feb 2, 2005, at 12:54 PM, Chuck Pelto wrote:

> Actually, I am using the tbprefs.value call.
>
> I keep getting a return of -2147483648.
>
> However, if I apply 1 to the value, before the next step in the
> process, the method behaves properly.
>
> What can be causing this improper return value for the call of
> tbprefs.value?
>
> Regards,
>
> Chuck
>
> On Feb 2, 2005, at 12:16 PM, Paul Goodrich wrote:
>
>> on 2/2/05 9:48 AM, Chuck Pelto wrote:
>>
>>> Greetings,
>>>
>>> Trying to get the index value of a tab when it is selected.
>>>
>>> Here's the code I'm using....
>>>
>>> dim tbIndex as integer
>>>
>>> tbIndex = tbPrefs.Index // where tbPrefs is the name of the tab panel
>>> in the modal window being worked in
>>>
>>> What I'm getting is -213943233134 in tbIndex after that call.
>>>
>>> What's going worng?
>>>
>> Try using tbprefs.value as it is value that contains the number of the
>> currently selected tab. Check out the LR PagePanel control. 0 is
>> the first
>> page/tab...
>>
>> HTH,
>>
>> Paul
>>
>> _______________________________________________
>> Unsubscribe or switch delivery mode:
>> <http://www.realsoftware.com/support/listmanager/>
>>
>> Search the archives of this list here:
>> <http://www.realsoftware.com/listarchives/lists.html>
>>

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

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