[perl-win32-gui-users] Tab Strip best practices?

2001-03-23 Thread Johan Lindstrom
Hi! I'm new to Win32::GUI and to the list, so I guess you'll see a few questions from me until I grok everything :) To begin with, is there a common/default/best way of handling Tab Strips? In one of the sample files the application simply pushed the controls into an array for later Show()in

Re: [perl-win32-gui-users] Tab Strip best practices?

2001-03-26 Thread Johan Lindstrom
Laurent wrote: I have made some packages for easy handle tabstrip. I use a container object for each page and hide/show it. Arghh! I didn't read mail during the weekend and ended up writing my own little class: Win32::GUI:TabStripGroup Oh, well... :) You can download it at : http://perso

Re: [perl-win32-gui-users] Nonblocking sockets?

2001-03-26 Thread Johan Lindstrom
[I'm looking through the archives and found quite a few interesting posts] Ludvig af Klinteberg didn't get any response on this question: >This may not be a straight Win32::GUI question, but I think >it might concern those who write networking Perl scripts >with a UI for win32. The question is si

[perl-win32-gui-users] Exiting Dialog()

2001-03-26 Thread Johan Lindstrom
I bumped into a little problem yesterday and before figuring out the, probably, correct way of exiting the Win32::GUI::Dialog() event loop by returning -1 from an event handler routine, I created this little hack to do it for me. Now my question is if my way is a bad, evil thing or perhaps a c

Re: [perl-win32-gui-users] Is it possible?

2001-04-03 Thread Johan Lindstrom
Jonathan wrote: Along those lines how about being able to make a program go to a web page that is a perl script and feeding the results of the script back to the local program? I guess libwww is pretty much what you want: use LWP::Simple; $doc = get 'http://www.sn.no/libwww-perl/'; It is

Re: [perl-win32-gui-users] How to refresh a window

2001-04-04 Thread Johan Lindstrom
Ladislav wrote: time returns back to my program.The window created by my program is not refreshed immediately to the state before switching but I must wait until my program writes to that window. Not sure because I haven't done it, but this is what I would try: Find or create an event that you

[perl-win32-gui-users] Win32::GUI::Resizer

2001-04-05 Thread Johan Lindstrom
Dealing with moving and resizing stuff when a window is resized is really annoying, not to mention boring. So I created a class to make that easier. That was a lot more fun for some reason :) Anyway, the result is Win32::GUI::Resizer. http://www.bahnhof.se/~johanl/perl/Win32GUI/ Please try it

[perl-win32-gui-users] Perl Oasis

2001-04-17 Thread Johan Lindstrom
Hi! Perl Oasis is a new Win32::GUI application I created. It's in beta currently, but feel free to download and spread the word. I'm very interested in comments and bug reports. The Perl license applies. ** Introduction Perl Oasis is a source/POD/class browser tightly integrated with (curr

Re: [perl-win32-gui-users] GUI button problems

2001-04-18 Thread Johan Lindstrom
Peter wrote: depresses). I am guessing the problem is because it is nested on a Tab, but I'm not sure. And if that is it, whatis the proper way to call it? In the script below, if you click on this button you do NOT get any output to the console. I had the same problem. My workaround was to sim

RE: [perl-win32-gui-users] Perl Oasis

2001-04-18 Thread Johan Lindstrom
Nhat-Hung LAM wrote: The binary also did not work for me (Windows NT 4 - SP6). The binary was created as a "freestanding" PerlApp, but without the perl56.dll file included. I guess that is the problem. The new binary is now totally freestanding, i.e. it includes the perl56.dll file. I hope

Re: [perl-win32-gui-users] Perl Oasis

2001-04-19 Thread Johan Lindstrom
Nhat-Hung LAM wrote: Do you plan to make it support for Notepad editor as well? As UltraEdit is a shareware and not all people have it! Whichever editors people use the most. UltraEdit is easy to do since it's a mature editor with useful features. Notepad would be a little more difficult, but

[perl-win32-gui-users] TreeView_DblClick (was: Perl Oasis)

2001-04-19 Thread Johan Lindstrom
I wrote: If I don't actually double click on the node, the problem disappears. If I call the DblCLick() sub from e.g. a NodeClick() event or a button Click() it works fine. And so it went away. The workaround--I'm big on workarounds, having a past as a web designer--is to not do important st

Re: [perl-win32-gui-users] Perl Oasis

