[perl-win32-gui-users] Loft question (slightly off topic)

2003-07-24 Thread Dennis Putnam
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have noticed a number of list members apparently use GUI Loft. I downloaded it and am looking at it but apparently I am having a senior moment. I cannot for the life of me figure out how to use it and the documentation is not helping. The first th

RE: [perl-win32-gui-users] Need some minor cleanup help and a note on radio buttons

2003-07-23 Thread Dennis Putnam
At 08:21 AM 7/23/2003, you wrote: >This will get rid of the Minimize and Maximize. > SNIP I may have replied a tad too soon. I'm still missing one piece. If I cannot get rid of the close button (X), then I need an OnClick routine. What is the name of the click object for that button? TIA.

RE: [perl-win32-gui-users] Need some minor cleanup help and a note on radio buttons

2003-07-23 Thread Dennis Putnam
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 At 08:21 AM 7/23/2003, you wrote: >This will get rid of the Minimize and Maximize. > SNIP Perfect. Thank you much. -BEGIN PGP SIGNATURE- Version: PGPfreeware 6.5.8 for non-commercial use Comment: Be sure to use my mo

RE: [perl-win32-gui-users] Need some minor cleanup help and a note on radio buttons

2003-07-23 Thread Dennis Putnam
At 03:49 AM 7/23/2003, you wrote: Hey, In response to # 1 (textfield problem), make sure that "$window" is valid. It may be complaining about that, and therefore leading you the wrong way. Secondly, my calls to "Add" are typically: $Textfield = $Window->AddTextfield( -name => "Textfield

[perl-win32-gui-users] Need some minor cleanup help and a note on radio buttons

2003-07-22 Thread Dennis Putnam
I have finally set up my windows (and learned a lot in the process) pretty much the way I want and everything is working. But, I have a couple of cosmetic problems with which I could use some help cleaning up. 1) I never got an answer to earlier question about an error message I'm getting when

RE: [perl-win32-gui-users] Click subroutine doesn't get control when script is executing

2003-07-21 Thread Dennis Putnam
At 06:31 AM 7/21/2003, you wrote: Forget the timer ( in this situation) sub Button_click { my $var =1; while ($var) #long running loop { Do somestuff here and then repeat Win32::GUI::DoEvents(); $var =0; } } "JUDICIOUS" use of DoEvents will help as long as you are not actually r

Re: [perl-win32-gui-users] AddTimer problem

2003-07-20 Thread Dennis Putnam
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 At 09:58 PM 7/20/2003, you wrote: >A bald guess, but I've gotten this particular error several times when I >wrote an event handler that didn't return a value. It's worth a look... Thanks for the suggestion. It was worth a look but alas did not help

[perl-win32-gui-users] AddTimer problem

2003-07-20 Thread Dennis Putnam
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 It seems that even the simplest things get complicated. I created a timer thus: my $timer1=$window->AddTimer('T1',250); How much simpler can one get then that? Anyway, this produces an error at every timeout: "Use of uninitialized value in subrout

RE: [perl-win32-gui-users] Click subroutine doesn't get control when script is executing

2003-07-20 Thread Dennis Putnam
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 At 03:58 AM 7/20/2003, you wrote: >In the typiucal windows way (which we can do in PERL), is to start a >TIMER. >The classic to this approach is a "setup" pogram with the prograss bar. > >When you start your script, you will need to set a WM_TIMER for

[perl-win32-gui-users] Click subroutine doesn't get control when script is executing

2003-07-19 Thread Dennis Putnam
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have a script that is started by a button. It can be a long process and I would like to give the user the option of cancelling execution at any time. Unfortunately, it seems that when the script is running all buttons become disabled or at least t

Re: [perl-win32-gui-users] Changing font color on a label

2003-07-18 Thread Dennis Putnam
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 At 10:15 AM 7/18/2003, you wrote: >Hi, > >I mostly use Win32::GUI::Loft to build screens. The power of this app is >really impressive and, while it doesn't match the full power of Win32::GUI >alone, it sure makes building screens a lot easier! > >I

RE: [perl-win32-gui-users] Need tabstop help

2003-07-18 Thread Dennis Putnam
At 09:55 AM 7/18/2003, you wrote: Dennis, Not sure about the Visual C++ thing as I haven't really used it! So far it seems all the undocumented functions are the same as VC++ (with the appropriate perlisms). I may just start using that and see how far I can get. As for the selection of t

Re: [perl-win32-gui-users] Need tabstop help

2003-07-18 Thread Dennis Putnam
At 09:02 AM 7/18/2003, you wrote: Hi, Your check box will send a Click event when it is checked. You, then, need to create a handler for the event: sub ::chbCheckBox1_Click { } Hope this helps, Thanks but I don't think you understand the problem. This is strictly a tab control problem. W

RE: [perl-win32-gui-users] Need tabstop help

2003-07-18 Thread Dennis Putnam
At 04:25 AM 7/18/2003, you wrote: Dennis, Try this just before your $MainWindow->Show();to set the focus on your object - $ObjectName->SetFocus(); Ah, ha! So there is another undocumented function. Thanks. I repeat my earlier question: how do you find this stuff out? I have used Visu

RE: [perl-win32-gui-users] Need tabstop help

2003-07-17 Thread Dennis Putnam
At 03:14 PM 7/17/2003, you wrote: Dennis, Tabbing doesn't work in a window by default, add this to your script - $MainWindow->{-dialogui} = 1; Then create your textfields with the -group => 1, -tabstop => 1, Options and all should be ok. Thanks. I still can't find that one in the docs (sam

[perl-win32-gui-users] Need tabstop help

2003-07-17 Thread Dennis Putnam
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have set up a window with 2 text fields on it. These are the only fields I want to tab between. I set -tabstop to 0 for every other object except these 2. Unfortunately, it behaves as if there are no tabstops at all. Neither field gets the initial

[perl-win32-gui-users] AddTextfield error

2003-07-16 Thread Dennis Putnam
I have the following object defined: $window->AddTextfield( -name=>"URL", -top=>90, -left=>10, -font=>$pt12, -prompt=>"Enter starting URL", -text=>"http://";, -width=>430, -height=>25, ); Everything is working correctly but I get the following errors (when I comment out the obje

[perl-win32-gui-users] Another novice question - font for AddTextfiled -prompt property

2003-07-16 Thread Dennis Putnam
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 How do I set the font for the '-prompt' property? The '-font' parameter only seems to effect the text box. The obvious (to me): $window->mytextfield->Prompt->Font($F); doesn't work? TIAA. -BEGIN PGP SIGNATURE- Version: PGPfreeware 6.5.8 for

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

2003-07-16 Thread Dennis Putnam
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 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", . . . - --text=>"Original text" ); Later in the script I need to change that label, alt