1. [Win32Lib] programmatically select TreeView item?

Is there some way to programmatically select a TreeView item?  

Dan Moyer

new topic     » topic index » view message » categorize

2. Re: [Win32Lib] programmatically select TreeView item?

On Wed, 25 Jun 2003 18:26:24 -0700 (06/26/03 11:26:24)
, Dan Moyer <DANIELMOYER at prodigy.net> wrote:

>
>
> Is there some way to programmatically select a TreeView item?

Yes.

  setIndex( myTV, theItem)

where the value in theItem is whatever was returned during addTVItem().

-- 

cheers,
Derek Parnell

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

3. Re: [Win32Lib] programmatically select TreeView item?

Derek,

Tried it, both before & after you suggested it, doesn't work for me, running
57.9

As an example, I put "setIndex(TV, folders[2])" into Euman's tvedit.exw
demo, first in Activate_MainWin after "expandItem( folders[1] )" (the expand
does work), and when that didn't select the second folder, I put the
setIndex directly after the creation of the folders, down in "function
AppInit", which also didn't work to select the 2nd folder.  Am I doing
something wrong?

Dan Moyer

----- Original Message -----
From: "Derek Parnell" <ddparnell at bigpond.com>
To: "EUforum" <EUforum at topica.com>
Sent: Wednesday, June 25, 2003 11:00 PM
Subject: Re: [Win32Lib] programmatically select TreeView item?


>
>
> On Wed, 25 Jun 2003 18:26:24 -0700 (06/26/03 11:26:24)
> , Dan Moyer <DANIELMOYER at prodigy.net> wrote:
>
> >
> > Is there some way to programmatically select a TreeView item?
>
> Yes.
>
>   setIndex( myTV, theItem)
>
> where the value in theItem is whatever was returned during addTVItem().
>
> --
>
> cheers,
> Derek Parnell
>
>
>
> TOPICA - Start your own email discussion group. FREE!
>

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

4. Re: [Win32Lib] programmatically select TreeView item?

----- Original Message -----
From: "Dan Moyer" <DANIELMOYER at prodigy.net>
To: "EUforum" <EUforum at topica.com>
Subject: Re: [Win32Lib] programmatically select TreeView item?


>
>
> Derek,
>
> Tried it, both before & after you suggested it, doesn't work for me,
running
> 57.9
>
> As an example, I put "setIndex(TV, folders[2])" into Euman's tvedit.exw
> demo, first in Activate_MainWin after "expandItem( folders[1] )" (the
expand
> does work), and when that didn't select the second folder, I put the
> setIndex directly after the creation of the folders, down in "function
> AppInit", which also didn't work to select the 2nd folder.  Am I doing
> something wrong?
>

Try the latest version instead. It works in v0.59+

--
Derek

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

Search



Quick Links

User menu

Not signed in.

Misc Menu