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 > > |