Re: [perl-win32-gui-users] [The GUI Loft] The future of GUI programming in Perl?

2006-11-01 Thread Johan Lindstrom
At 21:43 2006-10-23, stuart arnold wrote: Not about TGL, but how about OASIS? We use it heavily to review our fellow developers code(docs). Nice to hear that. Well, I guess that one is also up for grabs if you feel the need to add more features or editors. /J - with limited net connectivi

Re: [perl-win32-gui-users] [The GUI Loft] The future of GUI programming in Perl?

2006-10-23 Thread Johan Lindstrom
At 19:16 2006-10-19, Dave wrote (on the TGL list): Since loft is no longer in development, I was wondering if anyone is aware of similar software for win32::gui ? After upgrading to 1.04 today it made me realize the controls we are missing out on. Does anyone know of another Win32::GUI wysiwyg fo

Re: [perl-win32-gui-users] TabStrip

2006-01-11 Thread Johan Lindstrom
At 12:30 2006-01-11, Steve Loughran wrote: Is it the responsibilty of the application to process Click Events on the tab headers, and hide/show the various buttons for each tab page, or am I missing something that makes life oh so much easier? Anyone have some demo code? The Win32::GUI::TabS

Re: [perl-win32-gui-users] Control Resize

2005-11-17 Thread Johan Lindstrom
At 16:54 2005-11-17, Glenn W Munroe wrote: The main window of my current project comprises a Grid control and a TreeView, in a Windows Explorer-like layout. I would like to provide the option of being able to resize the two controls by click-and-dragging the area between the two. Does anyone ha

Re: [perl-win32-gui-users] how to get filename of drag-n-dropped file?

2005-10-11 Thread Johan Lindstrom
At 12:27 2005-10-11, Pavel Prostine wrote: Hello perl-win32-gui-users is it possible to get name of drag-and-dropped file(s) which I pull from Windows Explorer and drop on Win32-Gui window? See: http://user.bahnhof.se/~johanl/perl/Win32GUI/DragDrop.pm I think (but I'm not sure) that the neede

Re: [perl-win32-gui-users] Passing events through to a module

2005-03-24 Thread Johan Lindstrom
At 01:35 2005-03-25, Gareth John wrote: Is there any way to automatically pass all Events (e.g. _Click events, etc) through to the GUI object from the main perl script, or do I need to forget about implementing the GUI as a class/object and do it all in the main perl script? That sounds a lot

Re: [win32gui] Re: [perl-win32-gui-users] BUG Followup[1092732 ]:Slider no longer supports setting position

2005-03-18 Thread Johan Lindstrom
At 09:44 2005-03-18, Jez White wrote: I beg to differ. The documentation (Trackbar.html) says: *|Pos([VALUE],[REDRAW=1])|* Set or Get maximum logical position for the slider in a trackbar Which I take to mean that the default for REDRAW is 1, and that you have to explicitly pass 0 not t

Re: [perl-win32-gui-users] wrappers revisited

2005-02-22 Thread Johan Lindstrom
At 22:42 2005-02-22, Ariel Serbin wrote: I started writing this, I used the hashref-of-hashrefs idea like DBI returns from fetchall_hashref() because it seemed like a good way of matching name/value pairs up with their respective ids. The problem with this Good work! I wrote a few comments on

Re: [perl-win32-gui-users] Screen Flash and Application Going Gray

2005-02-16 Thread Johan Lindstrom
At 13:43 2005-02-16, Bret Swedeen wrote: The first problem I have is that if the collection takes too long, parts of the application screen turn gray (basic default background color) and blank out any of the older data until the data collection is complete and the screen is repainted. The ques

Re: [perl-win32-gui-users] Wrappers for listviews/comboboxes etc...

2005-02-15 Thread Johan Lindstrom
At 23:59 2005-02-14, Ariel Serbin wrote: I decided that it was time to whip up some wrapper modules that do all of this for me. It seems to me like it would be a pretty handy thing to have around, I say: go for it! If you can generalize your problem to a module, other people will probably fin

Re: [perl-win32-gui-users] Using threads to keep the GUI alive

2005-02-02 Thread Johan Lindstrom
At 14:45 2005-02-01, Johan Lindstrom wrote: I think most of this could be fairly neatly encapsulated in a module so there is a small amount of synchronization code in the application. Yep, now I have a Task class (should probably be named Threads::Task or something) which encapsulates this

[perl-win32-gui-users] Using threads to keep the GUI alive

2005-02-01 Thread Johan Lindstrom
I experimented a bit with threads and how to use them to perform tasks in the background while still keeping the GUI responsive. This is a first draft. Hopefully it will be useful to someone. Demo with .gld file at: The program is u

[perl-win32-gui-users] Re: [The GUI Loft] RichEdit Control

