From: Frazier, J. J. <Joe...@Pe...> - 2001-09-27 12:14:18
|
Given: $menu =3D Win32::GUI::MakeMenu( "&File" =3D> "File", " > E&xit" =3D> "Exit", "&Search" =3D> "Search", " > &Client ID" =3D> "CID", ); then this: $menu->{CID}->Enabled(0); disables the Client ID menu command and=20 $menu->{CID}->Enabled(1); reenables it. -----Original Message----- From: Eva...@ao... [mailto:Eva...@ao...] Sent: Thursday, September 27, 2001 12:18 AM To: per...@li... Subject: [perl-win32-gui-users] (no subject) I've got 2 questions...=20 In a listview control, is there a way I can select *all* of the items in the control? Along those same lines, could i also select *none* of the items?=20 And one more thing...can i enable/disable specific items in a Win32::GUI::Menu object (and if so, how)?=20 -=20 ______________________________=20 "Very funny Scotty. Now beam up my clothes."=20 |
From: Frazier, J. J. <Joe...@Pe...> - 2001-09-27 14:39:44
|
Look at the samples and "play". 8^( To my knowledge, there is no standard documentation which fully explains all the features of all implimented controls. This is why we have the list 8^). Also, check the archives on Sourceforge.net. =20 I took this from a program I had which has a menu, and added the Enable/Disable to my program. I then answered your question. I got the idea from "splitter.pl in the samples. In the sub Vertical_Click, it has : $M->{Horizontal}->Checked(not $M->{Horizontal}->Checked ); # $M is your menu object # Horizontal is sub-object as CID is below # Checked is one of those undocumented methods. I just replaced Enabled and it worked.... Joe Frazier, Jr Technical Support Engineer PeopleClick 919-645-2916 joe...@pe... =20 -----Original Message----- From: Mark Wilkinson [mailto:ma...@il...] Sent: Thursday, September 27, 2001 10:28 AM To: ""Frazier; Frazier, Joe Jr; per...@li... Subject: RE: [perl-win32-gui-users] (no subject) I can't find any documentation *at all* for Menu objects... all the docs I have say "TBA" when it comes to Menu's. I am surprised and excited to see that they are implemented! Please send me a URL where I can get updated docs :-) thanks all! Mark Wilkinson ma...@ch... ma...@il... > Given: >=20 > $menu =3D Win32::GUI::MakeMenu( > "&File" =3D> "File", > " > E&xit" =3D> "Exit", > "&Search" =3D> "Search", > " > &Client ID" =3D> "CID", > ); >=20 > then this: > $menu->{CID}->Enabled(0); >=20 > disables the Client ID menu command and=20 >=20 > $menu->{CID}->Enabled(1); >=20 > reenables it. >=20 |
From: Johan L. <jo...@ba...> - 2001-09-27 15:00:13
|
Joe wrote: >Look at the samples and "play". 8^( To my knowledge, there is no >standard documentation which fully explains all the features of all >implimented controls. This is why we have the list 8^). Also, check >the archives on Sourceforge.net. Also, look at the thread "Documentation" from last Tuesday and the list I posted of Win32::GUI applications to learn from. Look through all of them and take note of what cool features you'd like in your own program. Then go code browsing. /J ------ ---- --- -- -- -- - - - - - Johan Lindström Boss Casinos Sourcerer jo...@ba... http://www.bahnhof.se/~johanl/ If the only tool you have is a hammer, everything tends to look like a nail |
From: Frazier, J. J. <Joe...@Pe...> - 2001-09-30 19:13:47
|
VGhlcmUgaXMgbm8gVVJMLiAgSSBjaGVja2VkIHRoZSBzYW1wbGVzLiAgWW91IE1VU1QgZG93bmxv YWQgdGhlIHNvdXJjZQ0KaW4gb3JkZXIgdG8gZ2V0IHRoZSBkb2N1bWVudGlvbiBhbmQgdGhlIHNh bXBsZXMuICAgU2V2ZXJhbCBvZiB0aGUNCnNhbXBsZXMgaGF2ZSBNZW51cyB0byBsb29rIGF0LiAg IE5vdGUgdGhhdCBzZXZlcmFsIG9mIHRoZSBzYW1wbGVzIFdJTEwNCk5PVCB3b3JrIHdpdGhvdXQg bW9kaWZpY2F0aW9ucy4gICBNb3N0IGFyZSBqdXN0IG1pc3NpbmcgYSAtbmFtZSBmb3Igc29tZQ0K b2YgdGhlIGNvbnRyb2xzLiAgDQogDQoNCgktLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLSANCglG cm9tOiBNYXJrIFdpbGtpbnNvbiANCglTZW50OiBTdW4gOS8zMC8yMDAxIDEyOjI2IFBNIA0KCVRv OiBGcmF6aWVyLCBKb2UgSnIgDQoJQ2M6IHBlcmwtd2luMzItZ3VpLXVzZXJzQGxpc3RzLnNvdXJj ZWZvcmdlLm5ldCANCglTdWJqZWN0OiBSZTogW3Blcmwtd2lu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XJjZWZvcmdlLm5ldA0KCT4NCmh0dHBz Oi8vbGlzdHMuc291cmNlZm9yZ2UubmV0L2xpc3RzL2xpc3RpbmZvL3Blcmwtd2luMzItZ3VpLXVz ZXJzDQoJDQoJDQoNCg== |
From: Marcus <li...@wo...> - 2001-09-30 21:59:48
|
On 30.09.01 at 15:13 Frazier, Joe Jr wrote: >There is no URL. I checked the samples. You MUST download the source >in order to get the documention and the samples. Several of the >samples have Menus to look at. Look for a sample program with menus, and look at the source. It's very simple. I just learnt about menus yesterday like that. >Note that several of the samples WILL >NOT work without modifications. Most are just missing a -name for some >of the controls. Can't we collect the corrected samples and redistribute them? I've just started with Win32::GUI and it's offputting as a newcomer. You wonder about the status of development and whether it's worth getting into Win32::GUI at this stage. I didn't find any hints that the errors were due to syntax errors (or syntax changes?) in the samples. Marcus |
From: Sean H. <jal...@ho...> - 2002-02-23 19:39:53
|
>Also, does anyone know why, in multiline RE fields at least, if you just >keep hitting enter your cursor goes off the edit window and you have to >scroll down manually? Is there a way to make it focus on the cursor >automatically? A solution to this has been posted before, and someone may hvae a record of it, but here's a possible solution: ($x,$y) = $RichEdit->Selection; $currentline = $RichEdit->LineFromChar; while (1) { my $firstline = $RichEdit->FirstVisibleLine; my $linecount = Win32::GUI::SendMessage($RichEdit,EM_GETLINECOUNT,0,0); my $lastline = $firstline + $linecount - 1; last if ($lastline >= $currentline); Win32::GUI::SendMessage($RichEdit,EM_SCROLL,SB_LINEDOWN,0); } This code has not been tested, but it should work. You'd have to put in the '_Change' event of $RichEdit. (I have not been able to get the '_Change' event to work, but maybe someone has a solution for that problem.) A little modification, and you should be able to always make the current selection visible. EM_GETLINECOUNT = 0x00ba EM_SCROLL = 0x00b5 SB_LINEUP = 0 SB_LINEDOWN = 1 SB_PAGEUP = 2 SB_PAGEDOWN = 3 _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. |
From: Frazier, J. J. <Joe...@Pe...> - 2002-02-27 16:54:55
|
> -----Original Message----- > From: Ultimate Red Dragon [mailto:scc...@ho...] > Sent: Saturday, February 23, 2002 12:58 PM > To: per...@li... > Subject: [perl-win32-gui-users] (no subject) >=20 >=20 > Has anyone written/know how it could easily be done, a=20 > WYSIWYG HTML editor=20 > using a RichEdit field? >=20 > It doesn't need to do much, just links, bold, italics, underline. >=20 ppm install RTF::Parser There is no documentation that I could find. It installes rtf2html.pl = and rtf2text.pl in your perl/bin folder. You can use that to convert an = RTF file to HTML. I have only done one transformation, so I cannot help = you any. I dont even know if there is a string method to avoid the = intermediate save to disk step. If you are feeling nice, maybe you can = contact the maintainer and have this added or add yourself and push to = CPAN/PPM with docs. |
From: Ultimate R. D. <scc...@ho...> - 2002-02-27 21:06:10
|
Thanks, I'll look into it. Now I have to find a practical means to allow people to format the text within the window. (Really, converting it isn't even that great a problem, it's allowing people to hit a bold button etc... > -----Original Message----- > From: Ultimate Red Dragon [mailto:scc...@ho...] > Sent: Saturday, February 23, 2002 12:58 PM > To: per...@li... > Subject: [perl-win32-gui-users] (no subject) > > > Has anyone written/know how it could easily be done, a > WYSIWYG HTML editor > using a RichEdit field? > > It doesn't need to do much, just links, bold, italics, underline. > ppm install RTF::Parser There is no documentation that I could find. It installes rtf2html.pl and rtf2text.pl in your perl/bin folder. You can use that to convert an RTF file to HTML. I have only done one transformation, so I cannot help you any. I dont even know if there is a string method to avoid the intermediate save to disk step. If you are feeling nice, maybe you can contact the maintainer and have this added or add yourself and push to CPAN/PPM with docs. _________________________________________________________________ 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: 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: 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: 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 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 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-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-10-17 22:50:09
|
At 09:02 2002-10-16 -0700, Rodriguez, Peter wrote: >I do not have a 'C' compiler on the NT machine I need to run perl on. I >downloaded the NT executables for 5.8 from cpan. Is there a similar >distribution for the GUI interface? Not for 5.8. ActiveState haven't released a Perl 5.8 yet, and the precompiled PPMs are for Perl 5.6. Get Perl 5.6.1 from www.activestate.com, then type C:\>ppm install Win32::GUI /J -------- ------ ---- --- -- -- -- - - - - - Johan Lindström Sourcerer @ Boss Casinos jo...@ba... Latest bookmark: "Atari Icon Library" http://aicq.atari-users.net/iconz/ dmoz (1 of 2): ...Computers/Software/Desktop_Customization/Icons/ 137 |
From: Michael A. <mi...@fl...> - 2002-10-18 15:04:45
|
Hello again, Thanks for the help with forking and the ideas for using DoEvents() as a replacement for forking. It seems I will have to go with that route. The latest problem I have encountered has to do with ListView checkboxes. I searched the mailing list archives and saw that in version .665 Aldo said: "- ListView checkboxes can now be managed with the ItemCheck() method; there's also a new ItemCheck event for ListViews that gets fired when you toggle an item's checkbox." I understand how to get the current state of each checkbox but it is not clear to me how to change the states of checkboxes individually. Another archived post that I found gave a possible solution for checking all of the checkboxes in a ListView as such: my $SendMsg = new Win32::API("user32", "SendMessage", "NNNP", "N"); use constant LVIF_STATE => 0x8; use constant LVM_SETITEMSTATE => 0x102B; use constant LVIS_STATEIMAGEMASK => 0xF000; my $lpPoint = pack("LLLLLALLLL", LVIF_STATE, 0, 0, 0x2000,LVIS_STATEIMAGEMASK, " ", 127, 0, 0, 0); my $rtn = $SendMsg->Call($ListView->{'-handle'}, LVM_SETITEMSTATE, -1, $lpPoint); Does anyone know how to change the state of an individual ListView checkbox via the ItemCheck() method? Also, I hate to keep asking these basic questions. Is there a better source of documentation somewhere than the pod files that come with the distributions? If not maybe we should organize a centralized FAQ system of some kind? Thanks, Michael |
From: Mark W. <ma...@il...> - 2001-09-30 16:24:50
|
I can't find anywhere in the documentation that describes how to create/use Menu's... it just says "TBA" everywhere. How are you finding this information?? Please send me the URL. I checked all of the URL's from the "Documentation" thread and they didn't help. I have also read the source code, but it isn't documented in any useful way either, so... I'm stuck. :-( Mark "Frazier, Joe Jr" wrote: > Given: > > $menu = Win32::GUI::MakeMenu( > "&File" => "File", > " > E&xit" => "Exit", > "&Search" => "Search", > " > &Client ID" => "CID", > ); > > then this: > $menu->{CID}->Enabled(0); > > disables the Client ID menu command and > > $menu->{CID}->Enabled(1); > > reenables it. > > -----Original Message----- > From: Eva...@ao... [mailto:Eva...@ao...] > Sent: Thursday, September 27, 2001 12:18 AM > To: per...@li... > Subject: [perl-win32-gui-users] (no subject) > > I've got 2 questions... > > In a listview control, is there a way I can select *all* of the items in > the control? Along those same lines, could i also select *none* of the > items? > > And one more thing...can i enable/disable specific items in a > Win32::GUI::Menu object (and if so, how)? > > - > ______________________________ > "Very funny Scotty. Now beam up my clothes." > > _______________________________________________ > Perl-Win32-GUI-Users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users |