This is a great idea John!. I originally was using C++ Builder to design
my Win32::GUI forms so I could get the pixel coordinates. I'm anxious to
try letting your script create the perl GUI code for me. A Win32::GUI
forms designer is in progress (3 cheers to those doing it),
thanks. ;)
David Hiltz wrote:
I saw this question posted before - but no answer. Is there a way to
have multiple groups of Radiobuttons?
Maybe there is a flag like:
-group = 'group-name'
Tried it but ... no. :(
use
-group = 1
to mark the start of a new
ings to fix but hope to release an update soon.
Thanks for your help.
---
David Hiltz
Email: [EMAIL PROTECTED]
Unix System and Network Administrator
Northeast Fisheries Science Center
##@##
Not exactly what I was looking for. I am building the menu within my code
and so there is no _Click subroutine for each menu item. Unless I can build
subroutines within my code as well, but I don't know how to go about doing
that.
I've done that. Define the code then use eval to set it
Hi there ...
When I finished to enter the properties for a
new Window with GUI Builder, I got an error message?
I attached a screenshot of it to this mail.
What does the "Window Property" window look like right before
you get ready to click "OK"?
Did you statup 'gb', click on
esize" via package
"Win32::GUI::Graphic" at c:\temp\gb\gb.pl line 841.
Has anyone else noticed this?
same here, but with build 425.
Also resizing the 'Command' Window gave me an error about "Text".
David Hiltz
Yes David, I have seen similar things. I wrote an application on Windows NT
and it looks and behaves much different on Windows 95. My Textfields for
example were big enough for Maxlength(8) characters to be visible, but under
Windows 95, I only could see the last 6 characters keyed. What I
friends,
please find attached a new version of David's GuiBuilder; I've pretty much
revolutioned the concept behind... basically, the whole design window is
now managed by a Win32::GUI::Graphic object (I've also used some
Win32::API trickery for the dirty geometric job). the implemented
From: "David Hiltz" [EMAIL PROTECTED]
BTW, I've been pushing Win32-GUI over on Advocacy and pointing out that
things might be nice if someone did a little funding to help things
along. Maybe O'Reilly will come up with enough for a book :-))
Yes, it would be better to
which works pretty good. Drawback is it costs $$$.
---
David Hiltz
ch is what most people want when they program
under Windows.
My 2 cents.
David Hiltz
##@##
Win32::GUI) but it
returns a width (in pixels) that is longer than the actual text. Don't
know how to get around this.
-david hiltz
Hello Aldo -
I wanted to submit my vote for the 'SetTextAlign' function so I can
graphically center text on a Button.
thanks -dhiltz
I have a window with two textfields, how do I create two event buttons and
each event button will be assigned to each textfield only?.
Do you have sample code?
Windows has a GUI for getting a user selected folder rather then
filename, does Win32:GUI support this feature ??
I think their is a function for that in the Win32::FileOp module.
It has taken me this long to get around to playing with David Hiltz's
GUI Builder. Unfortunately, I am having trouble getting it to run. It
seems I get the recurring error:
Can't locate auto/Win32/GUI/MenuItem/SetMenuItem.al in @INC
(@INC contains : C:/Perl/lib C:/Perl/site/lib .) at
in until I do a:
$label-Text($label-Text);
...basically setting the text back to itself. There may be better way,
but I haven't discovered it yet.
-dhiltz
--
From: David Hiltz[SMTP:[EMAIL PROTECTED]]
Sent: Tuesday, February 23, 1999 11:17 AM
Are you going to continue working on it (gb)?
I would like to, but I'd better continue working on the module itself
and the documentation.
I would like to help out, but don't know where I can lend a hand. Maybe
I
could work on getting the save and open functions to work based
That's really funny, I finally just figured out how to use PPM and
reinstalled the latest win32::GUI with PPM and now my program is generating
the exact same error:
Can't locate auto/Win32/GUI/MenuItem/SetMenuItem.al in @INC
(@INC contains: C:/Perl/lib C:/Perl/site/lib
look of Windows more than X-Windows. Microsoft did a nice job
designing the GUI in Windows. Also, my users are comfortable with Windows
widgets and introducting an Xwindows lookandfeel would only confused them.
That's my reasons.
---
David Hiltz
Email: [EMAIL PROTECTED
firewall blocks.
-dhiltz
-Ursprüngliche Nachricht-----
Von: David Hiltz [mailto:[EMAIL PROTECTED]]
Gesendet am: Montag, 22. November 1999 17:44
An: [EMAIL PROTECTED]
Betreff: Re: [perl-win32-gui] Problem with installing win32::GUI
beeing a real newby to installing *.pm's. I've got
I saw this question posted before - but no answer. Is there a way to
have multiple groups of Radiobuttons?
Maybe there is a flag like:
-group = 'group-name'
Tried it but ... no. :(
-david hiltz
-Resize(10,50);
If I try this, I get the message:
Can't call method "Resize' without
a package or object reference
Any ideas?
Thanks.
David Hiltz
If Win32::GUI is based upon user32.dll and gdi32.dll, is there some place
where I can find documentation on these two libraries?
This is in addition to the documentation that comes with Win32::GUI.
Thanks.
---
David Hiltz
Email: [EMAIL PROTECTED]
Unix System
Is there an option to open and save a file ?
you mean a file open/save dialog window?
If so,
$file_spec = "*.bmp\0" . " " x 256;
$dir = cwd;
$file = GUI::GetOpenFileName(
-owner = $Win,
-directory = "$dir",
-title = "Load/Save File",
-file =
});
print "$name\n";
}
But it tells me they are all buttons (probably because checkboxes and
radiobuttons are derived from a button class).
Any way to find out exactly what they are?
Thanks.
---
David Hiltz
Email: [EMAIL PROTECTED]
Unix System a
beeing a real newby to installing *.pm's. I've got a question:
I've copied, the gui.pm to my Perl Dir Perl\lib\win32. But when I start a
sample .pl file from the Distribution Win32-GUI-0.0.434 I get the following
Error Message:
Missing $ on loop variable at C.\perl\lib\win32\gui.pm
"Cancel",
-cancel = 1,
-tabstop = 1,
);
$Ident-Show();
$Ident-Dialog();
sub OK_Click {
print "Username: ", $Username-Text, "\n";
print "Password: ", $Password-Text, "\n";
return -1;
}
sub Cancel_Click {
print "User
Has anybody taken a look at the Perl-Qt module (Perl interface to QT
Widget set)?
From my understanding, Qt allows you to create GUI applications that
have the native look and feel of the platform where they are run. Sort
of like Java.
-dhiltz
If you download PDK from activestate you can create an .exe using the
perlapp module.
If you use the -g option you can create a freestanding GUI .exe (no dos
window).
I use it alot and it works very well.
Can you run the perlapp module on win95,98 or is it restricted to NT?
I
Is this still build 434 of Win32::GUI?
ok folks,
I have a 5.6.0 (ActivePerl 613) PPM build for you!
you can type:
ppm install --location=http://dada.perl.it/PPM Win32-GUI
you can even type:
ppm set repository dada http://dada.perl.it/PPM
there's only Win32::Clipboard and
I didn't get a YES and NO button when I ran this, just
an OK button.
you're looking for a Win32::GUI::MessageBox.
sub Submit_Click {
# Do some stuff here
# Do some fancy stuff...
# Ooops, an error, ask a yes no question.
$answer =
I'm trying to add keyboard functionality to a sample little window. I want
to be able to tab from control to control (say from a first name edit box,
to a last name edit box, to an OK button). But adding tabstop = 1 doesn't
seem to do anything. I can't find much info on tabstop. Can
David Hiltz wrote:
I want to get the width of a textstring using a specified font.
I tried this:
$text = "Hello";
$tab_font = new Win32::GUI::Font(-name = "Tahoma", -height = 13, -bold
= 1);
($w, $h) = $TS-GetTextExtentPoin
-left = 10,
-top = 10,
);
Anybody gotten tabstrips to work?
Thanks.
---
David Hiltz
David Hiltz wrote:
Hello Aldo -
I wanted to submit my vote for the 'SetTextAlign' function so I can
graphically center text on a Button.
the Button object has already -align and -valign options:
straight from the docs:
-align = left/center/right (default left
hat drives it (someday maybe).
-david hiltz
of PERL2EXE so I can send you GB.EXE so you
can at least get it up and running.
-dave
David Hiltz wrote:
Anybody look at my GUI Builder that I sent out Sunday (23rd)? I'm just
anxious to get feedback so I can start on the next version.
I was also curious how many people
On Build 434, when I try to resize the main window I get a text error as
follows:
Can't call method "Text" without a package or object reference at
gb.pl line 232
it is this line at 232:
$CWin-WinInfo_Lab-Text(" sh=".$CWin-ScaleHeight(). ...
I think this is the one David is
Please no flames. Is it possible to access the Win32:GUI routines from
another scripting language (JScript, VBScript, etc.)? Not being an assembly
language programmer, I cannot cook this up myself, so any hints/code
samples/etc. would be appreciated.
Win32::GUI from JScript or VBScript
components automatically. ...but nobody responded. :(
-david hiltz
Eric C. Hansen [mailto:[EMAIL PROTECTED]] replied:
you need GUI::Dialog() to activate the EVENT LOGIC;
Thanks, and I've tried that, but it stops and waits for
an event. I need something that will let me continue
processing.
You can use a Timer to do a 'one-time' call a subroutine
Dear David,
Thank you for your help.
Hi,
Can you please help and answer the following two questions?
Have you looked at the example code for Win32::GUI?
Which examples do you mean? In tutorial?
Question 2.
How can I print output from a program to a window created
s clicked at $x - $y\n";
}
}
---
Is there a better way?
Thanks.
---
David Hiltz
Email: [EMAIL PROTECTED]
Unix System and Network Administrator
Northeast Fisheries Science Center
##@##
Jens Luedicke wrote:
Is there a pre-compiled version of the Win32::API, too?
If not, can anyone tell me how I can compile those modules
with Mingw32 ?
I started some time ago to port Win32::GUI to mingw32 and stopped
^^^
what is
If Win32::GUI is based upon user32.dll and gdi32.dll, is there some place
where I can find documentation on these two libraries?
This is in addition to the documentation that comes with Win32::GUI.
Thanks.
David Hiltz
For example the Microsoft Visual C++ contains
I think Tk looks just fine. I like the fact that
I can run the same code up on my Sun workstation.
I'll probably come back and visit Win32::GUI in 1/2 year to see how it
has matured.
---
David Hiltz
Unix System and Network Administrator
Northeast Fisheries Science Center
##@##
I'm just getting started with Win32::GUI. I have a basic question. I create
a window, but can't get a Label to show up. Is there another way to put text
in the window?
Can you spot what I'm doing wrong? Code is below:
Add this...
Win32::GUI::Dialog();
after the $M-Show;
?
-david hiltz
) should be in the archives - if you can't find it
I can send you the source or an EXE.
-david hiltz
to return to the
project.
-dave
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of David Hiltz
Sent: Tuesday, October 26, 1999 8:43 PM
To: [EMAIL PROTECTED]
Subject: [perl-win32-gui] A Very Basic, Experimental Win32::GUI Builder
(gb)
"T
worked up some sample html for a win32gui website. I made
something for people to look at, asked for responses, and said I'd flush
it out if people were interested.
No one was.
Garrett
P.S. It's zipped and attached.
David Hiltz wrote:
Anybody look at my
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
--_=_NextPart_001_01BFDD18.E38860A4
Content-Type: text/plain;
charset="iso-8859-1"
From: "David Hiltz&qu
Try this:
ppm install --location=http://jenda.krynicky.cz/perl Win32-GUI
D:\Perl\ppm install Win32-GUI
Error installing package 'Win32-GUI': Could not locate a PPD file for
package Win32-GUI
Darren
Hello Aldo - hope you are well.
I'm just curious if you are working on the next release of Win32::GUI?
If so, what is your estimate for when we can play with it?
What kind of enhancements/fixes it will include?
Thanks -dhiltz
From: David Hiltz
Have you evaluated using Perl/Tk?
Maybe it's just me but I can't get perltk stuff to run with perl2exe ...
One thing that Tk has which Win32-GUI doesn't is the ability to
position (pack) controls on a form, or at least have a provisional go.
I dare say I wont
David Hiltz wrote:
2) How do I enable a button that was created with the option ;-disabled
= 1; ?
You mean through GB?
No, that's a general Win32::GUI question. I'm sure I've seen how to do
it somewhere, but finding things in the docs are currently not the
easiest thing
.
Bonus Question: How can I make a window stay "on top"?
After what event?
-David Hiltz
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Aldo Calpini
Sent: Wednesday, March 03, 1999 1:02 PM
To: [EMAIL PROTECTED]
Subject:
gn some of
this visually. It is still very much in the early stages but it still
can save alot of time building the initial layout.
-David Hiltz
Want to add tabstrips to my program but don't want to keep track of
showing and hiding the individual widgets on each tab. So here is a
complete program that shows a possible work-around.
What I would like to do is add an option to each widget I add to indicate
the Tab it should
Working with changing colors on labels. If I use the ChooseColor method it
works for most of the colors when setting the -foreground but not the
-background. I've included an example program below. Pick a color by
clicking on "Choose" or typing in the color number in the textfield. It
seems
drawing the radio button. If anybody wants to
send me the code for drawing a better radio button or if Aldo has
time to implement the arc function that would be good.
Please send comments or questions back to this mailing list.
Enjoy - David Hiltz
gb0.01.zip
begin:vcard
n:hiltz;d
Why not try the Win32::Setupsup module which also lets you send keystrokes
to a window?
Todd!! I tried the same things! I got fairly close to making a usable
interface, but when I asked the winamp folks for help (7 times) I never got a
response. I have code I can send if you would
);
On Thu, 9 Nov 2000, David Hiltz wrote:
Why not try the Win32::Setupsup module which also lets you send keystrokes
to a window?
Todd!! I tried the same things! I got fairly close to making a usable
interface, but when I asked the winamp folks for help (7 times) I never
What is the Win32::GUI equivalent of "Frames" concept in perl/tk ?
you mean a groupbox?
+- Sometext --+
| |
| |
| |
| |
| |
|
can become motivated to
do so. ;)
-David Hiltz
it (for any interested):
http://www.mail-archive.com/perl-win32-gui@httptech.com/msg00718.html
-rob
David Hiltz wrote:
is there a forms builder or a gui builder for the win32::GUI module ?
I've been working on one. It will lets you drag around widgets (buttons,
labels
-height = 13,
-align = right,
-foreground = [190,35,35], # Red
);
If I leave the -align = right out of the code the color comes out Red as
it should.
Just an observation. :)
-David Hiltz
the second
window (waiting for the user to click "OK"), but instead you see the
number changing and it comes to rest on the last number.
Any ideas?
Thanks -David Hiltz
use Win32::GUI;
$Win = new Win32::GUI::Window(
-left = 341,
-top= 218,
-width
}
-rob
David Hiltz wrote:
Below you will a small Win32::GUI program that displays a window with a
button labeled "Loop". When you click on the button it calls a
subroutine which should display another window with a number and an OK
button. I want the progr
You have taken out the looping which is why it works. This is not
what I wanted. I wanted to loop a set number of times and stop under
a given condition to display my own window. Example, I want to read
in lines from a file and check the lines for errors. If an error is
found I
okay, i think i see what you mean...you want a GUI that starts a loop
which can conditionally spawn a second window, and when that second
windows is closed, it returns to the loop and continues processing...
yes.
i can't figure it out either...my current theory is that since the
72 matches
Mail list logo