2004-12-14 Thread Johan Lindstrom
At 19:47 2004-12-13, gmythx wrote: When I use a RichEdit control in a window I get a memory error. The error states that the memory at a certain address can not be read. If I replace the RichEdit control with a text field I do not get the error. I can even design a basic window with nothing but

[perl-win32-gui-users] Tutorial alpha

2004-11-03 Thread Johan Lindstrom
I've started writing a tutorial on Win32::GUI and The GUI Loft. http://www.darserman.com/Perl/TglTutorial/ Feedback wanted. There is a lot to improve, and I want to know what it is :) Feel free to download the Word file, edit it and send it back to me. /J -- --- -- -- --

Re: [perl-win32-gui-users] LoadResource with Gui Loft

2004-03-17 Thread Johan Lindstrom
At 01:56 2004-03-18, Ross Clunie wrote: Has anyone been able to use Resource files with exe files that use "Gui Loft" (.gld) windows. If so can they post an example as I am unable to get it to work. See my sample code. my $fileWindow = Win32::GUI::LoadResource("clearcal.gld"); my $objDesign = Wi

Re: [perl-win32-gui-users] notify icon bug 0.0.670?

2004-01-30 Thread Johan Lindstrom
At 16:25 2004-01-29, Peter Eisengrein wrote: I had a script whose NotifyIcon worked fine under version 0.0.580 of Win32::GUI that no longer works since I upgraded to 0.0.670. It gets the event and shows the appropriate menu when you click on the NI but does not get anything when you click on on

Re: [perl-win32-gui-users] Sparator lines

2004-01-30 Thread Johan Lindstrom
At 16:45 2004-01-30, [EMAIL PROTECTED] wrote: Is there a function to put a separator line in the design. or do I have to use the Graphics to draw the line for example 2 lines with 2 different colors to show it sinked If you use The GUI Loft, add a Label and set the "Frame" property to "etched".

Re: [perl-win32-gui-users] Win32::FileOp Erro with Win32::GUI

2004-01-25 Thread Johan Lindstrom
At 12:45 2004-01-25, Jez White wrote: What version of Perl are you using? Threading support is dodgy is most versions...If you are not on 5.8.2, it may be worth upgrading to that version. I'm not sure if 5.8.3 is available as a binary yet, but that version is meant to be better for threading.

OT (was: [perl-win32-gui-users] Accelerator bug?)

2004-01-23 Thread Johan Lindstrom
At 02:41 2004-01-23, Glenn Linderman wrote: Life is hard, and then you die.**Hopefully these will appear before then. :) Thanks for figuring out how, and doing it. Or, as we used to say on Antigua: Life's a beach, and then you dive. Or: The water is always greener on the other side of th

Re: [perl-win32-gui-users] Accelerator bug?

2004-01-22 Thread Johan Lindstrom
At 21:36 2004-01-22, Steve Pick wrote: These allow you to access and modify NEM event handlers. Very cool. You can't access and modify OEM event handlers. I should hope that the reasons are obvious: It would be impossible and pointless. ...unless you just modify the symbol table? Or what i

Re: [perl-win32-gui-users] Scroll bar example

2004-01-16 Thread Johan Lindstrom
At 13:36 2004-01-16, Jez White wrote: Now, the scrolling part works fine - but is using a child window in this way the correct approach? For example, interacting with the child window (clicking on a button, or scrolling) loses focus (which you would expect for a normal window) but is not the co

Re: [perl-win32-gui-users] (no subject)

2004-01-16 Thread Johan Lindstrom
At 09:44 2004-01-16, Jez White wrote: Personally, I would prefer SelectAll over Select(-1). Is it necessary? I Is it idiomatic? Traditionally in Perl, indexing with -1 means "one from the end of the array". And -1 is kind of magic (in a bad way), whereas SelectAll is very explicit, clear and

Re: [perl-win32-gui-users] Avoiding applications hanging?

2004-01-15 Thread Johan Lindstrom
At 18:16 2004-01-15, Nigel Cannings wrote: Is there any way to display the icon, but allow the main application to carry on doing its thing in the background (my application is listening for a socket connection) There are a couple of ways to do this: 1. Run your application in the spare time.

RE: [perl-win32-gui-users] Wierdness with HyperLink

2004-01-15 Thread Johan Lindstrom
At 19:57 2004-01-15, Frazier, Joe Jr wrote: Problem 2 is even more wierd. When I run the exact same code with "use Win32::GUI::Loft::Design;", the link does not show up (this is striped down version of a large app) at all! The problem seems to be that $linkClass does not get defined, so the li

Re: [perl-win32-gui-users] GUI loft crashes

2004-01-15 Thread Johan Lindstrom
Sirisha wrote: I am keen to get started using GUILoft but I'm running into some difficulty installing it on my XP machine. At 13:59 2004-01-15, Stephen Pick wrote: I just got the latest version of TGL, and it won't start. Tries to read memory at 0x000. This problem is something I commonly

Re: [perl-win32-gui-users] GUI loft crashes

