[perl-win32-gui-users] Listbox multi-column

2006-08-25 Thread Roode, Eric
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

Re: [perl-win32-gui-users] [win32-gui] Listbox multi-column

2006-09-06 Thread Roode, Eric
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

Re: [perl-win32-gui-users] Win32-GUI-DC Polygon

2007-02-22 Thread Roode, Eric
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

Re: [perl-win32-gui-users] disabling the check on a checkbox???

2007-04-24 Thread Roode, Eric
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

[perl-win32-gui-users] Using custom controls/widgets

2007-05-04 Thread Roode, Eric
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

Re: [perl-win32-gui-users] Using custom controls/widgets

2007-05-07 Thread Roode, 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

[perl-win32-gui-users] Text size

2008-07-17 Thread Roode, Eric
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

[perl-win32-gui-users] Usable screen coordinates

2008-07-17 Thread Roode, Eric
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

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

2008-07-17 Thread Roode, Eric
> >> 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

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

2008-07-18 Thread Roode, Eric
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

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

2008-07-18 Thread Roode, Eric
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

Re: [perl-win32-gui-users] Usable screen coordinates

2008-07-18 Thread Roode, Eric
> 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()

[perl-win32-gui-users] Font must remain in scope??

2008-07-23 Thread Roode, Eric
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 =>

[perl-win32-gui-users] Can't call method "STORE" on an undefined value during global destruction

2011-05-20 Thread Roode, Eric
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