I am trying to figure out how to work with a multiple-column listbox.
The doco clearly shows how to create the Listbox as multi-colum:
-multicolumn => 0/1 (default 0)
but it says nothing about how to add/insert multicolumn items. Also, the
Win32::GUI::Listbox::Item documentation is, shall we
ave an event trigger so I could fetch the requested
information.
Is this possible? Should I be (ab)using a ListView for this?
Eric J. Roode
-Original Message-
From: Robert May [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 06, 2006 3:38 PM
To: Roode, Eric
Cc: perl-win32-gui-users@l
What??! You mean you couldn't understand the crystal-clear Win32::GUI
docs? What's wrong with you?
Just kidding. The Win32::GUI docs are awful.
On that page, [X,Y]+ refers to a set of points (one point for each
vertex of the polygon). You pass the points as X, Y
coordinates in one long list
For what it's worth, I have always been unclear on what the Win32::GUI
doco means by "the event is not passed to the default event processor".
Any clarification, anywhere, would be useful.
Eric
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Glenn W Mun
Say I create a dll containing a library of custom controls (written in
C++, C#, whatever). How can I use these controls in a Win32::GUI
program?
Thanks in advance,
Eric
gt;'Howdy');
$mw->Show;
Win32::GUI::Dialog;
exit;
sub mainwin_Terminate
{
return -1;
}
Any illumination you can give would be much appreciated.
Eric
-Original Message-
From: Robert May [mailto:[EMAIL PROTECTED]
Sent: Friday, May 04, 2007 4:45 PM
To: Glenn Linderman
How do I compute the size (amount of screen real-estate) that a given
chunk of text will be, in a given font?
The reason I ask is that I am trying to change the text of a label, and
using the Text or Change methods do not resize the control; the control
stays at its original size and truncates any
I have the taskbar docked along the left side of the desktop. When I
start Win32::GUI programs that do not explicitly position their main
window, the main window generally starts way over on the left side of
the screen, obscured by the taskbar. I then have to move it to the
right in order to use
>
>> How do I compute the size (amount of screen real-estate) that a given
>> chunk of text will be, in a given font?
>>
>> The reason I ask is that I am trying to change the text of a label,
>> and using the Text or Change methods do not resize the control; the
>> control stays at its origina
On 17 July 2008, Sean Healy wrote:
>
> ($x, $y) = $Label->GetTextExtentPoint32($string);
Upon further experimentation, there is something not quite right with
that. The width it returns is too wide. There seems to be some sort
of per-character skew -- short strings are very accurate; longer
str
On 18 July 2008, Robert May wrote:
>
>2008/7/18 Roode, Eric <[EMAIL PROTECTED]>:
>> On 17 July 2008, Sean Healy wrote:
>>> ($x, $y) = $Label->GetTextExtentPoint32($string);
>>
>> Upon further experimentation, there is something not quite right with
> On 17 July 2008, Sean Healy wrote:
> [Eric Roode wrote:]
> >
> > How can I start my programs at the leftmost part of the usable
desktop?
> > How can I ensure that my programs behave sanely with respect to
users'
> > taskbar configuration?
>
> MSDN lists a function called SystemParametersInfo()
I just spent the past few hours debugging this. I have narrowed down
the problem to the scope of the font object.
Here are two simple, complete test programs.
example 1
use Win32::GUI;
my $main = Win32::GUI::Window->new
(
-name => 'Main',
-width => 350,
-height =>
When some of my Win32::GUI programs exit, I get the above error
message. Trapping the error (via %SIG) gives no useful information,
as caller() reports that the error occurred at "main.pl, line 0".
Searching the web, I found a tantalizing almost-solution in this thread:
http://old.nabble.com/Cras
14 matches
Mail list logo