From: Johan L. <jo...@ba...> - 2002-08-26 22:16:07
|
At 08:10 2000-08-27 +0300, ra...@un... wrote: >1. Show up on full screen How to size it to the Desktop (don't know about the entire screen): Win32::GUI::GetDesktopWindow() Returns the handle of the desktop window. GetClientRect() Returns a four elements array defining the windows client area rectangle (left, top, right, bottom) or undef on errors. GetWindowRect() Same, but I think it's the outside. This should get you the values you want: my ($left, $top, $right, $bottom) = Win32::GUI::GetClientRect( Win32::GUI::GetDesktopWindow() ); If you don't want any title bar and border (remember the Exit button :), this is an old post on the subject: ---------- Joe wrote: >Is there a way to hide the title bar and/or frame of a window? I want to get >rid of the bar with the icon, name, and close buttons, and if possible get rid >of the frame around the entire window. If you use The GUI Loft you can easily do this by setting the Window property DialogBox to "Borderless" (it uses the class described below). If not, you can use the class Win32::GUI::BorderlessWindow when you create your Window (it uses the technique described below). It's available in The GUI Loft source distro, in the PPM\AdHoc\lib\Win32\GUI directory. Download here: http://www.bahnhof.se/~johanl/perl/Loft/ Or, if you're more of a copy-paste kind of guy, set the style to -style => 0x80000000, #WS_POPUP when you create your Win32::GUI::Window object. ---------- >3. Run another app based on the image shown and after the app finish >return back to this app system()? /J -------- ------ ---- --- -- -- -- - - - - - Johan Lindström Sourcerer @ Boss Casinos jo...@ba... Latest bookmark: "Taste for Makers" http://www.paulgraham.com/taste.html dmoz (1 of 7): /Computers/Programming/Languages/Lisp |