2004-01-15 Thread Johan Lindstrom
At 13:59 2004-01-15, Stephen Pick wrote: I just got the latest version of TGL, and it won't start. Tries to read memory at 0x000. This problem is something I commonly associate with missing files given to imagelists, bitmaps, etc. Or maybe PAR is to blame. Which OS? I've had one report (wh

RE: [perl-win32-gui-users] New "Hook" Method

2004-01-07 Thread Johan Lindstrom
At 19:53 2004-01-07, Glenn W Munroe wrote: I finally got it to work based on your suggestions. The main problem is that the types of wParam and lParam vary depending on the message, whereas Win32::GUI::SendMessage assumes they are integers. By calling SendMessage via Win32::API, you can tailor th

RE: [perl-win32-gui-users] Win32::GUI help

2004-01-07 Thread Johan Lindstrom
At 15:17 2004-01-07, Farrington, Ryan wrote: Here ya go: All the use's were done to allow for perl2exe to compile it into an application. -snip- use Win32::GUI::Loft::Control::ForegroundBackground; use Win32::GUI::Loft::Control::Intangible; etc. Are you sure you need all the controls used "m

[perl-win32-gui-users] RFC: Yet another event model, anyone?

2004-01-04 Thread Johan Lindstrom
When I first looked at Win32::GUI for the first time many many years ago (4? ok, not so many) I found it kind of confusing how the objects and events worked. Coming from an OO background and with experience from a few other window toolkits (VB and Borland TurboVision among others) I would have

RE: [perl-win32-gui-users] Progress bar's [coloring]

2004-01-03 Thread Johan Lindstrom
At 15:08 2003-12-24, Frazier, Joe Jr wrote: Johan, is there any way these can also be added as properties to TGL? Depending on how long it will be before the next release will come out, you may want to do it yourself if the code, or wait for the whole thing in the next version of Win32::GUI an

Re: [perl-win32-gui-users] Right-click menu broken in 0.0.670?

2004-01-02 Thread Johan Lindstrom
At 18:06 2004-01-02, Glenn Linderman wrote: In the above description you mention "right click-menu" But none of your example code attempts to capture the "_RightClick" event. So I'm not quite sure what you are asking. The button was just the easiest way to get a minimal test case, since the

Re: [perl-win32-gui-users] Win32-GUI Release 0.0.670

2004-01-02 Thread Johan Lindstrom
At 22:51 2003-12-15, Johan Lindstrom wrote: Ok, what I did was I installed the PPM with 0.670 for 5.6.1 and then launched TGL from the source. And the DnD didn't work, so I assumed it wasn't added in this release. But then I found it in the changelog. I'm sorry, but this wa

[perl-win32-gui-users] Right-click menu broken in 0.0.670?

2004-01-02 Thread Johan Lindstrom
After upgrading from 0.0.558 -> 0.0.670, the right click-menu seems broken in TGL. The right-click menu displays alright, but the event handlers never receive any calls. The normal menus attached to a normal window works fine. Actually I just installed the 0.0.665 version and it seems it is alr

[perl-win32-gui-users] Left&Top vs Move

2004-01-01 Thread Johan Lindstrom
FYI: When setting a Window's Left and Top properties, the values are relative to any parent Window's interior. With Move that isn't so. Four hours later I find that truly annoying. We need a Wiki. I'm not sure, and I'm not particularly interested in investigating it at this time either, but

RE: [perl-win32-gui-users] Latest Build of GUI for Perl 5.8

2003-12-30 Thread Johan Lindstrom
At 21:24 2003-12-30, MJG wrote: Thanks. I at least know what the "use" is for :-) Eh, does it say use blib; ? Then I'm lost :) If it says use lib "blib"; then it probably works like I said. * searching * http://search.cpan.org/~nwclark/perl-5.8.2/lib/blib.pm Aahh! /J ---

Re: [perl-win32-gui-users] Latest Build of GUI for Perl 5.8

2003-12-30 Thread Johan Lindstrom
At 20:31 2003-12-30, MJG wrote: I was looking through some of the examples and noted a reference to blib (use blib;) I checked my perl distribution (5.8) and did not find this module. Is it supposed to be part of the standard distribution or installed with Win32::GUI? Until someone tell you o

[perl-win32-gui-users] Tooltip for GroupBoxes?

2003-12-28 Thread Johan Lindstrom
Does anyone know whether the -tip option is supposed to work for the GroupBox control? /J -- --- -- -- -- -- - - - Johan LindströmSourcerer @ Boss Casinos [EMAIL PROTECTED] Latest bookmark: "Assembly Language Windows Applications" http://grc.com

Re: [perl-win32-gui-users] need help with Graphic

2003-12-28 Thread Johan Lindstrom
At 17:37 2003-12-22, Jonathan Southwick wrote: I have a Graphic object that I am plotting data on. While the cursor is on this object I have a cross-hairs cursor. What I would like to do is extend lines from the cursor position to the edges of the graph (the perimeter) but not have them overw