2001-04-19 Thread Johan Lindstrom
Eoin wrote: Unquoted string "re" may clash with future reserved word at File/Basename.pm lin e 131. This one has to do with PerlApp. Just ignore it. couldn't find diagnostic data in C:\Perl\lib/pods/perldiag.pod C:\Perl\bin . C:\ DOCUME~1\EOIN_B~1.EUR\LOCALS~1\Temp\Oasis\{BBD1CC5C-1D7C-4ED5-

Re: [perl-win32-gui-users] Gui-program problem

2001-04-24 Thread Johan Lindstrom
Jeremy wrote: I can't get my script to work with the gui windows, when the gui sub routine gets called and the windows gets created, the program freezes and script does not continue After a quick look, this is the problem: In the sub CreateProgressWin you create the window and then call Win32

[perl-win32-gui-users] Modal dialog box - how?

2001-04-24 Thread Johan Lindstrom
Is there a way to create a "real" modal dialog box using Win32::GUI? In the sample apps, the solution that comes closest is to Disable the main window, Show the dialog window and then Enable the main window again when the dialog is closed by the user. There are two drawbacks with this method:

Re: [perl-win32-gui-users] FTP-Status download Gui-program problem continues

2001-04-24 Thread Johan Lindstrom
Jeremy wrote: I still cannot get my script to work with the gui windows, when the gui sub routine gets called and the windows gets created, the program freezes and script does not continue As suggested by some I have gotten rid of the Dialog() call, There is one more place where it should be r

[perl-win32-gui-users] Oasis release

2001-04-25 Thread Johan Lindstrom
A new release of Oasis is available at http://www.bahnhof.se/~johanl/perl/Oasis/ New features include: - Bug fixes - Used modules are color coded (local vs. in the @INC) - Inheritance tree (@ISA modules) - Projects - browse files in your Project directories - Recent files - @INC - browse files i

Re: [perl-win32-gui-users] Modal dialog box - how?

2001-04-25 Thread Johan Lindstrom
I wrote: Is there a way to create a "real" modal dialog box using Win32::GUI? I guess not. Maybe in a future release of Win32::GUI? I looked around in the XS code and the SDK documentation, but couldn't get anything to work. So, I wrote a class to handle this: Win32::GUI::Modalizer. Name sugg

[perl-win32-gui-users] ChooseFont - can't get it to work

2001-04-30 Thread Johan Lindstrom
Does the Win32::GUI::ChooseFont() work? The -name is pretty straightforward, but I don't understand what I should do with the -size I get back. If I use it to set a font size in a RichEdit, the type is smaller than what I selected. The -size passed to the sub doesn't seem to affect the presel

[perl-win32-gui-users] Icon in Button - can't get it to work

2001-04-30 Thread Johan Lindstrom
Anyone have a working code example of a simple Button with an Icon image in it? I managed to use a Bitmap image in the Button, but the "background" grey color in the image got miscolored (i.e. not quite the button grey, but a touch darker). So I thought I'd try with an Icon instead, and use a

Re: [perl-win32-gui-users] Modal dialog box - how?

2001-04-30 Thread Johan Lindstrom
Harald wrote: | If anyone knows how to get a Window to not be | displayed in the taskbar, please let me know. There is in fact a -parent => option coded in the XS function Yes, Harald "Win32::GUI trivia" Piske did it again :) Createing a window with a -parent => $winParent will display the wi

Re: [perl-win32-gui-users] AutoScrolling a RichEdit?

2001-04-30 Thread Johan Lindstrom
Morbus Iff wrote: # add the string to our box. $logbox->Text($logbox->Text . "\r\n $message"); Instead of replacing the entire text with the entire text + something new, add the new text to the bottom of the existing text: #Select the last thing in the RichEdit $rePOD->Select(99,999

Re: [perl-win32-gui-users] AutoScrolling a RichEdit?

