GetWindowRect()
Returns a four elements array defining the windows rectangle (left,
top, right, bottom) or undef on errors.
use Win32::GUI;
my $file = "*.txt\0" . " " x 256;
my @files = GUI::GetOpenFileName(
-owner => $W,
-directory => "C:\\",
-title => "Create ASN File - Specify Output File",
-file => $file,
-multisel => 1,
);
print @files;
in 0.0.665 if you use multisel => 1 it will bring up an ugly 3.1 style box.
i tried it, it works fine. i'm using activeperl 5.6.1.633 on windows 98 and
win32::gui 0.0.665. the only problem i see is if you 'use strict' (which
you should) you'd need to change $Win2 = new. to my $Win2 otherwise
you'll get an error about a global symbol requiring an explicit package
name.
hi. i was having problems running a program under 95b on a clients computer
so i perlapped up 01_basic.t and ran it on their computer and it got the
following error message.
Can't load 'auto/Win32/GUI/GUI.dll' for module Win32::GUI: load_fil
e:One of the
library files needed to run this applicatio
i did 'nmake /i' and right after when i got the previous error message i'm
told
fatal error C1083: Cannot open source file: 'GUI.cpp': No such file or
directory
i checked win32-gui-0.0.665.tar.gz from dada and sourceforge and neither of
the files have gui.cpp in them.
another error when building. i've never been able to build win32::gui
myself, always had to use the ppm module. i have ms vc++ 6 and when i try
and nmake i get this error
C:\Perl\bin\perl.exe -IC:\Perl\lib -IC:\Perl\lib C:
\Perl\lib\ExtUtils/xs
ubpp -typemap C:\Perl\lib\ExtUtils\typemap -
is there any way to make a window 'always on top'?
thanx
mark
i was under the impression that forking didn't work at all under
windows.some problem with svtypes(? ). perl 5.8.0 threads and
win32::gui seem to work wonderfully tho.
after some more testing..if i take out the -parent => $Window from the
settings window then pressing alt+c (for &Close) will work. also the
shortcuts will work if anything (apart from the window) has focus. so when
the program starts if i put in $ListView->SetFocus() then when i press
alt+s th
the same goes for buttons too. if i have a button with -text => "
&Settings", then so long as the listview has focus, when i press alt+s the
settings window will pop up. it doesn't work with child windows though. if
i have an &Close button in the settings window then no matter what has
focus, it wo
its not an accel table its just a gui::makemenu and theres no reference to
the listview in it anywhere. i just thought i'd add this considering we
were talking about accelerator tables not working.
mark
i have a program which is based around a listview that i put a menu in for,
but the menu shortcut keys (alt+f for file etc) would only work if the
listview had focus. wierd?
thanx for all the replies. i think i'll just stick with what i'm using at
the moment and see if i can figure out where its going wrong.
on a different note, is it possible to put a copyright symbol in the window
title? AND i was just going through the samples and i noticed in pmx.pl
that the menu
hi. i've got alist view with 4 columns, being catalogue number, artist,
title and qty (there's 2 other columns but they don't matter) and i've been
trying to figure out how to sort the whole listview on a column click. i
found a message sometime last year where someone posted something that i
kind
hi. i have a window with 3 tab strips on it, 1 for incoming ftp, 1 for
outgoing and the other i don't use yet. both incoming and outgoing ftp and
be stopped. what i'd like to do is that when someone stops incoming or
outgoing ftp the tabstrip text changes to red, or something. i've tried
using -for
hi. i've added a notify icon to sit in the system tray when a window is
minimised. what i'd like to try and do is make the
whatever-it-is-you-call-it disappear from the task bar. i figured it would
probably have something to do with window styles, if anything, but i can't
find anything about it in
hi. i'm doing a program at the moment that needs to log its output to
something and i've chosen a listview because it seems to work best with
that. however, the column header up the top doesn't really suit what i'm
trying to achieve. i've tried doing -style => LVS_NOCOLUMNHEADER and the
same with -
hi. more about accelerators. i posted a question about them on the
perlmonks site and the response was that accelerators actually worked in a
previous version of win32::gui but they were broken later. can anyone
verify this and if so does anyone have a copy of the version that it works
in?
thanx
i'm having a problem with a little popup window. if i click on the x the
close the window and then click on settings to open it again, it doesn't
show. however if i click on save and exit, when i click on settings it
will show itself. code below...
sub Settings_Click {
&GetSettings;
$Win
hi. is there any way of associating a keystroke with something, like alt+s
to bring up a settings window?
hi. i have a listview with 2 columns that i'd really like to be relatively
hidden cos it contains data that the user doesn't need to see. considering
there doesn't seem to be a away to turn resizing the columns off, is there
a way of stopping the vertical scrollbar. it comes up automatically but i
hi. is there any way to stop a column from being resized? or alternatively
is there something like a column_resize event or something like that?
thanx in advance
postscript?.maybe?
"Guillem
Cunillera To: <[EMAIL PROTECTED]>
theres a win32::printers module?
"Guillem Cunillera Wefers"
<[EMAIL
sorry. make that it only works with a window, not a dialog.
"John Crawford"
-tabstop => 1. pretty sure it only works with a gui::dialog.
"John Crawford"
is there any way to make a listview column so it can't be resized?
thanx
is there any way of changin the state of a checkbox in a listview without
actually clicking the checkbox. at the moment i'm currently looking at
something like
my($item) = @_;
my %info = $ListView->ItemInfo($item, 4);
$state = $info{-text};
print $state, "\n";
if ($state = "X") {
wonderful. the second one worked.
"Piske, Harald"
<[EMAIL PROTECTED]To: "'[EMAIL
i don't think thats what i'm trying to do. i'll explain. i have a window
that 800x574 (cuts off just above the taskbar). i've disabled the maximise
button and the window isn't resizable. i decided to put a status bar down
the bottom cos otherwise it just looked really ugly but i can resize the
wind
is there any way to stop a status bar from being able to be resized?
thanx
is there any way for $ListView->ItemInfo to just print out the text rather
than state and image as well. i have tried various things but nothing seems
to work. thanx
hi. i've got a weird problem with my popup window. if i close it by
clicking on the x the window closes fine but if i click on the button to
open it again, it won't open. however if i click on save and exit in the
popup window, when i click on the button the open the window again it works
fine. any
hi. is there any way of stopping a second window from creating an instance
of itself in the taskbar?
thanx
hi. how can get the value of whatevers in a textfield? and is there a way
to insert an entry into a combobox so it will display it in the first line.
i'm opening up a settings window and it reads the previously saved settings
from a file, one of which is their dun connection and i'd like that to be
i've taken a look at the gui loft but i could never figure how to view the
widget properties..
>> and (i think this is the last one) is it possible to make the widgets
>>sticky
>> like in tk?
>dunno what it means...
sticky mainly refers to which sides the widgets should "stick" to when
resized. so if i have a listview which is -sticky => 'ew' then when it gets
resized it should stretch to
hi. ive' got a combox in a settings window that displays dun entries. i've
done it like this
sub Settings_Click {
&settings
}
sub settings {
$Window2 = new GUI::Window(
-name => "Window2",
-text => "Settings",
-width =
hi i need lots of help. i'm fairly new to perl and i only compiled
win32::gui yesterday. i have a listview that i'd like to sort. i've tried
things like
my($stuff) = @_;
sort $a <=> $b, $stuff;
and variations on that theme but nothing seems to work at all. also, is it
possible to change the colou
hi. i'm compiling win32::gui 0.0.665 on win98se using dmake, perl 5.6.1.631
and vc++ 6, and when it gets to the point of linking everything its starts
printing the whole link command over and over again. any1 encountered this
at all?
thanx in advance
ok. i got past my last problem but now i've hit another. i ended up using
dmake, which kept on crashing but i got it to compile after turning my
computer off a few times. now when i go to do dmake install it comes up
with this error
DMAKE.EXE: makefile: line 365: Warning -- Empty recipe for spe
hi. i'm having a little bit of a problem compiling win32::gui. i'm running
activeperl 5.6.1.631 in win98se and using msvc++ 6.
funny thing, when i perl makefile.pl it does it fine but it brings up this:
perl Makefile.PL USERESOURCE=0
Usage: xsubpp [-v] [-C++] [-except] [-prototypes] [-novers
42 matches
Mail list logo