Re: [perl-win32-gui-users] need help with Graphic

2003-12-22 Thread Johan Lindstrom
At 17:37 2003-12-22, Jonathan Southwick wrote: I have a Graphic object that I am plotting data on. While the cursor is on this object I have a How do you do this? Do you paint the entire area in the Graphic control's _Paint event? /J -- --- -- -- -- -- - -

Re: [perl-win32-gui-users] Win32-GUI Release 0.0.670

2003-12-15 Thread Johan Lindstrom
At 22:27 2003-12-15, Glenn Linderman wrote: If there are additional enhancements you need for TGL, maybe you could send a list of them to [EMAIL PROTECTED] ? Ok, what I did was I installed the PPM with 0.670 for 5.6.1 and then launched TGL from the source. And the DnD didn't work, so I assumed

Re: [perl-win32-gui-users] Win32-GUI Release 0.0.670

2003-12-14 Thread Johan Lindstrom
At 20:04 2003-12-14, Laurent ROCHER wrote: A new Win32::GUI release is availlable. This release come from 0.0.665 Fix CVS branch. Excellent work guys! (but still no DnD support it seems, so I can't actually use it for TGL without tweaking :) /J -- --- -- -- --

Re: [perl-win32-gui-users] TextField entry

2003-11-26 Thread Johan Lindstrom
At 01:58 2003-11-26, Ross Clunie wrote: I would like to be able to use the ENTER key as an event trigger for a textfeild. I have the _LostFocus event set and this works when the tab key is used but I would like ENTER key to emulate this function. Is it poosible. Fake it by adding a button that

Re: [perl-win32-gui-users] Solved Re: Help with Win32::Gui::Graphic, WM_Paint and InvalidateRect

2003-11-24 Thread Johan Lindstrom
At 04:14 2003-11-24, [EMAIL PROTECTED] wrote: I managed to solve my own problem with about 3 hours of tinkering and reading MSDN. Although I still haven't figured out how exactly WM_Paint messages are being generated. If I comment out the Update and the InvalidateRect method Paint messages are

[perl-win32-gui-users] off-topic: Quick Question

2003-10-17 Thread Johan Lindstrom
At 10:43 2003-10-17, Cruickshanks, Darin wrote: I have a script where a user will enter a date in this format 25/11/2003 Does anyone know of a way with Perl to get the 'day' from this? (Mon,Tue etc) I'll help you help yourself by pointing to the two modules you need. C:\> perldoc Date::Par

Re: [perl-win32-gui-users] ListView Item Color

2003-10-13 Thread Johan Lindstrom
At 15:51 2003-10-13, [EMAIL PROTECTED] wrote: My next question would be, does anyone know how I can set it so that if the line contains the word Failed in it, it will be highlighted? There doesnt seem to be any documentation on ListView::Item, which is what I thought I would use. Any insight wo

Re: [perl-win32-gui-users] File Monitoring Script

2003-10-09 Thread Johan Lindstrom
At 15:43 2003-10-09, [EMAIL PROTECTED] wrote: The problem I was having was how to get any new line back to the GUI. Once you do a Win32::GUI::Dialog, the perl script basically stops, and you can only work with the GUI. How would I set up a Sub to run in the background and update the GUI with an

Re: [perl-win32-gui-users] how can I write german's umlauts?

2003-10-06 Thread Johan Lindstrom
tepad, UltraEdit etc). If you TYPE the files from a DOS window, the chars will not look ok. /J -- --- -- -- -- -  -   -    -    - Johan Lindstrom  CasinoSeek [EMAIL PROTECTED]  www.casino.com www.casinoseek.com

Re: [perl-win32-gui-users] Novice question about accessing AddLabel properties

2003-07-16 Thread Johan Lindstrom
At 08:05 2003-07-16 -0400, Dennis Putnam wrote: I need to change the text property of an AddLabel object and cannot find any documentation on how to do this. For example: $window->AddLabel( - -name=>"mylabel", $window->mylabel->Text("My new text"); Works for most controls, like windows, butto

RE: [perl-win32-gui-users] Docs (List of missing desired widgets)

2003-06-17 Thread Johan Lindstrom
At 22:33 2003-06-17 +0300, Burak Gürsoy wrote: maybe a silly question, but... what is a "wiki"? Basically a web site that anyone (yes anyone) can edit and contribute to. It usually has a very simple markup language. These two things together makes it something very special. The original: ht

[perl-win32-gui-users] Docs (List of missing desired widgets)

2003-06-17 Thread Johan Lindstrom
Joe wrote: 3) Updated documentation (ie.. instead of TBD, explain that the feature has not been implimented or that the implimentation lacks x,y, or z functionallity) How about a Wiki for this? That way we can keep all tips and tidbits of code mentioned on these lists in an organized fashion.

Re: [perl-win32-gui-users] modal windows