2001-04-30 Thread Johan Lindstrom
Morbus wrote: Neat idea, but now, instead of seeing the last $message being passed as the first line of the RichEdit (scrolled to that first line), I see a blank screen - the autoscroll goes past my last line... Course, changing the \n around fixes that (with the side effect of a blank first li

Re: [perl-win32-gui-users] Show In Taskbar

2001-05-04 Thread Johan Lindstrom
Dave wrote: I'm trying to get a window to not display in the taskbar, and I'm unable to do so without negative side effects. (i.e. the window not properly redrawing, or the window becoming a toolbar-esque window.) Anyone know how I could get around this? I've been using, of course, SetWindowLon

[perl-win32-gui-users] Drag-n-drop (was: Show In Taskbar)

2001-05-04 Thread Johan Lindstrom
Dave wrote: $window->SetWindowLong(-20, 128); #-20 = GWL_EXSTYLE. 128 = WS_EX_sometoolbarconstantorother. Ahh... This is the 128 message: #define WS_EX_TOOLWINDOW0x0080L (This is documented in the Win32 Programmer's Reference help file and in the winuser.h file from Visual C++)

Re: [perl-win32-gui-users] Drag-n-drop (was: Show In Taskbar)

2001-05-06 Thread Johan Lindstrom
I wrote: Anyone have any idea of things I have to think about if I want to try to implement a drag-n-drop feature? I have already found the correct set of functions and messages in the Win32 Reference. Ok, so I managed to tell a window to accept files dragged from the Explorer with the DragAc

Re: [perl-win32-gui-users] Model-View-Controller (MVC) with Win32::GUI?

2001-05-06 Thread Johan Lindstrom
Peter wrote: has anyone an approach how to use Win32::GUI with the Model-View-Controller (MVC) principle? Or if that would be impossible: What would be the best way to separate business code and gui? In a previous Win32::GUI app I provided both a CLI and a GUI interface. I used one class for t

Re: [perl-win32-gui-users] Win32::Print ?

2001-05-07 Thread Johan Lindstrom
Danny wrote: I see.. well the system that is being used in the OCX is more flexible.. it offers the possibility to write or preformat your Win32::OLE can do ActiveX/OLE stuff. But according to the POD it doesn't yet support OCX-controls, so you may be out of luck. I think that's the

Re: [perl-win32-gui-users] Drag-n-drop (was: Show In Taskbar)

2001-05-08 Thread Johan Lindstrom
Dave wrote: In all likelihood, your best bet is to subclass the window you want it to accept the files, then filter for the appropriate message. I can dig up some MSKB articles on it if you'd like. Um... are we talking subclassing using the Win32::GUI::Class here? After having looked through

Re: [perl-win32-gui-users] Drag-n-drop (was: Show In Taskbar)

2001-05-10 Thread Johan Lindstrom
Wohoo! I got it to work! :) It took some XS hacking though. Nothing fancy, mostly copy-paste and common sense. I added the WM_DROPFILES message to the WindowMsgLoop so that it throws an event DropFiles() with the drop handle in question. And once in Perl it was piece a cake to call the shel

[perl-win32-gui-users] DragDrop.pm and new Oasis release

2001-05-10 Thread Johan Lindstrom
There is now a Win32::GUI::DragDrop module available at http://www.bahnhof.se/~johanl/perl/Win32GUI/ There is a complete example/demo program in the POD if you would like to take the trouble to rebuild your Win32::GUI module. There is also a new version of Perl Oasis which, of course, contai

Re: [perl-win32-gui-users] keeping a window open

2001-05-11 Thread Johan Lindstrom
Chris wrote: Ok, it may be that I have hacking at my script so long I am cross-eyed, but it is too much fun to stop now. I figured the best way to learn the Win32::GUI was to write a cool little toolbar with a couple of my most used apps on it. It floats and brings up my apps like it should, bu

Re: [perl-win32-gui-users] Re: DragDrop.pm and new Oasis release

2001-05-11 Thread Johan Lindstrom
Hirosi Taguti wrote: I've just tried. The demo program in the POD printed, "Initial state : accepts drops: 0", and memory vioration occured, says, pgm 0x01d61c6a accessed 0x, cann't become as read... That's weird. I just call the DragAcceptFiles() function to tell the window that it

Re: [perl-win32-gui-users] Win32::GUI::Icon and Win32::Console - an icon for a console

2001-05-15 Thread Johan Lindstrom
Jeremy Aiyadurai wrote: how do i get an icon to work for a console window...eg. i want to get rid of the console-window-dos-prompt icon when i run my console program. Untested, but try something like this: my $icoDOS = ... create your icon object here ...; my $hwindDOS = Win32::GUI::GetPerlWin

RE: [perl-win32-gui-users] Tabstop

2001-05-16 Thread Johan Lindstrom
Peter wrote: I'm pretty sure it only works when you put them on a DialogBox not a Window. Or at least that's the only way I've been able to make it work. You can also impose a DialogBox-ish behaviour on a Window by doing $winYourwindow->{-dialogui} = 1; /J -- Johan Lindström, Sourcerer, B

[perl-win32-gui-users] Textfield on top of a Listview

2001-05-16 Thread Johan Lindstrom
I'm trying to do this: A Listview with two columns (Property, Value). When the user clicks on an Item in the list, the Value column becomes editable. I looked at the EditLabel thing, but that edited the first column only, and that didn't work properly anyway with the edit-box losing focus rig

Re: [perl-win32-gui-users] newbie's question

