Help needed in displaying strings in List Box

Help needed in displaying strings in List Box

Post by Jay-K » Wed, 14 Jul 1993 00:17:24



Hi Netters,

                I need some help in List Boxes. I wanted to display four strings in a list box, at a specified column position.

        For example,

        -------------------------------------------------------
        john            26              male            graduate
        newton          23              male            graduate
        mary            25              female          graduate

I tried to concatenate these four strings with tab space in between and then
display as a single string in a list box. But the tab space did not work. Is
there any other way that I can display four strings in List Box at a specified
column positions. i

                Thanks in advance.

                                                Jay........

 
 
 

Help needed in displaying strings in List Box

Post by T.J.R. Cut » Wed, 14 Jul 1993 01:40:25



|>
|> Hi Netters,
|>
|>           I need some help in List Boxes. I wanted to display four strings in a list box, at a specified column position.
|>
|>   For example,
|>
|>   -------------------------------------------------------
|>   john            26              male            graduate
|>   newton          23              male            graduate
|>   mary            25              female          graduate
|>
|>
|> I tried to concatenate these four strings with tab space in between and then
|> display as a single string in a list box. But the tab space did not work. Is
|> there any other way that I can display four strings in List Box at a specified
|> column positions. i
|>  
|>           Thanks in advance.
|>
|>                                           Jay........

The tabs did not work because you need to send the list box a lb_SetTabStops
message, as well has creating it with the lbs_ style that causes it to obey
tabstops.  I can't remember the precise names.

Alternatively, make the list box lbs_OwnerDraw, and then use TabbedTextOut to
print the data as part of you response to wm_DrawItem.  This has the advantage
that you are no longer limited to 32k of text in the list box, although you must
of course keep track of the strings elsewhere.

--
-------------------------------------------------------------------------------

CRC Mammalian Cell DNA Repair Research Group | database for Windows 3.1 is now
Please support the Cancer Research Campaign! | on ftp.cica.indiana.edu
-------------------------------------------------------------------------------

 
 
 

Help needed in displaying strings in List Box

Post by Tony Bogg » Wed, 14 Jul 1993 02:03:47


Just a quick question... Does anybody know if there is a way to have VxDs
conditionaly installed in SYSTEM.INI ? I have a particular driver that I
soometimes want to instal but I don't want multiple SYSTEM.INIs all
over the place.

Email replies too please.

tonyB.
--
*************************************************************




*************************************************************
* "I'm sorry Mr. Boggis, we have no rooms left"             *
* "Well, if the President was coming, you'd have a room for *
*  him, wouldn't you?"                                      *
* "Well, yes sir."                                          *
* "Well, he's not coming, so I'll have his room then!"      *
*************************************************************

 
 
 

1. Help needed in displaying strings il List Box

Hi Netters,

                I need some help in List Boxes. I wanted to display four strings in a list box, at a specified column position.

        For example,

        -------------------------------------------------------
        john            26              male            graduate
        newton          23              male            graduate
        mary            25              female          graduate

I tried to concatenate these four strings with tab space in between and then
display as a single string in a list box. But the tab space did not work. Is
there any other way that I can display four strings in List Box at a specified
column positions. i

                Thanks in advance.

                                                Jay........

2. (no subject)

3. Writing Excel add-ins: Good references needed

4. Clickable regions with a GoServe-based Web Server?

5. HELP: How do you execute an .INS file _without_ Internet Explorer v3.0x installed?

6. How to make individual batch SQL silent

7. Need help displaying a dialog box before main window is displayed

8. Please help with small LAN!

9. HELP: Programming for future Plug Ins

10. Combo box Q: - whether to display the list box

11. Need pixel size of a string in a text/list box

12. browser plug-ins

13. COM Add-Ins publications