2003-06-17 Thread Johan Lindstrom
At 13:24 2003-06-17 +0200, Aldo Calpini wrote: the following code implements a regular modal window, with all the features. the trick is in the "-parent" option, and proper use of Enable/Disable, Show/Hide and BringWindowToTop. If it works, absolutely wonderful! But see if it works with two op

[perl-win32-gui-users] Re: [Win32::GUI] List of missing desired widgets

2003-06-16 Thread Johan Lindstrom
At 13:44 2003-06-16 -0400, Fred P. wrote: I've commented your list giving the (probable) Win32::GUI equivalents to the widgets you mention. if you, or somebody else, has some comments, feel free to share :-) The GUI Loft should support those widget then! The version I downloaded had a very smal

[perl-win32-gui-users] Re: [Win32::GUI] List of missing desired widgets

2003-06-16 Thread Johan Lindstrom
At 18:10 2003-06-16 +0200, Aldo Calpini wrote: > TScrollBar: Scroll bar vertical or horizontal missing, but do we need one? Could be useful, there have been a few posts regarding this. Not sure how to handle it though, if it should be connected to other controls or standalone etc.

Re: [perl-win32-gui-users] AddLabel and Variables

2003-05-28 Thread Johan Lindstrom
At 12:06 2003-05-28 +0100, Daryll Elston wrote: $W1->AddLabel ( -text => $password, -left => 100, -top => 60, -font => $pwd_font, ); Black om white: -foreground => [0, 0, 0], -backgr

Re: [perl-win32-gui-users] Easter release?

2003-05-22 Thread Johan Lindstrom
At 15:38 2003-05-22 -0700, Glenn Linderman wrote: In particular, I need to be able to react to keystrokes regardless of the focus of the mouse within my main window accelerator keys, I guess it is called. The workaround in TGL is to poll the keyboard. You can do that regardless of which w

[perl-win32-gui-users] Referenced media objects to remain in scope automatically

2003-05-18 Thread Johan Lindstrom
This is a feature request for next version of Win32::GUI. Media objects (bitmaps, fonts, etc) used when creating a window or a control should automatically be kept in scope by the using object (the Window or Control). This is not the case today. So if you create a Win32::GUI::Font object in a

RE: [perl-win32-gui-users] Win32::GUI::HyperLink ownership

2003-05-15 Thread Johan Lindstrom
Stuart wrote: I got an email from the the Yahoo TGL group about this control that you have an update for it for theTGL. Was that true? Yes, the latest release supports Win32::GUI::Hyperlink. You need the module installed to use it in your own projects, the TGL binary is self contained. Ju

RE: [perl-win32-gui-users] Win32::GUI::HyperLink ownership

2003-05-14 Thread Johan Lindstrom
Stuart wrote: If you (or anyone that does take "ownership"), you may want to fix a bug it has. Also the AddHyperLink method it adds to Win32::GUI::Window class doesn't match the upper/lower-case spelling of the module. That should be fixed as well. /J -- --- -- -- -- -

Re: [perl-win32-gui-users] Combobox help

2003-05-11 Thread Johan Lindstrom
At 01:13 2003-05-11 -0500, Joel Ricketts wrote: Basically, I have a Combobox that I'm trying to display to the user. I've populated it with, for the test, about 12 items. It displays only the original items; the others are accessible through the keyboard, but not up-down scrolling list is avail

[perl-win32-gui-users] Win32::GUI::HyperLink ownership

2003-05-10 Thread Johan Lindstrom
Does anyone know who wrote Win32::GUI::HyperLink? The only mention I found of it on the Net is at: http://www.jeb.ca/perl/win32_module.htm Is it perhaps Erick Bourgeois himself that is the author? I'm thinking of supporting Win32::GUI::HyperLink in The GUI Loft, but I'm not sure how to handle

RE: [perl-win32-gui-users] Push Button with the picture (bitbtn)

2003-04-12 Thread Johan Lindstrom
At 07:25 2003-04-12 -0400, Stuart Arnold wrote: I'll assume the "Picture" is a bitmap or icon? This works for a bitmap, and icon is just as easy. Here's a sniplet. BEGIN{ our $bitmap; } Putting the declaration in a BEGIN block seems redundant. Why do you do that? But be aware of a W

Re: [perl-win32-gui-users] CALL FOR BUGS (was: The status of win32::gui)

