You can subscribe to this list here.
2001 |
Jan
(226) |
Feb
(139) |
Mar
(156) |
Apr
(95) |
May
(181) |
Jun
(166) |
Jul
(80) |
Aug
(59) |
Sep
(69) |
Oct
(83) |
Nov
(142) |
Dec
(33) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(42) |
Feb
(91) |
Mar
(76) |
Apr
(113) |
May
(67) |
Jun
(68) |
Jul
(37) |
Aug
(41) |
Sep
(16) |
Oct
(135) |
Nov
(51) |
Dec
(21) |
2003 |
Jan
(37) |
Feb
(36) |
Mar
(37) |
Apr
(103) |
May
(68) |
Jun
(70) |
Jul
(77) |
Aug
(12) |
Sep
(9) |
Oct
(53) |
Nov
(88) |
Dec
(63) |
2004 |
Jan
(263) |
Feb
(106) |
Mar
(36) |
Apr
(21) |
May
(21) |
Jun
(34) |
Jul
(33) |
Aug
(34) |
Sep
(35) |
Oct
(21) |
Nov
(43) |
Dec
(63) |
2005 |
Jan
(28) |
Feb
(42) |
Mar
(29) |
Apr
(14) |
May
(41) |
Jun
(20) |
Jul
(65) |
Aug
(136) |
Sep
(41) |
Oct
(74) |
Nov
(34) |
Dec
(94) |
2006 |
Jan
(85) |
Feb
(94) |
Mar
(68) |
Apr
(103) |
May
(66) |
Jun
(51) |
Jul
(24) |
Aug
(56) |
Sep
(57) |
Oct
(85) |
Nov
(73) |
Dec
(68) |
2007 |
Jan
(59) |
Feb
(32) |
Mar
(13) |
Apr
(32) |
May
(36) |
Jun
(36) |
Jul
(64) |
Aug
(35) |
Sep
(19) |
Oct
(10) |
Nov
(13) |
Dec
(20) |
2008 |
Jan
(26) |
Feb
(41) |
Mar
(19) |
Apr
(24) |
May
(16) |
Jun
(33) |
Jul
(34) |
Aug
(4) |
Sep
(11) |
Oct
|
Nov
(26) |
Dec
(23) |
2009 |
Jan
(5) |
Feb
(2) |
Mar
(21) |
Apr
(16) |
May
(13) |
Jun
(6) |
Jul
(34) |
Aug
(2) |
Sep
(1) |
Oct
(7) |
Nov
(5) |
Dec
(24) |
2010 |
Jan
(3) |
Feb
(5) |
Mar
(6) |
Apr
(6) |
May
(14) |
Jun
(6) |
Jul
(1) |
Aug
(12) |
Sep
(10) |
Oct
(9) |
Nov
|
Dec
(2) |
2011 |
Jan
(4) |
Feb
(5) |
Mar
(30) |
Apr
(1) |
May
(2) |
Jun
(5) |
Jul
(3) |
Aug
(2) |
Sep
(3) |
Oct
|
Nov
(6) |
Dec
|
2012 |
Jan
|
Feb
(10) |
Mar
|
Apr
|
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
|
Sep
(2) |
Oct
|
Nov
(2) |
Dec
(4) |
2013 |
Jan
(5) |
Feb
(3) |
Mar
|
Apr
(3) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
(2) |
Feb
|
Mar
|
Apr
(1) |
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(9) |
Nov
(7) |
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(5) |
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
From: <ma...@mm...> - 2002-04-22 00:19:01
|
is there any way to stop a status bar from being able to be resized? thanx |
From: Terry C. <ca...@tj...> - 2002-04-21 18:31:56
|
I'm a new Win32:GUI user, trying the first sample in guitut1.html: use Win32::GUI; $main = Win32::GUI::Window->new( -name => 'Main', -width => 100, -height => 100, ); $main->AddLabel(-text => "Hello, world"); $main->Show(); Win32::GUI::Dialog(); sub Main_Terminate { -1; } Perl is crashing when it hits the AddLabel statement (it works okay if I remove that line); the XP error information is: AppName: perl.exe AppVer: 5.6.1.631 ModName: msvcrt.dll ModVer: 7.0.2600.0 Offset: 0003203b I'm running Activstate perl v5.6.1, build 631; Win32-GUI-0.0.558 (installed via PPM); Windows/XP home edition. Any ideas? -- Terry Carroll | Santa Clara, CA | "We do hope we get the bronze, too, so ca...@tj... | we can get the entire collection." Modell delendus est | - David Pelletier |
From: Guillem C. W. <vac...@es...> - 2002-04-17 22:47:17
|
Firstly...I put a subject on this e-mail..... Well, I'm still having problems with my Tree_NodeClick event when this = create some windows inside of it. This always go beneath the window = which contains the TreeView.When ? This happens when the event ends = (with return 0 / 1). Maybe the use of TreeView implies that a "bug" = subroutine that put the focus on the TreeView....but I don't know... The other thing is the same event but I thing there aren't any = connection problem. The problem appears when I close a dinamic window = and the same window is reopen with ->Show don't show, but It will show = it if I open an other window between. I think I have exposed more clearly.... Cheers, Guillem Cunillera i Wefers |
From: Johan L. <jo...@ba...> - 2002-04-17 10:37:19
|
Eugeniy: > How to make two or more independent groups of radiobuttons? You should set the -group => 1 option on the _first_ RadioButton in each group. This control should also be a tabstop. The other RadioButtons in the group should have these options turned off. This should be added to the FAQ. /J -------- ------ ---- --- -- -- -- - - - - - Johan Lindström Sourcerer @ Boss Casinos jo...@ba... Latest bookmark: "OpenNap, Clients, Utilities, File Sharing, MP3..." <http://www.therecordindustry.com/file_sharing/napster_opennap_dir.htm> dmoz (1 of 4): ...ters/Software/Shareware/Windows/Sound_and_Music |
From: Eugeniy O. <ogl...@on...> - 2002-04-17 10:01:57
|
Hello perl-win32-gui-users, How to make two or more independent groups of radiobuttons? Thanks -- Best regards, Eugeniy mailto:ogl...@on... |
From: Guillem C. W. <vac...@es...> - 2002-04-17 01:06:41
|
Well, firstly I'm very glad for all the indications that I receive from = everybody.If it was possible I will pay a beer to everybody.....or more = than one in more than one case :) >$win->btnHide()->SetFocus(); #fails on run-time, btnHide? I'm going to include the event that is sorrounding my head ...this is an = event that comes from a TreeView, I comment some thinks in bold ,that = is:=20 sub Tree_NodeClick { $posdinsalu=3D0; for my $est_alu (@alumne) { if ($est_alu->{Arbre}=3D=3D$_[0]) { if (!exists ($w_analisi[$posdinsalu])) { # I Create dinamically a window that depens on a variable $w_analisi[$posdinsalu] =3D Win32::GUI::Window->new ( -top =3D> 0, -left =3D> 0, -width =3D> 600,=20 -height =3D> 400, -minsize =3D> [600,400], -text =3D> "Comentaris respecte $est_alu->{Nom}",=20 -name =3D> "Mailtool::tutor::e_w_analisi_$posdinsalu",); $canviat[$posdinsalu]=3D0; =20 open ENTSIS,"<sessions/${posdinsalu}${noms}.txt"; =20 $res =3D<ENTSIS>; chop ($res); $toteltex=3D$res; while($res =3D<ENTSIS>) { chop ($res); $toteltex=3D$toteltex."\r\n".$res; } close ENTSIS; $comentaris[$posdinsalu] =3D$w_analisi[$posdinsalu]->AddTextfield( -foreground =3D> [0, 0, 0], # Color del text: negre -font =3D> $Mailtool::mevesfonts::fo_normal, -left =3D> 10, -top =3D> 10, -height =3D> 350, -width =3D> 480, -name =3D> "Mailtool::tutor::t_comentari_$posdinsalu", -addstyle =3D> WS_CHILD | WS_VISIBLE | WS_VSCROLL=20 | ES_LEFT | ES_MULTILINE | ES_AUTOVSCROLL,); $comentaris[$posdinsalu]->Text("${toteltex}"); $b_guardar[$posdinsalu] =3D $w_analisi[$posdinsalu]->AddButton( -text =3D> "GUARDAR", # Text al bot=F3 -font =3D> $Mailtool::mevesfonts::fo_normal, -left =3D> 510, -top =3D> 85, -height =3D> 25, -name =3D> "Mailtool::tutor::b_$posdinsalu",); ## Ens cal fer us de eval per al tractament dels events de les = finestres din=E0miques. ## Aldo told me about the use of eval....it works good eval qq{ =20 sub Mailtool::tutor::b_${posdinsalu}_Click { Mailtool::tutor::b_Click($posdinsalu);} =20 sub Mailtool::tutor::e_w_analisi_${posdinsalu}_Terminate { Mailtool::tutor::e_w_analisi_Terminate($posdinsalu);} =20 sub Mailtool::tutor::t_comentari_${posdinsalu}_Change { Mailtool::tutor::t_comentari_Change($posdinsalu);} }; # Here stars the problem, the new windows appears for miliseconds but = goes beneath the $w_tutor $w_analisi[$posdinsalu]->Show(); $w_analisi[$posdinsalu]->SetForegroundWindow(); $w_analisi[$posdinsalu]->SetFocus(); } else { # In case that I reopen a dinamic window the first time it doesn't = open, but yes the next time, after another one, for example $w_analisi[$posdinsalu]->Show(); }=20 } =20 } return 0; } A lot of thaks to everybody !!! Regards from Catalonia, Guillem Cunillera i Wefers "Cuni" |
From: Johan L. <jo...@ba...> - 2002-04-16 22:38:35
|
Cuillem wrote: >Mi problem is I create dinamicaly some small windons that always go beneath >a main window. > >$w_analisi[$posdinsalu]->Activate(); > >doesn't work....how I can pass the focus to this window ? This works for me: $win->SetForegroundWindow(); $win->btnHide()->SetFocus(); I.e. the difference from your attempt is that I also call SetFocus on a control in the window. This may or may not work for you, I haven't followed the thread too closely. The first call really should do it, so I'm not sure why your solution doesn't work. /J -------- ------ ---- --- -- -- -- - - - - - Johan Lindström Sourcerer @ Boss Casinos jo...@ba... Latest bookmark: "Customizing Makefile.PL" http://www.perlmonks.org/index.pl?node_id=159483 dmoz (1 of 5): /Computers/Programming/Languages/Perl |
From: Guillem C. W. <vac...@es...> - 2002-04-16 22:14:59
|
Does anybody created a vertical font with Win32::GUI ? Is possible ? Any kind of vertical font for me is good. thanks. Guillem Cunillera i Wefers. |
From: Guillem C. W. <vac...@es...> - 2002-04-16 15:12:18
|
RE: [perl-win32-gui-users] (no subject)It works ...but then DialogBox = goes beneath my other Windows... Guillem Cunillera i Wefers. -----Mensaje original----- De: Peter Eisengrein <Pet...@at...> Para: 'Guillem Cunillera Wefers' <vac...@es...>; = per...@li... = <per...@li...> Fecha: dimarts, 16 / abril / 2002 16:56 Asunto: RE: [perl-win32-gui-users] (no subject) I tried -topmost with a DialogBox and it worked on my NT4.0 = Activestate perl v5.6.0, Win32::GUI v 0.0.558=20 > -----Original Message-----=20 > From: Guillem Cunillera Wefers [mailto:vac...@es...]=20 > Sent: Tuesday, April 16, 2002 10:37=20 > To: per...@li...=20 > Subject: RE: [perl-win32-gui-users] (no subject)=20 >=20 >=20 > I have tried also:=20 >=20 > $w_analisi[$posdinsalu]->Show();=20 > $w_analisi[$posdinsalu]->SetForegroundWindow();=20 > $w_analisi[$posdinsalu]->BringWindowToTop();=20 >=20 > but no results....=20 >=20 >=20 > -----Mensaje original-----=20 > De: Guillem Cunillera Wefers <vac...@es...>=20 > Para: per...@li...=20 > <per...@li...>=20 > Fecha: dimarts, 16 / abril / 2002 15:54=20 > Asunto: RE: [perl-win32-gui-users] (no subject)=20 >=20 >=20 > >-topmost is not good for me because I can't see for instance some=20 > >DialogBox...=20 > >=20 > >>You could also use the Activate event of the window beneath=20 > to set the=20 > >focus to=20 > >>the window on top, but then you wouldn't be able to do=20 > anything in the=20 > >>window beneath, which would defeat the purpose of not disabling = it.=20 > >=20 > >Mi problem is I create dinamicaly some small windons that=20 > always go beneath=20 > >a main window.=20 > >=20 > >$w_analisi[$posdinsalu]->Activate();=20 > >=20 > >doesn't work....how I can pass the focus to this window ?=20 > >=20 > >Guillem Cunillera i Wefers=20 > >=20 > >=20 > >=20 > >_______________________________________________=20 > >Perl-Win32-GUI-Users mailing list=20 > >Per...@li...=20 > >https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users=20 > >=20 >=20 >=20 > _______________________________________________=20 > Perl-Win32-GUI-Users mailing list=20 > Per...@li...=20 > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users=20 >=20 |
From: Guillem C. W. <vac...@es...> - 2002-04-16 14:34:11
|
I have tried also: $w_analisi[$posdinsalu]->Show(); $w_analisi[$posdinsalu]->SetForegroundWindow(); $w_analisi[$posdinsalu]->BringWindowToTop(); but no results.... -----Mensaje original----- De: Guillem Cunillera Wefers <vac...@es...> Para: per...@li... <per...@li...> Fecha: dimarts, 16 / abril / 2002 15:54 Asunto: RE: [perl-win32-gui-users] (no subject) >-topmost is not good for me because I can't see for instance some >DialogBox... > >>You could also use the Activate event of the window beneath to set the >focus to >>the window on top, but then you wouldn't be able to do anything in the >>window beneath, which would defeat the purpose of not disabling it. > >Mi problem is I create dinamicaly some small windons that always go beneath >a main window. > >$w_analisi[$posdinsalu]->Activate(); > >doesn't work....how I can pass the focus to this window ? > >Guillem Cunillera i Wefers > > > >_______________________________________________ >Perl-Win32-GUI-Users mailing list >Per...@li... >https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > |
From: Guillem C. W. <vac...@es...> - 2002-04-16 13:53:52
|
-topmost is not good for me because I can't see for instance some DialogBox... >You could also use the Activate event of the window beneath to set the focus to >the window on top, but then you wouldn't be able to do anything in the >window beneath, which would defeat the purpose of not disabling it. Mi problem is I create dinamicaly some small windons that always go beneath a main window. $w_analisi[$posdinsalu]->Activate(); doesn't work....how I can pass the focus to this window ? Guillem Cunillera i Wefers |
From: Sean H. <jal...@ho...> - 2002-04-16 13:14:46
|
>How can be force that one Window is always over an other ?, without having >to disable the second one. > >I'm going to end my actual program in few days and I hope that few >questions you will see.... Well, the -topmost => 1 option allows the window to stay on top - but it will also be on top of all other windows, even non-Win32::GUI windows. You could also use the Activate event of the window beneath to set the focus to the window on top, but then you wouldn't be able to do anything in the window beneath, which would defeat the purpose of not disabling it. _________________________________________________________________ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com |
From: Sean H. <jal...@ho...> - 2002-04-16 13:13:22
|
>How can be force that one Window is always over an other ?, without having >to disable the second one. > >I'm going to end my actual program in few days and I hope that few >questions you will see.... Well, the -topmost => 1 option allows the window to stay on top - but it will also be on top of all other windows, even non-Win32::GUI windows. You could also use the Activate event of the window beneath to set the focus to the window on top, but then you wouldn't be able to do anything in the window beneath, which would defeat the purpose of not disabling it. _________________________________________________________________ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com |
From: Guillem C. W. <vac...@es...> - 2002-04-16 08:56:40
|
How can be force that one Window is always over an other ?, without = having to disable the second one. I'm going to end my actual program in few days and I hope that few = questions you will see.... Regards from Catalonia, Guillem Cunillera i Wefers |
From: Guillem C. W. <vac...@es...> - 2002-04-15 11:15:45
|
Ok,now it works....after changing $est->alu->{Nom} for other variable tha= t doesn't contains any spaces !!!! Best regards from Catalonia Guillem Cunillera i Wefers -----Mensaje original----- De: Aldo Calpini <dad...@al...> Para: Guillem Cunillera Wefers <vac...@es...>; perlwin32gui <per...@li...> Fecha: dilluns, 15 / abril / 2002 12:33 Asunto: Re: [perl-win32-gui-users] Dinamic windows... > >Guillem Cunillera Wefers wrote: >> [...] >> $b_guardar{$est_alu->{Nom}} =3D $w_analisi{$est_alu->{Nom}}->AddButto= n( >> -text =3D> "GUARDAR", # Text al bot=F3 >> -font =3D> $Mailtool::mevesfonts::fo_normal, >> -left =3D> 520, >> -top =3D> 85, >> -height =3D> 25, >> -name =3D> "Mailtool::tutor::b_${est_alu->{Nom}}", # ???????????????????? > >the line above should read: > > -name =3D> "Mailtool::tutor::b_$est_alu->{Nom}", > >> How I can receive the event for every instance of button ?? > >do something like: > > eval qq{ > sub Mailtool::tutor::b_$est_alu->{Nom}_Click { > Mailtool::tutor::b_Click( "$est_alu->{Nom}" ); > } > }; > >this will call the "generic" Mailtool::tutor::b_Click subroutine, passin= g >$est_alu->{Nom} as its first parameter. you can then perform appropriate >actions for your instance. > > >cheers, >Aldo > >__END__ >$_=3Dq,just perl,,s, , another ,,s,$, hacker,,print; > > >_______________________________________________ >Perl-Win32-GUI-Users mailing list >Per...@li... >https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > |
From: Guillem C. W. <vac...@es...> - 2002-04-15 10:37:49
|
I'm going to try....and...a lot of thanks again... Guillem Cunillera i Wefers -----Mensaje original----- De: Aldo Calpini <dad...@al...> Para: Guillem Cunillera Wefers <vac...@es...>; perlwin32gui <per...@li...> Fecha: dilluns, 15 / abril / 2002 12:33 Asunto: Re: [perl-win32-gui-users] Dinamic windows... > >Guillem Cunillera Wefers wrote: >> [...] >> $b_guardar{$est_alu->{Nom}} =3D $w_analisi{$est_alu->{Nom}}->AddButto= n( >> -text =3D> "GUARDAR", # Text al bot=F3 >> -font =3D> $Mailtool::mevesfonts::fo_normal, >> -left =3D> 520, >> -top =3D> 85, >> -height =3D> 25, >> -name =3D> "Mailtool::tutor::b_${est_alu->{Nom}}", # ???????????????????? > >the line above should read: > > -name =3D> "Mailtool::tutor::b_$est_alu->{Nom}", > >> How I can receive the event for every instance of button ?? > >do something like: > > eval qq{ > sub Mailtool::tutor::b_$est_alu->{Nom}_Click { > Mailtool::tutor::b_Click( "$est_alu->{Nom}" ); > } > }; > >this will call the "generic" Mailtool::tutor::b_Click subroutine, passin= g >$est_alu->{Nom} as its first parameter. you can then perform appropriate >actions for your instance. > > >cheers, >Aldo > >__END__ >$_=3Dq,just perl,,s, , another ,,s,$, hacker,,print; > > >_______________________________________________ >Perl-Win32-GUI-Users mailing list >Per...@li... >https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > |
From: Aldo C. <dad...@al...> - 2002-04-15 10:32:12
|
Guillem Cunillera Wefers wrote: > [...] > $b_guardar{$est_alu->{Nom}} =3D $w_analisi{$est_alu->{Nom}}->AddButton= ( > -text =3D> "GUARDAR", # Text al bot=F3 > -font =3D> $Mailtool::mevesfonts::fo_normal, > -left =3D> 520, > -top =3D> 85, > -height =3D> 25, > -name =3D> "Mailtool::tutor::b_${est_alu->{Nom}}", # ???????????????= ????? the line above should read: -name =3D> "Mailtool::tutor::b_$est_alu->{Nom}", > How I can receive the event for every instance of button ?? do something like: eval qq{ sub Mailtool::tutor::b_$est_alu->{Nom}_Click { Mailtool::tutor::b_Click( "$est_alu->{Nom}" ); } }; this will call the "generic" Mailtool::tutor::b_Click subroutine, passing $est_alu->{Nom} as its first parameter. you can then perform appropriate actions for your instance. cheers, Aldo __END__ $_=3Dq,just perl,,s, , another ,,s,$, hacker,,print; |
From: Guillem C. W. <vac...@es...> - 2002-04-15 09:57:15
|
Maybe the subject is a litlle ambigous but... Well, in this case I'm an trying to create and use a set of Windows with = the same behaviour, that's to say:=20 $w_analisi{$est_alu->{Nom}} =3D Win32::GUI::Window->new ( -top =3D> 0, -left =3D> 0, -width =3D> 600,=20 -height =3D> 400, -minsize =3D> [600,400], -text =3D> "Comentaris respecte $est_alu->{Nom}",=20 -name =3D> "Mailtool::tutor::e_w_analisi",); $comentaris{$est_alu->{Nom}} = =3D$w_analisi{$est_alu->{Nom}}->AddTextfield( -foreground =3D> [0, 0, 0], # Color del text: negre -text -font =3D> $Mailtool::mevesfonts::fo_normal, -left =3D> 10, -top =3D> 10, -height =3D> 350, -width =3D> 480, -name =3D> "Mailtool::tutor::t_comentari", -addstyle =3D> WS_CHILD | WS_VISIBLE | WS_VSCROLL=20 | ES_LEFT | ES_MULTILINE | ES_AUTOVSCROLL, ); $comentaris{$est_alu->{Nom}}->Text("${toteltex}"); $b_guardar{$est_alu->{Nom}} =3D $w_analisi{$est_alu->{Nom}}->AddButton( -text =3D> "GUARDAR", # Text al bot=F3 -font =3D> $Mailtool::mevesfonts::fo_normal, -left =3D> 520, -top =3D> 85, -height =3D> 25, -name =3D> "Mailtool::tutor::b_${est_alu->{Nom}}", # = ???????????????????? ); $w_analisi{$est_alu->{Nom}}->Show(); How I can receive the event for every instance of button ?? Every window = have its own button. I guess you understand what I'm trying to do...you know.....Monday = morming... Regards from Catalonia, Guillem Cunillera i Wefers |
From: Darek A. <dar...@eu...> - 2002-04-14 18:37:32
|
----- Original Message ----- From: "Sean Healy" <jal...@ho...> Date: Sat, 13 Apr 2002 17:47:51 -0800 To: dar...@eu..., per...@li... Subject: Re: [perl-win32-gui-users] DC and GetTextExtentPoint32 > > ($width,$height) = $Window->GetTextExtentPoint32($text,$FontObject); > Thank You. So It seems 'GetTextExtentPoint32' method description I found in Win32_GUI.html (from source code version of Win32::GUI module) is not correct - It places args in wrong order: GetTextExtentPoint32([FONT], STRING) Regards Darek -- _______________________________________________ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup |
From: Sean H. <jal...@ho...> - 2002-04-14 01:48:09
|
>Hi Everybody >First of all I must say I'm completely new to the Win32::GUI module >programming > (and Win32 in general) - I just installed (on Win'98 and latest version >of ActiveState Perl) binary version fetched from sourceforge. Getting to >the point - to get the length and >width of some font text I tried to use GetTextExtentPoint32 t but I failed >to find the >way to specify font to be affected in return value. >I tried: > >1) >$Window->GetTextExtentPoint32($font, "some text"); > >2) >$Window->SelectObject($Window->{DC}, $font); >$Window->GetTextExtentPoint32("some text"); > >3) >$Window->SetFont($font); >$Window->GetTextExtentPoint32("some text"); > >In both cases $font was created by new WIN32::GUI::Font method and >successfully aplied to Paint method (TextOut). No matter the -size and >-name was the return value was the same. ($width,$height) = $Window->GetTextExtentPoint32($text,$FontObject); _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com |
From: Darek A. <dar...@eu...> - 2002-04-14 00:33:31
|
Hi Everybody First of all I must say I'm completely new to the Win32::GUI module programming (and Win32 in general) - I just installed (on Win'98 and latest version of ActiveState Perl) binary version fetched from sourceforge. Getting to the point - to get the length and width of some font text I tried to use GetTextExtentPoint32 t but I failed to find the way to specify font to be affected in return value. I tried: 1) $Window->GetTextExtentPoint32($font, "some text"); 2) $Window->SelectObject($Window->{DC}, $font); $Window->GetTextExtentPoint32("some text"); 3) $Window->SetFont($font); $Window->GetTextExtentPoint32("some text"); In both cases $font was created by new WIN32::GUI::Font method and successfully aplied to Paint method (TextOut). No matter the -size and -name was the return value was the same. Regards Darek PS. Perhaps I missed something It's very late in the night. -- _______________________________________________ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup |
From: Joey L. <in...@pd...> - 2002-04-13 23:50:00
|
Hi, If I use DialogBox and create a multiline Textfield or a RichEdit, and if I press "cancel" when the control has the focus, the dialog window disappears (I'm afraid it's destroyed at this point). Do you happen to know what to prevent this to happen? Assigning "-cancel" option to a button won't work; the _Click event is not called. Thanks for any hints, Joey |
From: Johan L. <jo...@ba...> - 2002-04-13 23:12:33
|
Ed wrote: >The way I would probably do this, without a gui, is to >read the file, >figure out what time to go off, convert it to seconds >and sleep until then. >But I can't do that because the main gui loop is >always running waiting >for an event, correct? >How would I do a periodic check on the alarm time, and >not interfere >with the main gui loop, can these be reconciled? Take a look at the Win32::GUI::Timer control. It can be set to trigger an event every n milliseconds(?) in which you can do your stuff. /J -------- ------ ---- --- -- -- -- - - - - - Johan Lindström Sourcerer @ Boss Casinos jo...@ba... Latest bookmark: "CGI Help Guide" http://www.perlmonks.org/index.pl?node=CGI%20Help%20Guide dmoz (1 of 8): /Computers/Programming/Languages/Perl |
From: ed <co...@ya...> - 2002-04-13 22:50:47
|
Hey all. I want to write a simple alarm clock that will play a wav file, probably using win32::sound . My idea for this little app, is that I will be able to enter the time that it will go off, and allow it go off at specified intervals afterwards. For instance, I want to set it to go off at 12:00pm and play the wav file every 5 minutes until I turn it off. The way I would probably do this, without a gui, is to read the file, figure out what time to go off, convert it to seconds and sleep until then. But I can't do that because the main gui loop is always running waiting for an event, correct? How would I do a periodic check on the alarm time, and not interfere with the main gui loop, can these be reconciled? I haven't really done any gui programming, I've just messed around a little bit with win32::gui . So my question may make rather evident that I don't have a clue :) tia, --ed __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.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 > > |