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 the font size

2000-12-15 Thread Jeremy Blonde

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/



[perl-win32-gui] Re:

2000-07-13 Thread Jeremy Blonde

Your suggestion doesn't work.

Perhaps next time, you could forgo the lecture and
instead address the question.

Thank you,
Jeremy Blonde

--- [EMAIL PROTECTED] wrote:
 The problem is that style is not a string, it is a
 number.
 
 $style = "WS_CAPTION | WS_SYSMENU";
 is not the same as
 $style = WS_CAPTION | WS_SYSMENU;
 
 The first (incorrect) format is a string, the second
 is a number.
 
 This problem has nothing to do with XML, by throwing
 it in your question you
 are  confusing the issue.
 
 
 Indy Singh
 IndigoSTAR Software -- www.indigostar.com
 
 
 - Original Message -----
 From: Jeremy Blonde [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Monday, July 10, 2000 11:11 PM
 Subject: [perl-win32-gui] Using XML file for window
 layout
 
 
  I'm trying to use an XML file to hold the
 properties
  of the windows in my Perl script.  (No major
 reason
  for this, I just throught it would be a cool way
 to
  learn how to use XML with Perl)
 
  However, it seems that if I store the window style
 in
  a variable, and try to use the variable to set the
  window style, no style is applied to the window
 when
  it is created.  If I hard code the window style,
 then
  it appears correctly.
 
  Here is the basic layout of the XML file:
  windows
window type="Window Name"
  property type="name" value="Window
 Name"/
  property type="icon" value="Icon"/
  property type="version"  value="Version
 Number"/
  property type="modified" value="Modified
 Date"/
  property type="title"value="Window
 Title"/
  property type="style"value="Window
 Styles"/
  property type="left" value="300"/
  property type="top"  value="200"/
  property type="width"value="350"/
  property type="height"   value="250"/
/window
  /windows
 
  The value for the Window Styles would be:
  "WS_CAPTION | WS_SYSMENU" (or something similar).
 
  $WindowHandle = new GUI::DialogBox (
-name= $Hash{name},
-title   = $Hash{title},
-style   = $Hash{style}, # No style is applied
-style   = WS_CAPTION | WS_SYSMENU, # Works
 fine
-left= $Hash{left},
-top = $Hash{top},
    -width   = $Hash{width},
-height  = $Hash{height},
  );
 
  Is this something that just cannot be done?  Or do
 I
  need to do something differently?  Does anyone
 have
  any suggestions?
 
  Thanks for your help,
  Jeremy Blonde
  [EMAIL PROTECTED]
 
  __
  Do You Yahoo!?
  Get Yahoo! Mail - Free email you can access from
 anywhere!
  http://mail.yahoo.com/
 
 
 
 


__
Do You Yahoo!?
Get Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/