2003-04-07 Thread Johan Lindstrom
At 18:36 2003-04-07 +0200, Aldo Calpini wrote: so, if you found any bug, please submit them *now*! This all goes for 0.0.558, some things may be fixed. When using Win32::GUI::DoEvents instead of Win32::GUI::Dialog, pressing a key will result in two characters in an input field (and possibly

Re: [perl-win32-gui-users] Back to my original question......this is created on load of the extension.

2003-04-06 Thread Johan Lindstrom
At 23:15 2003-04-05 -0600, MJG wrote: Constant subroutine main::MB_ICONEXCLAMATION redefined at C:/Perl/lib/Exporter.p m line 59. at rf_wrap2.pl line 9 Prototype mismatch: sub main::MB_ICONEXCLAMATION () vs none at C:/Perl/lib/Expor ter.pm line 59. at rf_wrap2.pl line 9 etc... My guess is

Re: [perl-win32-gui-users] Window 'Show' State

2003-03-29 Thread Johan Lindstrom
At 23:31 2003-03-28 +, Rob Dixon wrote: Can someone suggest how I can retrieve a window's current 'show' state as set by $window->Show()? $win->IsVisible() Returns TRUE if the window is visible, FALSE otherwise. /J -- --- -- -- -- -- - - - Johan

Re: [perl-win32-gui-users] odd hash behavior

2002-11-22 Thread Johan Lindstrom
At 09:38 2002-11-22 -0500, Peter Eisengrein wrote: The script below outputs the correct $number (hash key) but for some reason it also outputs the value. What gives? -snip- foreach my $number (%countother) foreach my $number (keys %countother) /J -- --- -- -- -- --

Re: [perl-win32-gui-users] Error using Win32::GUI module

2002-11-22 Thread Johan Lindstrom
At 08:33 2002-11-22 +0100, Jerome Martin wrote: I'have installed Win32-GUI 0.0.665 under mi Win2000 with ActivePerl 5.6.1. And got the following messages. What is the problem ? c:\>perl use Win32; use Win32::GUI; Prototype mismatch: sub main::MB_ICONEXCLAMATION () vs none at C:/ActivePerl/lib

Re: [perl-win32-gui-users] need subroutine to run when Window gets focus

2002-11-13 Thread Johan Lindstrom
At 16:31 2002-11-13 -0500, Jonathan Southwick wrote: How difficult is it to paint on a Graphics control? The graphics stuff is new to me. It's the same thing as paiting on a DC (because that's what you actually do :). The Graphics control doesn't seem too well documented (and I have forgot

Re: [perl-win32-gui-users] need subroutine to run when Window gets focus

2002-11-13 Thread Johan Lindstrom
At 11:45 2002-11-13 -0500, Jonathan Southwick wrote: Is there any way to get a routine to run when a window is brought to the top or receives focus? That seems to be the only way I can get a DC object to refresh after it is covered by another window. The event Activate is triggered when the w

Re: [perl-win32-gui-users] "Number" and "Case" TEXTFIELDS

2002-11-06 Thread Johan Lindstrom
At 21:06 2002-11-06 +0100, Johan Lindstrom wrote: That's my bug fix, i.e. summing the -addstyle values into one value. New version of TGL in a few minutes, I'll just document a new feature first. ...for large values of minutes. But here we go: r2002-11-06 -- v0.16 Release th

Re: [perl-win32-gui-users] "Number" and "Case" TEXTFIELDS

2002-11-06 Thread Johan Lindstrom
At 13:55 2002-11-06 -0600, Scott Carr wrote: What if you use: -addstyle => 0x3000 That's my bug fix, i.e. summing the -addstyle values into one value. New version of TGL in a few minutes, I'll just document a new feature first. /J -- --- -- -- -- -- - -

Re: [perl-win32-gui-users] "Number" and "Case" TEXTFIELDS

2002-11-06 Thread Johan Lindstrom
At 10:49 2002-11-06 -0500, Magnone, Angelo wrote: Has anyone had any luck getting the "Number" and "Case" fields to work using The GUI Loft? Is there any way to "force" a TEXTFIELD to upper case? Is there any way to "force" a TEXTFIELD to numbers only? Here's a workaround for you (until I fix

RE: [perl-win32-gui-users] Gui loft and resizing the application

2002-10-30 Thread Johan Lindstrom
At 12:59 2002-10-30 +, Martin Bower wrote: >That might depend on what kind of window you created. A Dialog box is >slightly smaller than a Window I think (for the same size in the TGL Design >window). >If you do a Test window from within TGL, does it show the same size as in >your applicatio

Re: [perl-win32-gui-users] Gui loft and resizing the application

2002-10-30 Thread Johan Lindstrom
At 10:03 2002-10-30 +, Martin Bower wrote: If I design an app with guiloft, and then run it, quite often I have to resize the app because the window has shrunk somewhat. Has anyone else come across this ? That might depend on what kind of window you created. A Dialog box is slightly small

RE: [perl-win32-gui-users] HOWTO: Modal windows

2002-10-22 Thread Johan Lindstrom
At 10:08 2002-10-22 +1000, Rogers, John wrote: "note that this function must be called without ANY parameter or instantiation (eg. don't call it as method of a created object): Win32::GUI::Dialog(); # correct $Window->Dialog();# !!!WRONG!!! " So, it's not an un-documented featu

Re: [perl-win32-gui-users] Double events with DoEvents

