From: Guillem C. W. <vac...@es...> - 2002-04-11 14:22:08
|
I'm still triyng to do to do two colums but no results. I also tryed to = count the length of the string and it works good on stdout but no in the = window , any ideas ?? $naaa =3D length($ref_bust->{Nom}); $espaisblanc=3D " " x (50-$naaa); print "RESULTAT : $ref_bust->{Nom} ${espaisblanc} = $ref_bust->{Info}[$dinspos]{Ultimacces} -----\n"; $ref_bust->{Info}[$dinspos]{Arbre} =3D $TV->InsertItem( -parent=3D>$ref_assign->{Arbre}{$est_alu->{Nom}} , -text=3D>"$ref_bust->{Nom} ${espaisblanc} = $ref_bust->{Info}[$dinspos]{Ultimacces}", -image =3D> 0,=20 -selected =3D> 0, -checkboxes =3D> 0,);=20 -----Mensaje original----- De: Guillem Cunillera Wefers <vac...@es...> Para: per...@li... = <per...@li...> Fecha: dijous, 11 / abril / 2002 13:14 Asunto: [perl-win32-gui-users] Using a \t in a text of a treeview Hi again, I'm using a TreeView and I would like to include a tab inside every = branch to separate the text. $ref_bust->{Info}[$dinspos]{Arbre} =3D $TV->InsertItem( -parent=3D>$ref_assign->{Arbre}{$est_alu->{Nom}} , = -text=3D>$ref_bust->{Nom}."\t".$ref_bust->{Info}[$dinspos]{Dinsarray}, -image =3D> 0,=20 -selected =3D> 0, -checkboxes =3D> 0,);=20 Is not possible to use \t ? Guillem Cunillera i Wefers Regards from Catalonia. |
From: Sean H. <jal...@ho...> - 2002-04-12 13:49:49
|
>I'm still trying to do to do two colums but no results. I also tryed to >count the length of the string and it works good on stdout but no in the >window , It might work in the window if you used a monospaceed font, but a better idea is probably to use a ListView with -nocolumnheader => 1, (this option is undocumented) and just put your text in two different columns. The only problem is that ListView does not indent, so you'll have to prepend whitespace to your entries. And if you want images, there may not be a way at all to indent the images. (In that case, you'll probably have to use a monospaced font.) If this works, please send me a copy of the successful code. A multi-column treeview seems like something I'd want to have around. _________________________________________________________________ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com |
From: Guillem C. W. <vac...@es...> - 2002-04-12 14:54:13
|
Ok, I tried before to make a monospaced font...but I didn't know how to = do it.....but now ...it works. I use Courier New font (a monospaced font) our $fo_fixa =3DWin32::GUI::Font->new (-bold =3D> 0,-name=3D>"Courier = New",-size=3D>13); and counting length..... The tree: $TV =3D $w_tutor->AddTreeView( -name =3D> "Mailtool::tutor::Tree", -text =3D> "hello world!", -width =3D> $w_tutor->ScaleWidth,=20 -height =3D> $w_tutor->ScaleHeight-40, -left =3D> 0,=20 -top =3D> 40, -lines =3D> 1,=20 -rootlines =3D> 1, -buttons =3D> 1, -visible =3D> 1, -imagelist =3D> $IL, -checkboxes =3D> 1, -font =3D> $ajudes::mevesfonts::fo_fixa, # -hottrack =3D> 1, );=20 Easy! Cheers Cheers=20 -----Mensaje original----- De: Sean Healy <jal...@ho...> Para: vac...@es... <vac...@es...>; = per...@li... = <per...@li...> Fecha: divendres, 12 / abril / 2002 15:49 Asunto: RE: [perl-win32-gui-users] Using a \t in a text of a treeview >>I'm still trying to do to do two colums but no results. I also tryed = to=20 >>count the length of the string and it works good on stdout but no in = the=20 >>window , > > >It might work in the window if you used a monospaceed font, but a = better=20 >idea is probably to use a ListView with > >-nocolumnheader =3D> 1, > >(this option is undocumented) and just put your text in two different=20 >columns. The only problem is that ListView does not indent, so you'll = have=20 >to prepend whitespace to your entries. And if you want images, there = may=20 >not be a way at all to indent the images. (In that case, you'll = probably=20 >have to use a monospaced font.) > >If this works, please send me a copy of the successful code. A = multi-column=20 >treeview seems like something I'd want to have around. > >_________________________________________________________________ >Join the world=92s largest e-mail service with MSN Hotmail.=20 >http://www.hotmail.com > > |