2001-05-23 Thread Johan Lindstrom
Jerry wrote: Which one is easier/simpler to use: Tk or Win32::GUI? The latter sounds pretty intriguing to me. Can I find any sample Win32::GUI apps on the Web? I started a Manila site to document a few things. It is now dormant :) However, this page may help you: http://win32gui.manilasite

Re: [perl-win32-gui-users] Text Properties

2001-06-06 Thread Johan Lindstrom
Daryll wrote: Does anyone know if there is a property to have some text Flash on a DialogBox? I'd go with a timer and Show() and Hide() a label. The information in this e-mail and any attachments is confidential and may be legally privileged. It is intended solely for the addressee or addres

Re: [perl-win32-gui-users] file-menu question

2001-06-07 Thread Johan Lindstrom
Chris wrote: Is there anything special I should know about making a Menu visible? Study this example code: my $mnuMain = Win32::GUI::MakeMenu( "&File" => "mnuFile", " > &New" => "mnuFileNew", " > &Open..." => "mnuFileO

Re: [perl-win32-gui-users] List of attributes

2001-06-12 Thread Johan Lindstrom
Kevin wrote: I have noticed that some people reference some page at Micro$oft that lists some possible window attributes. I don't remember from where I downloaded the Win32 API help file I use, but try the "Win32 API Reference" from this page: http://www.winprog.org/resources.html There m

RE: [perl-win32-gui-users] RE: How to change tip for Notify Icon

2001-06-13 Thread Johan Lindstrom
Joe wrote: No go.. Got the "Cant Locate object method Change in package Win32::GUI::NotifyIcon . Any more thoughts? When Win32::GUI doesn't do what you want, you do what you want with Win32::API. Look at "Shell_NotifyIcon" and "NOTIFYICONDATA" in the Win32 API Reference. I posted a few

Re: [perl-win32-gui-users] Selecting multiple lines in ListBox

2001-06-15 Thread Johan Lindstrom
Henning wrote: HOWEVER, if I remove the -multisel statement from the ListBox defintion, items *do* get selected (only one at a time, though, obviously)! Is this a bug? And is there a known workaround for it? Surely I cannot be the first person to try selecting multiple items from within program c

Re: [perl-win32-gui-users] Make textfield selection visible

2001-06-16 Thread Johan Lindstrom
Sean wrote: How do you force a textfield selection to be visible within the textfield? I've been reading through the posts on autoscrolling a RichEdit, but that makes it scroll down a given number of lines. I want the textfield to scroll only if the selection is not visible, and then only enoug

[perl-win32-gui-users] TabStrip with images - does it work?

2001-06-17 Thread Johan Lindstrom
A weird thing: According to the docs, you can attach an -imagelist to a TabStrip, and then specify the image index when you add a Tab. But the sample app for TabStrip attaches an ImageList and specifies _Bitmap_ objects. According to the XS code (just a brief look), it should work like the

Re: [perl-win32-gui-users] TabStrip with images - does it work?

2001-06-18 Thread Johan Lindstrom
Aldo wrote: not quite. the sample (tabstrip.pl in the samples directory from the source distribution) actually uses indexes from the ImageList. Ah, mea culpa! Sloppy research on my part, sorry about the troll post :) To my excuse I'd like to mention that during the creation of The GUI Loft I

Re: [perl-win32-gui-users] Selecting multiple lines in ListBox