2002-10-21 Thread Johan Lindstrom
At 22:21 2002-10-21 +0200, Johan Lindstrom wrote: Using 0.0.558, I call Win32::GUI::DoEvents() manually from a main loop . I have a popup-menu on a NotifyIcon, nothing else. This is the weird thing. When I select something in the menu, the event handler gets called twice. Ok. The same thing

Re: [perl-win32-gui-users] NotifyIcon doesn't go away on program exit

2002-10-21 Thread Johan Lindstrom
At 19:11 2002-10-20 -0400, Morbus Iff wrote: - the window stays minimized - how do I spring it open to a Maximized state? I use both ->Enable and ->Show, but still it's minimized. If I understand your problem correctly: Show([COMMAND]) Shows a window (or change its showing stat

[perl-win32-gui-users] HOWTO: Modal windows

2002-10-21 Thread Johan Lindstrom
Aaaarggg!!! I started poking around in GUI.xs, looking for a solution to my double event problem, and found the mother of all undocumented features: True modal dialog boxes in Win32::GUI. Well very close anyway... I _always_ thought this wasn't possible. Heck, I even wrote Win32::GUI::Modalize

Re: [perl-win32-gui-users] Double events with DoEvents

2002-10-21 Thread Johan Lindstrom
At 22:23 2002-10-17 +0200, Johan Lindstrom wrote: Using 0.0.558, I call Win32::GUI::DoEvents() manually from a main loop . I have a popup-menu on a NotifyIcon, nothing else. This is the weird thing. When I select something in the menu, the event handler gets called twice. Ok. The same thing

[perl-win32-gui-users] NotifyIcon doesn't go away on program exit

