Xojo Conferences
XDCMay2019MiamiUSA

listbox with variable heights (Real Studio getting started Mailinglist archive)

Back to the thread list
Previous thread: Cloning objects inside of objects
Next thread: Double clicking created app file, opens in wrong program


RB Database   -   tom.russell transport.alstom.com
  listbox with variable heights   -   GAmoore aol.com
   Re: listbox with variable heights   -   Seth Willits
   Re: listbox with variable heights   -   Harrie Westphal
    Re: listbox with variable heights   -   GAmoore aol.com
     Re: listbox with variable heights   -   Seth Willits
     Re: listbox with variable heights   -   Arnaud Nicolet
     Re: listbox with variable heights   -   Seth Willits

listbox with variable heights
Date: 11.02.06 02:45 (Sat, 11 Feb 2006 01:45:18 EST)
From: GAmoore aol.com
It would be very nice for me, if I could make a listbox and make each
different column a different height. I want to calculate the height to make it
proportional to something (for example row 1 is 20 points high, row 2 is 40 points
high, row 3 is 10 points high...) . However, I don't think this is possible, is
it? I saw one example with a variable size, but all the rows were the same
height even on that example.

Greg
_______________________________________________
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: listbox with variable heights
Date: 11.02.06 08:30 (Fri, 10 Feb 2006 23:30:45 -0800)
From: Seth Willits
On Feb 10, 2006, at 10:45 PM, <email address removed> wrote:

> It would be very nice for me, if I could make a listbox and make each
> different column a different height. I want to calculate the height
> to make it
> proportional to something (for example row 1 is 20 points high, row
> 2 is 40 points
> high, row 3 is 10 points high...) . However, I don't think this is
> possible, is
> it? I saw one example with a variable size, but all the rows were
> the same
> height even on that example.

Not with the built-in ListBox, no. You'd have to write a custom
class, which depending on what other LB features you need could be
pretty simple or pretty hard.



Seth Willits
----------------------------------------------------------
Freak Software - http://www.freaksw.com/
ResExcellence - http://www.resexcellence.com/realbasic/
----------------------------------------------------------

_______________________________________________
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: listbox with variable heights
Date: 11.02.06 16:20 (Sat, 11 Feb 2006 09:20:01 -0600)
From: Harrie Westphal

On Feb 11, 2006, at 12:45 AM, <email address removed> wrote:

> It would be very nice for me, if I could make a listbox and make each
> different column a different height. I want to calculate the height
> to make it
> proportional to something (for example row 1 is 20 points high, row
> 2 is 40 points
> high, row 3 is 10 points high...) . However, I don't think this is
> possible, is
> it? I saw one example with a variable size, but all the rows were
> the same
> height even on that example.

This sounds like you are trying to make a bar chart. Seems like a
canvas with rectangles would be more suitable for that.

=kD A Mac addict in Tennessee =_
_______________________________________________
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: listbox with variable heights
Date: 11.02.06 16:50 (Sat, 11 Feb 2006 15:50:55 EST)
From: GAmoore aol.com
> > ...if I could make a listbox and make each
> > different column a different height. I want to calculate the height 
> > to make it proportional to something
> Not with the built-in ListBox, no. You'd have to write a custom 
> class, which depending on what other LB features you need could be 
> pretty simple or pretty hard.
> ....
> This sounds like you are trying to make a bar chart. Seems like a 
> canvas with rectangles would be more suitable for that.
>

The thing thats nice about the built-in RB listbox, is that it has a lot of
things already built-in. For example if you add too many rows, it will
automattically make a scroll bar at the right. It grabs selections of cells (rows and
columns). A canvas doesn't have a scrollbar. So I suppose I would have to put
a scrollbar next to the canvas, then make it invisible or not, and adjust the
width of the canvas depending on the number of rows. Seems like a lot of
trouble.
_______________________________________________
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: listbox with variable heights
Date: 12.02.06 00:13 (Sat, 11 Feb 2006 15:13:02 -0800)
From: Seth Willits
On Feb 11, 2006, at 12:50 PM, <email address removed> wrote:

> The thing thats nice about the built-in RB listbox, is that it has
> a lot of
> things already built-in. For example if you add too many rows, it will
> automattically make a scroll bar at the right.

No it doesn't - It's either there or it isn't. That's easy. Auto-
hiding the scrollbar is only about two lines more code though.

> It grabs selections of cells (rows and columns).
> A canvas doesn't have a scrollbar. So I suppose I would have to put
> a scrollbar next to the canvas, then make it invisible or not, and
> adjust the
> width of the canvas depending on the number of rows. Seems like a
> lot of
> trouble.

You can make a basic listbox in an hour. It's really not that hard.
The tricky stuff is column reordering and resizing and being able to
handle a large amount of data.


Seth Willits
----------------------------------------------------------
Freak Software - http://www.freaksw.com/
ResExcellence - http://www.resexcellence.com/realbasic/
----------------------------------------------------------

_______________________________________________
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: listbox with variable heights
Date: 13.02.06 16:29 (Mon, 13 Feb 2006 16:29:06 +0100)
From: Arnaud Nicolet
Le 12 févr. 06, à 00:13, Seth Willits a écrit :

> On Feb 11, 2006, at 12:50 PM, <email address removed> wrote:
>
>> The thing thats nice about the built-in RB listbox, is that it has a
>> lot of
>> things already built-in. For example if you add too many rows, it will
>> automattically make a scroll bar at the right.
>
> No it doesn't - It's either there or it isn't. That's easy.
> Auto-hiding the scrollbar is only about two lines more code though.
>
>> It grabs selections of cells (rows and columns).
>> A canvas doesn't have a scrollbar. So I suppose I would have to put
>> a scrollbar next to the canvas, then make it invisible or not, and
>> adjust the
>> width of the canvas depending on the number of rows. Seems like a lot
>> of
>> trouble.
>
> You can make a basic listbox in an hour. It's really not that hard.
> The tricky stuff is column reordering and resizing and being able to
> handle a large amount of data.
>
Can you put a checkbox on a cell which looks nice (no flicker, for
example)?

_______________________________________________
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: listbox with variable heights
Date: 13.02.06 20:10 (Mon, 13 Feb 2006 11:10:55 -0800)
From: Seth Willits
On Feb 13, 2006, at 7:29 AM, Arnaud Nicolet wrote:

>> You can make a basic listbox in an hour. It's really not that
>> hard. The tricky stuff is column reordering and resizing and being
>> able to handle a large amount of data.
>
> Can you put a checkbox on a cell which looks nice (no flicker, for
> example)?

Yup. Flicker is a simple problem that


Seth Willits
----------------------------------------------------------
Freak Software - http://www.freaksw.com/
ResExcellence - http://www.resexcellence.com/realbasic/
----------------------------------------------------------

_______________________________________________
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>