2001-06-19 Thread Johan Lindstrom
Henning wrote: Could you please provide clues on how to use this code snippet? Does it need additional modules (like Win32::API) ? How do I call the sub, what parameters? A condensed version, using Win32::GUI I guess, would look like this: $lbYourListBox->SendMessage(0x0185, $isSelected, $ind

Re: [perl-win32-gui-users] Scrolling contents in a TextField / RichEdit

2001-06-19 Thread Johan Lindstrom
Henning wrote: In my program I am feeding live data into several multiline TextField and RichEdit controls. Is there a way to scroll the contents down so that the newest data always is shown? Yes. It's in the archives. The search doesn't work that well, but browse for anything "Richedit" in g

[perl-win32-gui-users] ANNOUNCE: The GUI Loft (beta 010620)

2001-06-20 Thread Johan Lindstrom
Hi! I just released the first beta of The GUI Loft. From the User manual: "The GUI Loft is a powerful and easy-to-use WYSIWYG editor for designing Win32::GUI windows, dialog boxes and toolwindows. It is also a set of classes used to create the window for you at runtime." I think and hope you'll

Re: [perl-win32-gui-users] ANNOUNCE: The GUI Loft (beta 010620)

2001-06-20 Thread Johan Lindstrom
Henning wrote: You could replace the 0/1 values with "no"/"yes" or "false"/"true" in the properties editor. Even if it doesn't correspond the resulting code exactly, it makes more sense in a visual environment IMO. This is a maybe. I'm not sure how far from Perl code I like the tool to go. Lik

Re: [perl-win32-gui-users] ANNOUNCE: The GUI Loft (beta 010620)

2001-06-21 Thread Johan Lindstrom
I just created a discussion forum for The GUI Loft at Yahoo. http://groups.yahoo.com/group/theguiloft I know, "yet another list to subscribe to", but I think it will be pretty low volume after a while, and probably very useful to you if you think that you might actually use The GUI Loft. I h

Re: [perl-win32-gui-users] ANNOUNCE: The GUI Loft (beta 010620)

2001-06-21 Thread Johan Lindstrom
I wrote: I think you can subscribe from this link: http://groups.yahoo.com/group/theguiloft/join?referer=1 You may have to create a Yahoo account (&%&!#, didn't think of that!) but you can change your subscription to your real e-mail address later. Hmmm... Maybe the easiest way is to use this

[perl-win32-gui-users] The GUI Loft: 2001-06-23 release

2001-06-23 Thread Johan Lindstrom
Hi! I just wanted you to know of the latest release of The GUI Loft. http://www.bahnhof.se/~johanl/perl/Loft/ The first public release revealed a few problems with module dependencies etc. I hope and think that is fixed with this release which contains two PPM packages: AdHoc and Loft. Instal

Re: [perl-win32-gui-users] Getting Perl.exe - application error

2001-06-26 Thread Johan Lindstrom
Louis wrote: $main->AddLabel(-text => "Hello, world"); Add a -name option and you're fine. All controls must have a name. I am sure the error is not in perl or your win-gui module Actually, I think it's something that could be fixed in the Win32::GUI module. If I remember correctly, al

Re: [perl-win32-gui-users] Reboot Dialog for Win95/98/NT/2000 ??

2001-06-26 Thread Johan Lindstrom
Andrew wrote: Forgive me if this is an obvious answer, but, I can't find any routines to initiate a shutdown/reboot. I hope this question is appropriate for this list seeing as I will have to use Win32::GUI :) Almost; you can use the Win32 module: http://www.perlmonks.org/index.pl?node_id=38

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

2001-06-26 Thread Johan Lindstrom
Sean wrote: $keep_running. So wouldn't it be easier just to use Dialog and have that event return -1? In most cases, yes. I would guess that Dialog() is a tighter and more efficient loop than you can roll on your own in Perl. What Dialog and DoEvents actually do is this: they process GUI me

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

2001-06-26 Thread Johan Lindstrom
Sean wrote: > This is where you call DoEvents() to give the GUI a chance to handle > messages and respond to user interaction every once in a while. Do > this "as often as possible" to give the impression that the GUI is > always listening to user interaction. So are you suggesting soemthing lik

Re: [perl-win32-gui-users] Terminating window

2001-06-27 Thread Johan Lindstrom
Louis wrote: $W = new Win32::GUI::Window( -title=> "Win32::GUI::Louis Test", -left => 100, -top => 100, -width=> 200, -height => 150, -font => $F, -name => "Window", ); Note the -name. sub W_Terminate {-1;} Note the name. You use the n

Re: [perl-win32-gui-users] Terminating window

2001-06-27 Thread Johan Lindstrom
Lous wrote: And change my terminate sub to the following: sub Window_Terminate {-1;print "";} For some odd reason if I do not do a print the program will not terminate. Anyone have any ideas why??? Just a note: you don't return -1 anymore, you return true, since that's what print re

Re: [perl-win32-gui-users] Opera and "Open Default Browser", Hard Crash?

2001-06-28 Thread Johan Lindstrom
Morbus wrote: system("c:\progra~1\opera\opera.exe $url"); Does this do what you want? system("start $url"); Even system("$url"); should work. This all assumes that $url contains a file with a file extension which is mapped to an application on your system. But .html files sho

Re: [perl-win32-gui-users] How do I know what options are available for a control?

2001-06-29 Thread Johan Lindstrom
Stephan wrote: As the header says, how do I know what's available? For example, the ListView control has "singlesel", "hottrack", etc. Where are these documented? There are a few ways to answer this, none of them really good. a) In the docs. There are number of pod/html files included in the

Re: [perl-win32-gui-users] Help with quitting

2001-07-02 Thread Johan Lindstrom
Louis wrote: sub Exit_Click {$W->PostQuitMessage(0);} Now I know that this sub is executing because I can put a print in it and I will see it on the console window. However, it is not quitting the program. How do I do that??? Normally, you exit the Win32::GUI::Dialog event loop with the P

Re: [perl-win32-gui-users] Help with quitting

2001-07-02 Thread Johan Lindstrom
Louis wrote: So are you saying something like this??? -snip- More like: my $EventLoop = 1; while ($EventLoop) { #some code... Win32::GUI::DoEvents() while Win32::GUI::PeekMessage(0,0,0); } sub Exit_Click { $EventLoop = 0; } Forget that Enable thing, it's cleaner with a dedicated vari

Re: [perl-win32-gui-users] Help with quitting

2001-07-02 Thread Johan Lindstrom
Louis wrote: It works but still gives an error when I exit using the exe version. Maybe I should give up on the exit thing and let people click on the windows X to exit. Try not calling exit(0). Long shot but it might work. /J -- --- -- -- -- - - --- Johan Lindström

Re: [perl-win32-gui-users] detect if window is minimized

2001-07-02 Thread Johan Lindstrom
Pete wrote: I know you can check to see if a window is shown or hidden via $Window->IsVisible but can't seem to find something similar to check if it is minimized or maximized. "The IsZoomed and IsIconic functions determine whether a given window is maximized or minimized, respectively. The Ge

Re: [perl-win32-gui-users] Code Review?

2001-07-02 Thread Johan Lindstrom
Morbus wrote: I'm looking for a code review of the below - mainly in the realms of Windows correctness, and what I'm missing, and so forth. The code below is a drop-able library into my AmphetaDesk (http://www.disobey.com/amphetadesk/), but could work for some other programs as well. Basically

Re: [perl-win32-gui-users] Code Review?

2001-07-02 Thread Johan Lindstrom
Morbus wrote: - do you see any Window related handles that I've missed? I'd much rather define every single possible event than miss some and hope that the code figures it out. Does my code always bring the Window to the top (in practice, sometimes it does, sometimes it doesn't)? J

[perl-win32-gui-users] Browser launch

2001-07-04 Thread Johan Lindstrom
3-2-1 * ignition * I just found this thread at PerlMonks: Haven't read & understood, but it seems relevant to a recent conversation here. /J -- --- -- -- -- - - --- Johan LindströmBos

Re: [perl-win32-gui-users] Kill event?

2001-07-11 Thread Johan Lindstrom
Peter wrote: Is there a Kill or other such event if a GUI app crashes or killed? Or should that just be handled with %SIG it would be awfully convenient if you could do something like: I tried a few things awhile back and the only %SIG I could get to work was this: sub trapEnd { prin

Re: [perl-win32-gui-users] Checkboxes in Listview?

2001-07-11 Thread Johan Lindstrom
Stephan wrote: Can I put checkboxes into a listview? Not the default one that comes with listview, but the real checkbox widgets. I once tried putting a Textfield on top of a ListView with little success. Apart from the ListView wanting to redraw itself on top of the Textfield (I think it wa

Re: [perl-win32-gui-users] Newbie: Win32::GUI - Problem finding loadable object for module W in32::GUI

2001-07-11 Thread Johan Lindstrom
Mark wrote: > As a newbie to both Perl and Win32:GUI I am a little confused with an > error message I am receiving after running the simple Perl script below. I guess you are using the Windows Script Host and a .wsf file to run this (or something similar). I just had to try this thing, and g

Re: [perl-win32-gui-users] wait for user input

2001-07-16 Thread Johan Lindstrom
Peter wrote: How can I temporarily halt the main Dialog() from accepting other events? I have an event that opens a dialog box (an alert) that I bring focus to, disable the other windows, etc. I want to wait for user input (click a button) before moving on. A modal dialog box in other words. Un

Re: Win32::GUI::Modalizer (was Re: [perl-win32-gui-users] wait for user input)

2001-07-17 Thread Johan Lindstrom
Peter wrote: > It does what you want, although in a sligthly different way. I've had > reports of it not working 100% properly under Win95, so if anyone using > that platform would care to try it out I would be grateful. I tested it under Win98 and sorry it didn't work there, too. In what way?

Re: Win32::GUI::Modalizer (was Re: [perl-win32-gui-users] wait for user input)

2001-07-17 Thread Johan Lindstrom
Peter wrote: Then it is the problem I mentioned to you one or two weeks ago. The app freezes because the focus seems to change very fast between the dialog boxes, Ahh... ok. I didn't understand that from our previous conversation, sorry about that. So, now the only problem is how to debug that

Re: [perl-win32-gui-users] Window without border and icons for a splash screen?

2001-08-05 Thread Johan Lindstrom
Peter wrote: is there a solution for creating splash screens without the windows border and icons (e. g. like Opera). Try this: my $winMain = new Win32::GUI::Window( -left => 13, -top=> 32, -width => 439, -height => 260, -name => "winMain",

Re: [perl-win32-gui-users] Question about adding methods to GUI objects

2001-08-08 Thread Johan Lindstrom
Joe wrote: Is there a simple way to add a method to an object? Basically, what I want to do is this: $window->CenterOnScreen(); #Minimalistic example use Data::Dumper; sub Win32::GUI::Window::CenterOnScreen { my $self = shift; print "In CenterOnScreen\n"; print Dumper($self);

Re: [perl-win32-gui-users] Some beginners questions

2001-08-08 Thread Johan Lindstrom
Christian wrote: - I added some "RadioButton" to a window. It looks that they are all treated as one group of buttons in Win32::GUI. Is it somehow possible to create more than 1 group of radiobuttons in the same window? Set the option -group => 1 in the first RadionButton control in each "radio

Re: [perl-win32-gui-users] Capturing a bitmap from a window (or a region within a window)

2001-08-15 Thread Johan Lindstrom
Tim wrote: Does Win32::GUI provide any means of capturing a specified rectangular region within a window. This would be an extremely useful feature which is not available anywhere else in Perl-world (to my knowledge). Search the Win32 API for "Capturing an Image", then do your stuff with Win32

Re: [perl-win32-gui-users] Capturing a bitmap from a window (or a region within a window)

2001-08-17 Thread Johan Lindstrom
Laurent wrote: I have made a Win32::GUI add-on, call Win32::GUI::DIBitmap. Very cool! I'll use it to speed up the grid display in The GUI Loft if I can get it to work, so this was great news! /J -- --- -- -- -- - - --- Johan LindströmBoss Casino

[perl-win32-gui-users] Win32 info

2001-08-23 Thread Johan Lindstrom
Very good resource for Win32 info (and other stuff it seems): /J -- --- -- -- -- - - --- Johan LindströmBoss Casinos Sourcerer [EMAIL PROTECTED] http://www.bahnhof

Re: [perl-win32-gui-users] dialog question

2001-08-27 Thread Johan Lindstrom
Steve wrote: opening a dialog box makes another window icon appear in my taskbar. is there anyway to: a) not have the new window create the new task? Copy-paste-edit from a previous message: Create a window with a -parent => $winParent. That will make the new window a child window. It will s

Re: [perl-win32-gui-users] How to get items that are checked in a list view.

2001-08-30 Thread Johan Lindstrom
Joe wrote: I do get items in a list view that are checked to put in an array/hash/what ever. My code list the contents of a directory and puts them in a list view what I want is that after someone selects the files they want by checking the box next to it. They click on a button and it copies t

Re: [perl-win32-gui-users] Newbie question: destroy button.

2001-09-03 Thread Johan Lindstrom
Alessandro wrote: In this case, I want work in the same window. How can I destroy the 2 buttons ? Most general: How can destroy any controls so I can reuse the same window to put in it other controls ?? Short answer: you don't. At least I don't think that's the best option, although it may be

Re: [perl-win32-gui-users] What is the value of WM_HELP?

2001-09-03 Thread Johan Lindstrom
Joe wrote: What is the value of WM_HELP? #define WM_HELP 0x0053 /J -- --- -- -- -- - - --- Johan LindströmBoss Casinos Sourcerer [EMAIL PROTECTED] http://www.bahnhof.se/~johanl/ I

Re: [perl-win32-gui-users] RE: Right way to sort(WAS Schwartzian Transform?) < Look Ma, an intelligible and descriptive subject line.....

2001-09-06 Thread Johan Lindstrom
Joe wrote: Now, anyone want to give me 1-2 examples of using the Schwartzian Transform and break it down?( I have seen the one linked to from perl.com, but it kind of makes my head hurt. I also searched google, but found that one and a few other links that did not really explain when to use and h

Re: [perl-win32-gui-users] Two questions

2001-09-13 Thread Johan Lindstrom
Ultimate Red Dragon wrote: Also, um, why do 'multiline' textfields (and richedit fields) that I create not seem to go down a line when I hit enter? That's the way it works(tm). Enter will trigger the Default button (the Ok button usually). Ctrl-Enter will give you the newline. But, you can c

Re: [perl-win32-gui-users] 1st tutorial

2001-09-13 Thread Johan Lindstrom
Marcus wrote: Are there any example programs I can look at? I didn't see any links on Sourceforge. In the source distriution (at SourceForge) there are a few indispensible sample scripts. Other programs you can study: A PerlMonks chat client

Re: [perl-win32-gui-users] Retrieve string in text field

2001-09-14 Thread Johan Lindstrom
Joe wrote: How do I retrieve the string in a text field? $tfYourfield->Text() /J -- --- -- -- -- - - --- Johan LindströmBoss Casinos Sourcerer [EMAIL PROTECTED] http://www.bahnhof.se/~johanl/ If the only tool yo

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

2001-09-25 Thread Johan Lindstrom
Leon wrote: Is there an online reference/documentation on the Win32::GUI module. I have check http://dada.perl.it/ and associated urls from search engines but either pages could not be found or information about telecommunications was presented before me. In the source distribution at SourceFor

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

2001-09-27 Thread Johan Lindstrom
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 l

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

2001-09-27 Thread Johan Lindstrom
At 15:52 2001-09-27 -0400, Frazier, Joe Jr wrote: What are the options for Combobox? I have two applications which use a combobox. One created manually and one using GuiLoft. The one with GuiLoft does an an Autofill, however, the one made manually does not. Eh... what is an Autofill? Exam

Re: [perl-win32-gui-users] Radiobutton groups

2001-09-28 Thread Johan Lindstrom
At 05:21 2001-09-28 +0200, Marcus wrote: How do you group radiobuttons on the same window so that they remain independent of other groups? 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

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

2001-09-28 Thread Johan Lindstrom
At 07:15 2001-09-28 -0400, Frazier, Joe Jr wrote: That actually did it! Thanks.I have so much time spent on this application that converting it to use GUILoft would not be an easy option. Actually, since all The GUI Loft does is _building_ the window for you, replacing existing window-cre

Re: [perl-win32-gui-users] Radiobutton groups

2001-09-29 Thread Johan Lindstrom
At 00:04 2001-09-29 +0200, Marcus wrote: On 28.09.01 at 09:13 Johan Lindstrom wrote: >You should set the -group => 1 option on the _first_ RadioButton in each >group. This control should also be a tabstop. Great thanks, works nicely. In Loft, it actually "groupstart", rig

Re: [perl-win32-gui-users] Win32-GUI cursor events

2001-10-10 Thread Johan Lindstrom
Anufriyenko,Igor wrote: Is there documented (or undocumented) information regarding Mouse movement events such as: - cursor over control - cursor leaves control That would be soo nice! But no, not that I know of. There is a MouseMove event for the Graphic control (I us

Re: [perl-win32-gui-users] Question: Qualified callbacks

2001-10-12 Thread Johan Lindstrom
Ami wrote: At the moment I'm putting callbacks in package main, i.e. "global". Is there any way to specify a package for callbacks? Ideally Win32::GUI would assume the package of the object, instead of package main. Yes. Or pass the window object to the event handler, that would be nice. Unt

Re: [perl-win32-gui-users] Getting TAB in a Window

2001-10-12 Thread Johan Lindstrom
Ami wrote: I don't know why TAB works in a Dialog but not in a Window. #Create window, then $winMain->{dialogui} = 1; /J -- --- -- -- -- - - --- Johan LindströmBoss Casinos Sourcerer [EMAIL PROTECTED] http://www

[perl-win32-gui-users] Improving the documentation (Was: [perl-win32-gui-users] msk.pl)

2001-10-12 Thread Johan Lindstrom
Mark wrote: If any of the developers are on the list - I am offering to help :-) :-) (at least w.r.t. improving the documentation...) I know for a fact that Aldo would appreciate that a lot. Send him an email. /J -- --- -- -- -- - - --- Johan Lindström

[perl-win32-gui-users] Win32 constants

2001-10-22 Thread Johan Lindstrom
I just posted this to the perl-win32-user list, but I figure it belongs here too. Constant values for the Win32 API: /J -- --- -- -- -- - - --- Johan LindströmBo

Re: [perl-win32-gui-users] Does Win32::GUI::PeekMessage work?

2001-10-25 Thread Johan Lindstrom
Mark wrote: I have a window full of colourful cirles that get blanked out whenever another window goes on top. I The Win32::Graphic control has a Paint event. Maybe if you paint on that one instead. Note that you have to redraw the entire control each time. Trivia: This is how The GUI Loft d

Re: [perl-win32-gui-users] Pinting and drawing: how to intercept HW_PAINT message?

2001-10-28 Thread Johan Lindstrom
At 13:57 2001-10-27 +0100, Mark Rivington wrote: According to MSDN, all I need is to intercept the HW_PAINT message and redraw the part of the DC that is invalidated. There already is a Paint event for the Win32::GUI::Graphic control. Take a look at The GUI Loft if you need a working piece of

  1   2   3   >