2002-10-20 Thread Johan Lindstrom
I forget. Did we solve the problem where the tray icon stayed there a little while after program exit? My best solution now is to replace it with an invisible icon, like this: Win32::GUI::NotifyIcon::Modify( $win, -id => 1, -icon => undef,

Re: [perl-win32-gui-users] (no subject)

2002-10-17 Thread Johan Lindstrom
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

Re: [perl-win32-gui-users] toolbar gui loft

2002-10-17 Thread Johan Lindstrom
At 15:24 2002-10-16 -0400, Magnone, Angelo wrote: Has anyone had any success with creating a toolbar using The GUI LOFT and then act upon the different buttons clicked? How can I tell which button has been clicked? I have never used it myself, I basically positon ordinary buttons so they loo

Re: [perl-win32-gui-users] Double events with DoEvents

2002-10-17 Thread Johan Lindstrom
At 00:25 2002-10-18 +0200, Johan Lindstrom wrote: sub ::mnu_tray_config_open_Click { return(1) if(!$workaround_handler_semaphore++); Hrmm... Thinko. Remove the ! for a more solid solution :/ /J -- --- -- -- -- -- - - - Johan Lindström

Re: [perl-win32-gui-users] Double events with DoEvents

2002-10-17 Thread Johan Lindstrom
At 16:51 2002-10-17 -0400, Morbus Iff wrote: >Using 0.0.558, I call Win32::GUI::DoEvents() manually from a main loop . I I've noticed it as well. I just check to see if I've $already_called: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/amphetadesk/AmphetaDesk/ lib/AmphetaDesk/OS/Windows.pm?

[perl-win32-gui-users] Double events with DoEvents

2002-10-17 Thread Johan Lindstrom
Weird effect. Using 0.0.558, I call Win32::GUI::DoEvents() manually from a main loop . I have a popup-menu on a NotifyIcon, nothing else. This is the weird thing. When I select something in the menu, the event handler gets called twice. The main loop is basically: IO::Select->select($readab

Re: [perl-win32-gui-users] LWP + Fork + Win32::GUI

2002-10-17 Thread Johan Lindstrom
At 10:37 2002-10-17 -0400, Michael Alaly wrote: off-list I would apprecaite it. I am new to Win32::GUI and forking and am trying to do something very similar to what it looked like you were trying to do. I am attempting to take a list of links from a ListView and send them each to a child for dow

[perl-win32-gui-users] Re: Win32::GUI or FindBin under Windows 95?

2002-10-16 Thread Johan Lindstrom
At 07:51 2002-10-16 -0400, Morbus Iff wrote: Or, on the other hand, anyone know of issues with FindBin? My previous working version was using simply "use lib ./lib", but the newest version (again, which works everywhere on Win98 and up) uses FindBin exclusively. FindBin is reputedly severly bro

Re: [perl-win32-gui-users] GetDC

2002-10-10 Thread Johan Lindstrom
che the image if it takes a long time to draw it from scratch each time) Johan Lindstrom posted some information but it went (making motion of flat hand over head from front to back). :) I hope the description above was a little more down to Earth. If not, please let m

RE: [perl-win32-gui-users] Animated windows [working demo]

2002-10-09 Thread Johan Lindstrom
At 19:00 2002-10-09 -0400, Frazier, Joe Jr wrote: What happens if you try to call a API that does not exist? Does Win32::API trap the error or do you get an exception? In any event, you could have a config page/menu/window From Luiginos demo: my $AnimateWindow = new Win32::API("user32", "An

RE: [perl-win32-gui-users] Animated windows [working demo]

2002-10-09 Thread Johan Lindstrom
At 17:40 2002-10-09 -0400, Lihn, Steve wrote: It does not work on Win NT !? The original post said Windows XP. That figures. If you keep it as a "cool ting", and not use it to carry an actual feature (that breaks if this doesn't work), it could be a good thing. /J -- ---

Re: [perl-win32-gui-users] Graphics

2002-10-04 Thread Johan Lindstrom
At 15:16 2002-10-04 -0400, Jonathan Southwick wrote: I have a window that I draw graphs on but every time a window goes above this window, or if I minimize it then restore it, the graphics are gone. Is it possible to keep the graphics on it? You need to redraw your graphs every time Windows t

Re: [perl-win32-gui-users] Q: Resize problem maximising from windows toolbar

2002-09-04 Thread Johan Lindstrom
At 15:49 2002-09-03 +0100, Iain Reid wrote: If I minimise the window then maximize it from the toolbar I get a fullscreen window but controls positioned as they were before I minimised. It seems as if the maximised window dimensions don't get passed to the resizer. Within the maximize event the s

Re: [perl-win32-gui-users] right click menu items

2002-08-28 Thread Johan Lindstrom
At 11:48 2002-08-28 +1000, moo cow wrote: > he main problem is how do I detect a right click on a menu (Such as the Exit option > on the File menu found in most windows programs)? Yes, difficult. Not sure it can be done without hacking the XS to allow the event to be recognized. There's a "gen

Re: [perl-win32-gui-users] Problem looking for a solution

2002-08-28 Thread Johan Lindstrom
Syl wrote: > When you return -1 in any event sub, not just in _Terminate, your window > gets destroyed. Since you cannot exit the Dialog() loop other than with -1, > there are but two ways to do it But that is my problem. I return(-1) to Setup() but the window is not terminated by _Terminate or O

Re: [perl-win32-gui-users] next app ?

2002-08-26 Thread Johan Lindstrom
At 08:10 2000-08-27 +0300, [EMAIL PROTECTED] wrote: 1. Show up on full screen How to size it to the Desktop (don't know about the entire screen): Win32::GUI::GetDesktopWindow() Returns the handle of the desktop window. GetClientRect() Returns a four elements array defining the windows client

Re: [perl-win32-gui-users] Minimize to Systray

2002-08-26 Thread Johan Lindstrom
At 16:38 2002-08-26 -0500, Gossett, Malachy wrote: Well, it still doesn't look like I'm getting it, but I am trying to get this to minimize to the sys tray. Anyone with experience in this see where I am missing the boat? You never create a NotifyIcon, only an Icon. The following is from a sm

Re: [perl-win32-gui-users] first app ?

2002-08-26 Thread Johan Lindstrom
At 08:03 2000-08-27 +0300, [EMAIL PROTECTED] wrote: I've just installed win32::gui but how i will do my first app if I try this : use Win32::GUI; my $w = new Win32::GUI(-name => 'XX'); $w->Show(); But the window just got created and destroyed imedietly !?! Why this happen ? Unlike your vanill

Re: [perl-win32-gui-users] Cant GET IT TO INSTALL

2002-08-13 Thread Johan Lindstrom
At 18:18 2002-08-12 -0700, scott sager wrote: I tried the demo (password) on the website and get the same error for all the demos (something like a Prototype mismatch) (See Below) I tried to help you yesterday on the TGL mailing list. Did you not read that, or did that not work?

Re: [perl-win32-gui-users] Graphic problems

2002-07-24 Thread Johan Lindstrom
At 05:25 2002-07-24 -0800, Sean Healy wrote: I don't know if anyone's ever heard of the Games::Worms module, but I'm attempting to make a Win32::GUI viewer for it, and I'm having a few problems. Painting on the window control itself will only last until the window is repainted by Windows, so t

Re: [perl-win32-gui-users] no events when tree view is tabstrip child (665)

2002-06-07 Thread Johan Lindstrom
At 10:31 2002-06-07 +0200, Straub, Peter (Peter) wrote: I try to migrate an existing script from win32-gui 558 to 665. One show-stopper I came upon was that no NodeClick events are generated by a tree view control if it is child of a tab strip control. What do you gain by it being a child of a

Re: [perl-win32-gui-users] How to check Dr. Watson error on desktop?

2002-06-05 Thread Johan Lindstrom
At 13:14 2002-06-04 -0700, Khan, Moin wrote: I am trying to look for the title of window(eg. Dr. Watson Error on Desktop) so i can log that error? any idea? Not sure what you're after here... If you want the title (the text in the Titlebar of the window) of the topmost window, here's how to

  1   2   3   >