[perl-win32-gui-users] RE: Tooltips
Hi All, I tried a few more ways to get the tooltips working (just in case :-) I agree that this would be an extremely useful feature. So who do we ask, beg, bribe etc. Is Win32-GUI still being actively delveloped, improved? Chris Realm Technology Perth, Western Australia Message: 1 Date: Mon, 18 Feb 2002 09:16:59 -0600 From: "Eric Hansen" <[EMAIL PROTECTED]> To: Subject: [perl-win32-gui-users] Re: Perl-Win32-GUI-Users digest, Vol 1 #328 - 2 msgs We should all really push for this feature to be fully implemented. I = have often wanted it myself to put context sensitive help in my application= s.=20 Eric Dallas, Texas USA
[perl-win32-gui-users] Fork() and BringWindowToTop()
Hi All, I'm trying to use fork() to create a parent and child process. The parent will deal with Win32::GUI events, tell the child which buttons etc have been pressed, the child will carry out the actions and update the appropriate controls on the window. This way I can allow the main window to continue reacting to some events (eg refresh, minimise or even quit) while the processing is performed in the background by the child. One of the child actions is to bring up a browseforfolder type dialog and put the selected directories into a text field on the main window. I can get this to work fine, except that BringWindowToTop doesn't seem to work after returning from the browse for folder dialog. Instead my main window disappears behind what ever window happens to be behind it. Bringing up the browseforfolder dialog does require entering a win32::gui::dialog loop and my guess is that this is what's causing the problem. If I alt-tab to the main window it continues to function normally. If I move the browseforfolder action into the parent everything works fine but it would be neater to have all screen updating performed by the child and it seems slightly odd to get the parent to report the selected directories to the child so it can update the main window. Any suggestions? Cheers, Kev.
Re: [perl-win32-gui-users] RE: Tooltips
I did not realize this list was set up so that hitting 'Reply' replied only to the sender, not to the list (it's the only one of the lists that I'm subscribed to that is), so the last time I sent this, it went only to one person (sorry, whoever that was): There is a really bug in RichEdit::GetCharFormat (and GetParaFormat is not not implemented at all). The following two bits of code are found in the XS: if(dwMask & CFM_FACE) { EXTEND(SP, 2); XST_mPV(si++, "-name"); XST_mPV(si++, cf.szFaceName); } if(dwMask & CFM_SIZE) { EXTEND(SP, 2); XST_mPV(si++, "-name"); XST_mIV(si++, cf.yHeight); So the height and name are both getting set to the '-name' key of the returned hash, and since height is last, we get that and lose the font name. Since this is a two-second fix, I hope it will be fixed for the next release, now that I've brought attention to it. I attempted to create my own GetParaFormat using SendMessage, but I have so far been unsuccessful. _ Send and receive Hotmail on your mobile device: http://mobile.msn.com
[perl-win32-gui-users] Re: Tooltip Feature and Win32::GUI thoughts
Peter, what type of problems are you having exactly? I developed a fully functional, complete application system of programs and menus at work with Win32::GUI (including Win32::ODBC) using advanced features of ListViews, ListBoxes, TextBoxes, Windows, DialogBoxes, etc. back in 1999. There may be some undocumented features I can help you with that I received from Aldo thru direct communication with him back then. I'll try to help anyway. Eric Dallas, Texas USA >>> "Peter Köller" <[EMAIL PROTECTED]> 02/19/02 12:57AM >>> Hello all Win32::GUI Users! Yes, I would like the Tooltip Feature, too. But, I think bug fixes are more interesting. I am working on a big Win32::GUI app and stepped into some serious bugs. I spend more time looking for Win32::GUI workarounds than for the app development. This isn't productive any more. Peter > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Auftrag von > Eric Hansen > Gesendet am: Montag, 18. Februar 2002 16:17 > An: perl-win32-gui-users@lists.sourceforge.net > Betreff: [perl-win32-gui-users] Re: Perl-Win32-GUI-Users digest, Vol 1 > #328 - 2 msgs > > We should all really push for this feature to be fully > implemented. I have often wanted it myself to put context > sensitive help in my applications. > > Eric > Dallas, Texas USA > > >>> [EMAIL PROTECTED] 02/17/02 > 02:14PM >>> > Send Perl-Win32-GUI-Users mailing list submissions to > perl-win32-gui-users@lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > or, via email, send a message with subject or body 'help' to > [EMAIL PROTECTED] > > You can reach the person managing the list at > [EMAIL PROTECTED] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Perl-Win32-GUI-Users digest..." > > > Today's Topics: > >1. Tool Tips (Chris Wearn) >2. Re: Tool Tips (Marcus) > > --__--__-- > > Message: 1 > From: "Chris Wearn" <[EMAIL PROTECTED]> > To: > Date: Sun, 17 Feb 2002 13:23:16 +0800 > Subject: [perl-win32-gui-users] Tool Tips > > Hello All, > > I have now exhausted most combinations of things that seem > logical, however > I still can't get the tool tips to work. > > What Objects can I place it on. I'm trying to get a tip to appear on > buttons. > > # Create Button object - SetCWD > $btnSetCWD = $MainWin->AddButton( >-name=> "btnSetCWD", >-text=> "Set", >-width => 80, >-height => 23, >-left=> 516, >-top => 260, >-tabstop => 1, >-font=> $Font, >-tooltips=> 1, > ); > > # Create Tooltip object > $ttipSetCWD = new Win32::GUI::Tooltip( > -parent => $btnSetCWD, > -name => "ttipSetCWD", > -text => "Text to display as tooltip", > ); > > I have scoured the net for any examples but have not found a > worked example > and the Win32::GUI docs are not expansive enough for me to figure it out > (read dumb!). > > Has anyone else managed to get this to work? > > Chris > > > > --__--__-- > > Message: 2 > Date: Sun, 17 Feb 2002 18:29:04 +0100 > From: "Marcus" <[EMAIL PROTECTED]> > To: perl-win32-gui-users@lists.sourceforge.net > Subject: Re: [perl-win32-gui-users] Tool Tips > > On 17.02.02 at 13:23 Chris Wearn wrote: > >I have now exhausted most combinations of things that seem logical, > however > >I still can't get the tool tips to work. > > afaik, tool tips are not yet implemented. I also spent a lot of time on > them because the manual gives the impression of tool tips being > available. The only implemented tool tip is the one that comes with the > system tray icon. > > I'd be glad to learn otherwise though. > > Marcus > > > > > > --__--__-- > > ___ > Perl-Win32-GUI-Users mailing list > Perl-Win32-GUI-Users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > > > End of Perl-Win32-GUI-Users Digest > > > ___ > Perl-Win32-GUI-Users mailing list > Perl-Win32-GUI-Users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users >
Re: [perl-win32-gui-users] Re: Tooltip Feature and Win32::GUI thoughts
Eric, Perhaps you could share those direct communications from Aldo with people that maintain Win32::GUI FAQ lists these days? Or the list at large? Perhaps some of it could get incorporated into the FAQ or into some other documentation? Like others, I'm starting to wonder if there is any active development of Win32::GUI happening. As I'm considering doing a fairly major Win32::GUI application soon, I'm a bit nervous about the level of support that might be available, should I run into a serious limitation. Eric Hansen wrote: > > Peter, > > what type of problems are you having exactly? I developed a fully > functional, complete application system of programs and menus at work with > Win32::GUI (including Win32::ODBC) using advanced features of ListViews, > ListBoxes, TextBoxes, Windows, DialogBoxes, etc. back in 1999. There may > be some undocumented features I can help you with that I received from Aldo > thru direct communication with him back then. I'll try to help anyway. > > Eric > Dallas, Texas USA > > >>> "Peter Köller" <[EMAIL PROTECTED]> 02/19/02 12:57AM >>> > Hello all Win32::GUI Users! > > Yes, I would like the Tooltip Feature, too. > > But, I think bug fixes are more interesting. I am working on a big > Win32::GUI app and stepped into some serious bugs. I spend more time looking > for Win32::GUI workarounds than for the app development. This isn't > productive any more. > > Peter > > > -Ursprüngliche Nachricht- > > Von: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Auftrag von > > Eric Hansen > > Gesendet am: Montag, 18. Februar 2002 16:17 > > An: perl-win32-gui-users@lists.sourceforge.net > > Betreff: [perl-win32-gui-users] Re: Perl-Win32-GUI-Users digest, Vol 1 > > #328 - 2 msgs > > > > We should all really push for this feature to be fully > > implemented. I have often wanted it myself to put context > > sensitive help in my applications. > > > > Eric > > Dallas, Texas USA > > > > >>> [EMAIL PROTECTED] 02/17/02 > > 02:14PM >>> > > Send Perl-Win32-GUI-Users mailing list submissions to > > perl-win32-gui-users@lists.sourceforge.net > > > > To subscribe or unsubscribe via the World Wide Web, visit > > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > > or, via email, send a message with subject or body 'help' to > > [EMAIL PROTECTED] > > > > You can reach the person managing the list at > > [EMAIL PROTECTED] > > > > When replying, please edit your Subject line so it is more specific > > than "Re: Contents of Perl-Win32-GUI-Users digest..." > > > > > > Today's Topics: > > > >1. Tool Tips (Chris Wearn) > >2. Re: Tool Tips (Marcus) > > > > --__--__-- > > > > Message: 1 > > From: "Chris Wearn" <[EMAIL PROTECTED]> > > To: > > Date: Sun, 17 Feb 2002 13:23:16 +0800 > > Subject: [perl-win32-gui-users] Tool Tips > > > > Hello All, > > > > I have now exhausted most combinations of things that seem > > logical, however > > I still can't get the tool tips to work. > > > > What Objects can I place it on. I'm trying to get a tip to appear on > > buttons. > > > > # Create Button object - SetCWD > > $btnSetCWD = $MainWin->AddButton( > >-name=> "btnSetCWD", > >-text=> "Set", > >-width => 80, > >-height => 23, > >-left=> 516, > >-top => 260, > >-tabstop => 1, > >-font=> $Font, > >-tooltips=> 1, > > ); > > > > # Create Tooltip object > > $ttipSetCWD = new Win32::GUI::Tooltip( > > -parent => $btnSetCWD, > > -name => "ttipSetCWD", > > -text => "Text to display as tooltip", > > ); > > > > I have scoured the net for any examples but have not found a > > worked example > > and the Win32::GUI docs are not expansive enough for me to figure it out > > (read dumb!). > > > > Has anyone else managed to get this to work? > > > > Chris > > > > > > > > --__--__-- > > > > Message: 2 > > Date: Sun, 17 Feb 2002 18:29:04 +0100 > > From: "Marcus" <[EMAIL PROTECTED]> > > To: perl-win32-gui-users@lists.sourceforge.net > > Subject: Re: [perl-win32-gui-users] Tool Tips > > > > On 17.02.02 at 13:23 Chris Wearn wrote: > > >I have now exhausted most combinations of things that seem logical, > > however > > >I still can't get the tool tips to work. > > > > afaik, tool tips are not yet implemented. I also spent a lot of time on > > them because the manual gives the impression of tool tips being > > available. The only implemented tool tip is the one that comes with the > > system tray icon. > > > > I'd be glad to learn otherwise though. > > > > Marcus > > > > > > > > > > > > --__--__-- > > > > ___ > > Perl-Win32-GUI-Users mailing list > > Perl-Win32-GUI-Users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > > > > > > End of Perl-Win32-GUI-Users Digest > > > > > > ___ > > Perl-Win32-GUI
Re: [perl-win32-gui-users] Re: Tooltip Feature and Win32::GUI thoughts
Hello Eric, Problems: 1. Richedit doesn't work in conjunction with Win32::OLE. When my script was small Richedit and Win32::OLE worked together. But my script became bigger and the dialogs with Richedit didn't work anymore. I refactored my script and it worked fine. But some lines code later it didn't work again. The behaviour was unpredictable. I found out, that the problem was Win32::OLE. But I found no solution and couldn't set up a little script that shows the problem. So I replaced Richedit against a textfield with multiple lines. Not very good. 2. Checkboxes with Listviews. I absolutely need a Listview with checkboxes. But I didn't find out how to check it initially. I can read the state but can't set the state. 3. Tabular keystroke for switching between widgets. It did work until I only wanted one window shown in the taskbar. So I used -parent option and this didn't work. These are my greatest problems while developing my app. It is a little workflow management system for ebay sellers. It is german, but the marketplace specific code is external. Regardless there is no english user interface or a marketplace module for ebay.com. I am thinking about L10N and then will search for developers who can convert the marketplace module from eBay.de to eBay.com. (http://sourceforge.net/projects/auctioneer/) My second problem is my biggest these days. I want to use such a checked Listview for displaying installed marketplace modules or auction fees. I can't figure out how to set up a list with some checkboxes checked and others not. Other problems are for example that I use a speedbar and didn't find out how to use transparent images for it. Another color setting on another system and the app looks bad. Then the bad window management. A message box could be send behind the app, and so on ... I really would appreciate tooltips, but is there active development in this project? Thanks for reading :-) Peter, Germany Ulm > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Auftrag von > Eric Hansen > Gesendet am: Dienstag, 19. Februar 2002 17:10 > An: perl-win32-gui-users@lists.sourceforge.net; [EMAIL PROTECTED] > Betreff: [perl-win32-gui-users] Re: Tooltip Feature and Win32::GUI > thoughts > > Peter, > > what type of problems are you having exactly? I developed a > fully functional, complete application system of programs and > menus at work with Win32::GUI (including Win32::ODBC) using > advanced features of ListViews, ListBoxes, TextBoxes, Windows, > DialogBoxes, etc. back in 1999. There may be some > undocumented features I can help you with that I received from > Aldo thru direct communication with him back then. I'll try to > help anyway. > > Eric > Dallas, Texas USA > > >>> "Peter Köller" <[EMAIL PROTECTED]> 02/19/02 12:57AM >>> > Hello all Win32::GUI Users! > > Yes, I would like the Tooltip Feature, too. > > But, I think bug fixes are more interesting. I am working on a big > Win32::GUI app and stepped into some serious bugs. I spend more > time looking > for Win32::GUI workarounds than for the app development. This isn't > productive any more. > > Peter > > > -Ursprüngliche Nachricht- > > Von: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Auftrag von > > Eric Hansen > > Gesendet am: Montag, 18. Februar 2002 16:17 > > An: perl-win32-gui-users@lists.sourceforge.net > > Betreff: [perl-win32-gui-users] Re: Perl-Win32-GUI-Users digest, Vol 1 > > #328 - 2 msgs > > > > We should all really push for this feature to be fully > > implemented. I have often wanted it myself to put context > > sensitive help in my applications. > > > > Eric > > Dallas, Texas USA > > > > >>> [EMAIL PROTECTED] 02/17/02 > > 02:14PM >>> > > Send Perl-Win32-GUI-Users mailing list submissions to > > perl-win32-gui-users@lists.sourceforge.net > > > > To subscribe or unsubscribe via the World Wide Web, visit > > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > > or, via email, send a message with subject or body 'help' to > > [EMAIL PROTECTED] > > > > You can reach the person managing the list at > > [EMAIL PROTECTED] > > > > When replying, please edit your Subject line so it is more specific > > than "Re: Contents of Perl-Win32-GUI-Users digest..." > > > > > > Today's Topics: > > > >1. Tool Tips (Chris Wearn) > >2. Re: Tool Tips (Marcus) > > > > --__--__-- > > > > Message: 1 > > From: "Chris Wearn" <[EMAIL PROTECTED]> > > To: > > Date: Sun, 17 Feb 2002 13:23:16 +0800 > > Subject: [perl-win32-gui-users] Tool Tips > > > > Hello All, > > > > I have now exhausted most combinations of things that seem > > logical, however > > I still can't get the tool tips to work. > > > > What Objects can I place it on. I'm trying to get a tip to appear on > > buttons. > > > > # Create Button object - SetCWD > > $btnSetCWD = $MainWin->AddButton( > >-name=> "btnSetCWD", > >-text=> "Set", > >-width => 80, > >-height
[perl-win32-gui-users] ListView Checkboxes, ImageList, etc.
Peter, I don't think I can help you with any of your problems I'm sorry to say. I'm especially sorry not to be able to help you with initially setting checkboxes within a ListView. Don't know how to do that. Was not something my app needed to do, but I can see how it would be useful. I can share a couple things I do know howver that might be of interest to you or someone else: Peter, you already know that you can get the value of the checkbox state for a row in the ListView using EXAMPLE $row=15; $checked=$LV->ItemCheck($row); # checkbox state is 0 or 1. This is documented. But, what is not documented is how to get the value of other properties within the ListView such as -text and -image EXAMPLE $row=15; %data = $LV->ItemInfo($row,0); $image= $data{-image}; # image nbr in image list displayed at row 15 $column1text= $data{-text}; # text value in first column of row 15 %data = $LV->ItemInfo($row,1); $column2text= $data{-text}; # text value in 2nd column of row 15 You can change the value of a property associated with a row of the ListView by EXAMPLE $LV->ChangeItem(-item => $row, -image => 1);# display 2nd image in image list Here is a complete declaration of the ListView and its ImageList: EXAMPLE $B1 = new Win32::GUI::Bitmap("deselected.bmp"); # off light $B2 = new Win32::GUI::Bitmap("selected.bmp"); # on light $IL = new Win32::GUI::ImageList(16, 16, 0, 2, 10); $IL->Add($B1, 0); # image 0 or first image in list $IL->Add($B2, 0); # image 1 or 2nd image in list $LV = $W->AddListView( -name => "ListView", -left => 12, -top => 70, -height => 260, -width => 670, ); $LV->View(1); # detailed listing, i.e. columns and rows $LV->SetImageList($IL,1); # enable gridline and checkboxes cabability # fullrowselect defined below, but not activated with SendMessage $LVM_SETEXTENDEDLISTVIEWSTYLE = 0x1000 + 54; $LVS_EX_GRIDLINES = 0x001; $LVS_EX_FULLROWSELECT = 0x020; $LVS_EX_CHECKBOXES = 0x004; $LV->SendMessage($LVM_SETEXTENDEDLISTVIEWSTYLE, 0, $LVS_EX_GRIDLINES | $LVS_EX_CHECKBOXES, ); HOW DO YOU KNOW WHAT ROW IN THE LISTVIEW HAS BEEN SELECTED BY THE USER??? EXAMPLE sub ListView_ItemClick { $row = shift; } Off the subject a little, here is a little trick that is useful to someone wanting to initially set focus on a text box and have the data highlighted in replace/overwrite mode. EXAMPLE $DetailSearchTXT->SetFocus(); $DetailSearchTXT->Select(0,length($DetailSearchTXT->Text())); Regards, Eric Hansen Dallas, Texas USA
Re: [perl-win32-gui-users] ListView Checkboxes, ImageList, etc.
Or you can simply use: $DetailSearchTXT->SelectAll(); Which will also place the entry into replace/overwrite mode. Jeremy Blonde - Original Message - From: "Eric Hansen" <[EMAIL PROTECTED]> To: ; <[EMAIL PROTECTED]> Sent: Tuesday, February 19, 2002 2:32 PM Subject: [perl-win32-gui-users] ListView Checkboxes, ImageList, etc. Off the subject a little, here is a little trick that is useful to someone wanting to initially set focus on a text box and have the data highlighted in replace/overwrite mode. EXAMPLE $DetailSearchTXT->SetFocus(); $DetailSearchTXT->Select(0,length($DetailSearchTXT->Text())); Regards, Eric Hansen Dallas, Texas USA ___ Perl-Win32-GUI-Users mailing list Perl-Win32-GUI-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com