Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Changing the text (title) of the tab/tabpage dynamically

1,568 views
Skip to first unread message

AR

unread,
Apr 23, 2009, 12:50:45 PM4/23/09
to
Is there a way that I can change the text(description/title)
of a tabpage in a tab control? For ex: I have 2 tab pages.
One of the tabpage has 'Feature' defaulted @ design time.
when the window opens, based on a condition, i want to
change the title to show Feature or Sereis or Season.

I tried tab_title_element.tabpage_title_element.PageText =
ls_ProdType
But this gives a "Incompatible property" error.

AR

Brad Wery[TeamSybase]

unread,
Apr 23, 2009, 12:57:15 PM4/23/09
to
Try the TabText property instead.

Brad

--

*********************************************************************************************************
www.PowerToTheBuilder.com
- Take control of your GUI with a free PB user control library
- Get updates from my blog - blog.PowerToTheBuilder.com
- Get support from - forum.PowerToTheBuilder.com

*********************************************************************************************************
www.Werysoft.com
- Full featured database development tool for ASE, SQL Server, SQL
Anywhere and Oracle

Get productive today!

*********************************************************************************************************

AR

unread,
Apr 23, 2009, 1:23:28 PM4/23/09
to
Theres no TabText property.
Anyway tried
"tab_title_element.tabpage_title_element.TabText =
ls_ProdType". Still giving the incompatible error.
AR

Brad Wery[TeamSybase]

unread,
Apr 23, 2009, 1:39:42 PM4/23/09
to
What is tab_title_element.tabpage_title_element?

Userobjects and tabpage objects both have a TabText property.

--

*********************************************************************************************************

Terry Voth [TeamSybase]

unread,
Apr 23, 2009, 2:05:26 PM4/23/09
to
Try the Text attribute instead of TabText.

On the Browser in the IDE there's a System tab that lets you explore
the attributes and methods attached to each object type. That's how I
looked this up.

Good luck,

Terry and Sequel the techno-kitten

On 23 Apr 2009 10:23:28 -0700, AR wrote:

>Theres no TabText property.
>Anyway tried
>"tab_title_element.tabpage_title_element.TabText =
>ls_ProdType". Still giving the incompatible error.
>AR
>> Try the TabText property instead.
>>
>> Brad
>>
>> AR wrote:
>> > Is there a way that I can change the
>> > text(description/title) of a tabpage in a tab control?
>> > For ex: I have 2 tab pages. One of the tabpage has
>> > 'Feature' defaulted @ design time. when the window opens
>> > , based on a condition, i want to change the title to
>> > show Feature or Sereis or Season.
>> > I tried tab_title_element.tabpage_title_element.PageText
>> > = ls_ProdType
>> > But this gives a "Incompatible property" error.

*********************************
Build your vocabulary while feeding the hungry
http://www.freerice.com
*********************************
Newsgroup User Manual
=====================
TeamSybase <> Sybase employee
Forums = Peer-to-peer
Forums <> Communication with Sybase
IsNull (AnswerTo (Posting)) can return TRUE
Forums.Moderated = TRUE, so behave or be deleted
*********************************

Sequel's Sandbox: http://www.techno-kitten.com
Home of PBL Peeper, a free PowerBuilder Developer's Toolkit.
Version 4.0.4 now available at the Sandbox
PB Futures updated June 25/2008
See the PB Troubleshooting & Migration Guides at the Sandbox
^ ^
o o
=*=

Scott Morris

unread,
Apr 23, 2009, 1:45:48 PM4/23/09
to
<AR> wrote in message news:49f09c65.726...@sybase.com...

Try the text property. However, perhaps a more OO approach is to
dynamically open a page that is appropriate for the purpose. Presumably,
there is some functional and graphical difference between "Feature" and
"Series" (sic?) and "Season". Therefore, would it not make more sense to
create your own user object for each "type" of page and create it / add it
to the tab when needed?


AR

unread,
Apr 23, 2009, 4:07:47 PM4/23/09
to
Thnx Terry. The Text property worked.
AR

> Try the Text attribute instead of TabText.
>
> OnA the Browser in the IDE there's a System tab that lets

Amandeep Singh

unread,
Apr 29, 2009, 3:18:35 AM4/29/09
to
Hello,

Try this
This.tab_main.tabpage_1.text = "Any Name"

Amandeep


<AR> wrote in message news:49f09c65.726...@sybase.com...

sowed....@gmail.com

unread,
Jan 12, 2017, 5:01:03 AM1/12/17
to
tabControl1.SelectedTab.Text = "NewTabtittle";

Logicview it solutions Pvt Ltd

unread,
Oct 30, 2023, 4:18:02 AM10/30/23
to
Hello,
Try this
TabControl1.TabPages(TabIndex).Text = "your text"

Upendar
https://logicview.in/software-development-warangal/

0 new messages