Is easy to use the multi column style with list boxes ?
Hi,
Today I have seen in the property dialog, that is one style for list boxes called "Multi Column", this style, Allows you to have more that one column in a list box ?, Is easy to use ?, Anybody can give an example of howe can I add one element using this ?
Thanks, Bye !
Braulio
Re: Is easy to use the multi column style with list boxes ?
You need just something like this to set the tabstops:
WORD DlgWidthUnits;
int TabStopList[3];// 3 tabstop=3 columns
DlgWidthUnits = LOWORD (GetDialogBaseUnits()) / 4;
TabStopList[0]=20*DlgWidthUnits; //DM4T1
TabStopList[1]=42*DlgWidthUnits; //DM4T2
TabStopList[2]=64*DlgWidthUnits; //DSIN
SendDlgItemMessage ( IDC_LIST_ESTAGIOS, LB_SETTABSTOPS, 3, (LONG)(LPSTR)TabStopList );//Send a message to your list to set it
More informations? Mail me!
From the lower south of Brazil...
Cesario
Cesario Simões, Jr.
So every "Tab" character separates one column ?
Hi again !
So every column is separated by a TAB character ( in add string we separate the columns with the tabs ?), and then is needed to calculate the maximum length of one field ?, mmm..., yes I think I need a little bit more of help, Thanks !
Bye !
Braulio
PS.: One Spanish working in Switzerland
Re: So every "Tab" character separates one column ?
Yes, sir! Si, señor! Sim senhor!
Do you want to get this effect:
Name phone city prov./state
Joaquim 2820337 Madrid
Manoel 2817132 Lisboa
José 2923345 S. Paulo S. Paulo
or do you want to get something like this:
Name caller id. Name caller id.
Alex 2938577 João 2846252
Braulio 9832111 José 2820337
.. .. .. .......
.. .. .. .......
.. .. .. .......
in the first case just put "tab" btween the columns...
but in the second, to preserve the order when the dialog is maximized, do you need something more...
Cesario, from the Santa Catarina Island...
Cesario Simões, Jr.