1. Why getText and setText has no efect on TabItem?

Why getText and setText has no efect on TabItem?
I create a TabItem with its caption supplied, but I can't get and set it 
in the latter code.

Euphoria has a long way to go!

new topic     » topic index » view message » categorize

2. Re: Why getText and setText has no efect on TabItem?

why didn't u say tabitems...here u go>>..

URL http://www.rapideuphoria.com/llrtns.zip

check example.exw

--------------
Jordah
----- Original Message ----- 
From: "Liu Junfeng" <rufi at 163.com>
To: "EUforum" <EUforum at topica.com>
Subject: Why getText and setText has no efect on TabItem?


> 
> Why getText and setText has no efect on TabItem?
> I create a TabItem with its caption supplied, but I can't get and set it 
> in the latter code.
> 
> Euphoria has a long way to go!
> 
> 
> 
> TOPICA - Start your own email discussion group. FREE!
> 
why didn't u say tabitems...here u go>>..

URL http://www.rapideuphoria.com/llrtns.zip

check example.exw

--------------
Jordah
----- Original Message ----- 
From: "Liu Junfeng" <rufi at 163.com>
To: "EUforum" <EUforum at topica.com>
Sent: Monday, January 20, 2003 12:35 PM
Subject: Why getText and setText has no efect on TabItem?


> 
> Why getText and setText has no efect on TabItem?
> I create a TabItem with its caption supplied, but I can't get and set it 
> in the latter code.
> 
> Euphoria has a long way to go!
> 
> 
> 
> TOPICA - Start your own email discussion group. FREE!
>

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

3. Re: Why getText and setText has no efect on TabItem?

Hi,

    Sorry, its not my fault. According to getid() from win32lib. It only
supports getid() for tvitems and other REAL controls. it has no support for
tabitems. Anyway, i have coded the routine again. this time u have to
specify the position of tabitem u want... for example if you want to settext
to the second item then do like so

setTabItemText(Tab,2,"hi")

Incase, ur app will have dyanamic tabcontrols ie they are created and ne
ones deleted..etc then i can code for u another routine that will take text
of the 'wanted' tabitem. then it will find its internal id then settext() to
it.

Otherwise for a start here is the modified routine.

global procedure setTabItemText(atom Tab,integer item,sequence text)
      Store(TC_ITEM ,
               {{"mask",TCIF_TEXT},
                 {"pszText",text       }})
      junk = sendMessage(Tab,TCM_SETITEM,(item +1),addressOf(TC_ITEM))
end procedure
---------
Jordah
----- Original Message -----
From: "Liu Junfeng" <rufi at 163.com>
To: "EUforum" <EUforum at topica.com>
Sent: Tuesday, January 21, 2003 11:00 AM
Subject: RE: Why getText and setText has no efect on TabItem?


>
> I used that example,but the setTabItemText() func only works with the
> firt tabpage of tabcontrol.
>
> jordah at btopenworld.com wrote:
> > why didn't u say tabitems...here u go>>..
> >
> > URL http://www.rapideuphoria.com/llrtns.zip
> >
> > check example.exw
> >
> > --------------
> > Jordah
> > ----- Original Message -----
> > From: "Liu Junfeng" <rufi at 163.com>
> > To: "EUforum" <EUforum at topica.com>
> > Sent: Monday, January 20, 2003 12:35 PM
> > Subject: Why getText and setText has no efect on TabItem?
> >
> >
> > > Why getText and setText has no efect on TabItem?
> > > I create a TabItem with its caption supplied, but I can't get and set
it
> > >
> > > in the latter code.
> > >
> > > Euphoria has a long way to go!
> > >
> > >
>
>
> TOPICA - Start your own email discussion group. FREE!
>


---

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

Search



Quick Links

User menu

Not signed in.

Misc Menu