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

new topic     » goto parent     » topic index » view thread      » older message » newer message

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 thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu