1. Tab Stops in List Box (was: Re: printf fix )

Brian,

Could you maybe make a short example of how to use tab stops in a listbox?
I'm using a method Brian Jackson made using *tabs* to make a list "table",
but I would think tab *stops* would be even better.  I looked at your
reference & couldn't readily understand how to use it in Euphoria.

Dan Moyer

Brian wrote:
>
>There are many messages that you can send to a listbox.  Try looking into
>LB_SETTABSTOPS at:
>
>Note:  To respond to the LB_SETTABSTOPS message, the list box must have
>been created with the LBS_USETABSTOPS style.
>
>Hope this helps,
>-- Brian

in response to Bernie:

>On Wed, 26 Apr 2000 12:49:48 -0400, Bernie Ryan wrote:
>
>> No \t is a escape sequence in a text string which means to goto
>> the next tab stop. When the escape character \ is seen it means
>> that the next character following is special character and because
>> that character is a t then it is interrupted as a tab to next stop.
>>
>>
>> Would't you like to use tabs in text in a listbox control.

new topic     » topic index » view message » categorize

2. Re: Tab Stops in List Box (was: Re: printf fix )

------=_NextPart_000_0012_01BFB0AA.7BC37840
        charset="iso-8859-1"

----- Original Message -----
From: "Dan B Moyer"
Sent: Thursday, April 27, 2000 8:32 PM

> Could you maybe make a short example of how to use tab stops in a listbox?
> I'm using a method Brian Jackson made using *tabs* to make a list "table",
> but I would think tab *stops* would be even better.  I looked at your
> reference & couldn't readily understand how to use it in Euphoria.

Dan,

I have attached a small program that illustrates LB_SETTABSTOPS.  The Window
has two list boxes.  For the first list box I set up tabs for every 40
'dialog template units'.  For the second list box I set up 2 tab stops: one
at 60 and the second at 90 ('dialog template units').

(program requires win32lib.ew)

-- Brian


------=_NextPart_000_0012_01BFB0AA.7BC37840
        name="tablist.exw"
Content-Transfer-Encoding: quoted-printable

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

3. Re: Tab Stops in List Box (was: Re: printf fix )

------=_NextPart_000_001F_01BFB0AC.256C9600
        charset="iso-8859-1"

For some reason when I tried retrieving my example from the list HTML
interface, it came back a bit butchered so I've zipped it up this time.

Sorry 'bout that.
-- Brian

------=_NextPart_000_001F_01BFB0AC.256C9600
        name="tablist.zip"

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

4. Re: Tab Stops in List Box (was: Re: printf fix )

> For some reason when I tried retrieving my example from the list HTML
> interface, it came back a bit butchered so I've zipped it up this time.
>
> Sorry 'bout that.
> -- Brian
>

Tsk Tsk Brian!! sending a raw executable file through the net!! To the list
no less!! LOL

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

5. Re: Tab Stops in List Box (was: Re: printf fix )

Thanks Brian,

That seems to work just like I hoped it would!  Should make my list-table
much easier.

At first I wasn't sure how it knew how many tab stops were set, 'till I
noticed the numbers between "LB_SETTABSTOPS" and "lpnTabs", which must be
telling it how many (in conjunction with the "array" in memory).

 I did change the listbox widths from 170 to 270 in order to show the full
width of your examples, dunno if that's just my system or what.  Maybe it's
because 'dialog template units' aren't pixels?  Looks to me like
'MapDialogRect' just goes from 'dialog template units' to pixels, when what
would be needed would be the opposite direction, to get correct numbers to
set up tab positions relative to size of listbox in pixels?

Anyway, thanks again for the example, & I'm glad you included how to set it
up for both equally spaced tabs, and multiple different width stops.  That
answered questions before they arose; smart!

Dan Moyer





>----- Original Message -----
>From: "Dan B Moyer"
>Sent: Thursday, April 27, 2000 8:32 PM
>
>> Could you maybe make a short example of how to use tab stops in a
listbox?
>> I'm using a method Brian Jackson made using *tabs* to make a list
"table",
>> but I would think tab *stops* would be even better.  I looked at your
>> reference & couldn't readily understand how to use it in Euphoria.
>
>Dan,
>
>I have attached a small program that illustrates LB_SETTABSTOPS.  The
Window
>has two list boxes.  For the first list box I set up tabs for every 40
>'dialog template units'.  For the second list box I set up 2 tab stops: one
>at 60 and the second at 90 ('dialog template units').
>
>(program requires win32lib.ew)
>
>-- Brian
>
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu