Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Insert indented row in hierarchical listbox (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: Has anyone gotten a ServerSocket to listen on a low port?
Next thread: Function Pointers?


Win32 API Declares   -   Berg, Heath
  Insert indented row in hierarchical listbox   -   Dennis Birch
   Re: Insert indented row in hierarchical listbox   -   Erne
    Re: Insert indented row in hierarchical listbox   -   joe strout.net
    Re: Insert indented row in hierarchical listbox   -   Vincent Kroll
    Re: Re: Insert indented row in hierarchical listbox   -   Dennis Birch
   Re: Re: Insert indented row in hierarchical listbox   -   Dennis Birch

Insert indented row in hierarchical listbox
Date: 01.08.06 20:37 (Tue, 1 Aug 2006 12:37:41 -0700)
From: Dennis Birch
Is there any way to insert a row into the open folder of a
hierarchical listbox at the same indent level as the other subitems in
the folder? When I do it, the inserted item is at the horizontal
position of the folder above it, which is slightly to the left of the
subitems, which obviously isn't the correct. way to do it.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

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

Re: Insert indented row in hierarchical listbox
Date: 02.08.06 09:15 (Wed, 02 Aug 2006 10:15:42 +0200)
From: Erne
on 1-08-2006 21:37, Dennis Birch at <email address removed> wrote:

> Is there any way to insert a row into the open folder of a
> hierarchical listbox at the same indent level as the other subitems in
> the folder? When I do it, the inserted item is at the horizontal
> position of the folder above it, which is slightly to the left of the
> subitems, which obviously isn't the correct. way to do it.

Only way I found to do it is close and reopen the folder


Cool Runnings,
Erne.

Re: Insert indented row in hierarchical listbox
Date: 02.08.06 15:15 (Wed, 2 Aug 2006 08:15:15 -0600)
From: joe strout.net
On Aug 02, 2006, at 08:15 UTC, Erne wrote:

> Only way I found to do it is close and reopen the folder

That used to be true, but it isn't any more. IIRC, InsertRow and InsertFolder now take an optional "indent" parameter which is how far the inserted row should be indented. It's still up to you to do the bookkeeping to figure out the correct indentation, though.

Best,
- Joe

Re: Insert indented row in hierarchical listbox
Date: 02.08.06 15:21 (Wed, 2 Aug 2006 16:21:21 +0200)
From: Vincent Kroll
Hi,
try this:

- InsertRow RowNumber, Item, Indent
- InsertFolder RowNumber, Item, Indent

RowNumber As Integer,
Item As String,
Indent As Integer

It's not documented. Why?
Thanks to someone, who told me this... 8)

Am 02.08.2006 um 10:15 schrieb Erne:

> on 1-08-2006 21:37, Dennis Birch at <email address removed> wrote:
>
>> Is there any way to insert a row into the open folder of a
>> hierarchical listbox at the same indent level as the other
>> subitems in
>> the folder? When I do it, the inserted item is at the horizontal
>> position of the folder above it, which is slightly to the left of the
>> subitems, which obviously isn't the correct. way to do it.

Re: Re: Insert indented row in hierarchical listbox
Date: 02.08.06 15:56 (Wed, 2 Aug 2006 07:56:59 -0700)
From: Dennis Birch
Thank you very much, Joe and Vincent. That's the way it SHOULD work.

Not only is it not documented, it also does not show any hints within
the IDE as most method calls do. So having this pointed out on the
list was a huge help.

For what it's worth, in my initial test, a single-level indent appears
to correspond with the number 1. In other words, the indent argument
takes the number of levels you're indenting, not pixels or anything
else that would be a pain to calculate.

On 8/2/06, Vincent Kroll <<email address removed>> wrote:
> Hi,
> try this:
>
> - InsertRow RowNumber, Item, Indent
> - InsertFolder RowNumber, Item, Indent
>
> RowNumber As Integer,
> Item As String,
> Indent As Integer
>
> It's not documented. Why?
> Thanks to someone, who told me this... 8)
>
> Am 02.08.2006 um 10:15 schrieb Erne:
>
> > on 1-08-2006 21:37, Dennis Birch at <email address removed> wrote:
> >
> >> Is there any way to insert a row into the open folder of a
> >> hierarchical listbox at the same indent level as the other
> >> subitems in
> >> the folder? When I do it, the inserted item is at the horizontal
> >> position of the folder above it, which is slightly to the left of the
> >> subitems, which obviously isn't the correct. way to do it.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

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

Re: Re: Insert indented row in hierarchical listbox
Date: 02.08.06 14:33 (Wed, 2 Aug 2006 06:33:47 -0700)
From: Dennis Birch
That's what I suspected. Thanks for confirming.

On 8/2/06, Erne <<email address removed>> wrote:
> on 1-08-2006 21:37, Dennis Birch at <email address removed> wrote:
>
> > Is there any way to insert a row into the open folder of a
> > hierarchical listbox at the same indent level as the other subitems in
> > the folder? When I do it, the inserted item is at the horizontal
> > position of the folder above it, which is slightly to the left of the
> > subitems, which obviously isn't the correct. way to do it.
>
> Only way I found to do it is close and reopen the folder
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

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