Re: [perl-win32-gui] changing windows properties

2000-12-17 Thread Jeremy Blonde

Thanks for your help Jon.

I was able to change certain window properties, but
not the -topmost property.  It's not that big of a
deal to re-create the window, so I can live with it
for now.

Here's another situation, I use a window with a
toolbar to fire dialog boxes.  Usually when I click
the close button on one of those dialogs, the dialog
closes like it should, however in some cases the
dialog doesn't close, but does return the focus to the
main window.  I assume it's okay to use the _Terminate
event when these dialogs close and every dialog is
created the same way.  Before the dialogs close I try
to capture the -Top, -Left, and save them so that
when the dialog is reopened it opens in the same
location.

Has anyone faced a similar situation?  I can supply my
code if you'd like to see what I'm doing.

Has someone successfully implemented tooltips?  I
would like to use tooltips, but so far I haven't been
able to get the tip to display when the mouse is over
the object.  I'd like to get it working for my toolbar
buttons.  If someone has working code they could post,
I'd be a very happy person.

Thanks,
Jeremy Blonde
[EMAIL PROTECTED]


--- Jonathan Southwick [EMAIL PROTECTED] wrote:
 I don't know why this doesn't work for some windows
 properties but it does
 for others, but here is an idea of what you want to
 do:
 
 $MainWindow-{-left} = 30;
 
 This will move the window to the position 30 pixels
 from the left side of
 the screen.  i couldn't get this to work for a
 window using the -topmost =
 1 option or using -addexstyle = WS_EX_TOPMOST but
 maybe I am way off on
 this one.
 
 Jonathan Southwick
 [EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/



Re: [perl-win32-gui] changing windows properties

2000-12-15 Thread Jonathan Southwick

I don't know why this doesn't work for some windows properties but it does
for others, but here is an idea of what you want to do:

$MainWindow-{-left} = 30;

This will move the window to the position 30 pixels from the left side of
the screen.  i couldn't get this to work for a window using the -topmost =
1 option or using -addexstyle = WS_EX_TOPMOST but maybe I am way off on
this one.

Jonathan Southwick
[EMAIL PROTECTED]


- Original Message -
From: "Jeremy Blonde" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 15, 2000 1:31 PM
Subject: Re: [perl-win32-gui] Changing the font size


 And to go along with that..

 Is there a way to change the properties of a window
 after it has been created?  I'd like to be able to
 allow -topmost to be turned on and off.  I can get it
 to work if I re-create the window, but I'd like to
 avoid doing that if possible.

 Also is there a way to set the checkmark for menu
 items after the menu has been created?  Again, I can
 get it to work if I re-create the window.

 Thanks,
 Jeremy Blonde

 --- Sean Healy [EMAIL PROTECTED] wrote:
  Here's something else I couldn't find in the
  archives:
 
  Is it possible to change the size in a font object?
  I've tried using the
  Change method to change the size and then resetting
  the font using the
  SetFont method, but it doesn't work.  I don't want
  to create a whole bunch
  of font objects just so I can have different sizes,
  but that may be the only
  solution.  Any ideas?
 
 _
  Get your FREE download of MSN Explorer at
  http://explorer.msn.com
 


 __
 Do You Yahoo!?
 Yahoo! Shopping - Thousands of Stores. Millions of Products.
 http://shopping.yahoo.com/