1. Win32lib window question.
- Posted by Mark Brown <mabrown at SENET.COM.AU> Jun 11, 2000
- 468 views
- Last edited Jun 12, 2000
------=_NextPart_000_0007_01BFD3F9.F0955860 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi everyone, I'm working on a program using win32lib that has a window that I want to always be at the front of all other windows. I looked in the Windows API help and in Win32lib docs etc but couldn't=20 find a solution. Is there a windows style or something? Thanks in advance Mark ------=_NextPart_000_0007_01BFD3F9.F0955860 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT size=3D2>Hi everyone,</FONT></DIV> <DIV> </DIV> <DIV><FONT size=3D2>I'm working on a program using win32lib that has a = window=20 that</FONT></DIV> <DIV><FONT size=3D2>I want to always be at the front of all other = windows. I=20 looked in</FONT></DIV> <DIV><FONT size=3D2>the Windows API help and in Win32lib docs etc but = couldn't=20 </FONT></DIV> <DIV><FONT size=3D2>find a solution. Is there a windows style or=20 something?</FONT></DIV> <DIV> </DIV> <DIV><FONT size=3D2>Thanks in advance</FONT></DIV> <DIV> </DIV> ------=_NextPart_000_0007_01BFD3F9.F0955860--
2. Re: Win32lib window question.
- Posted by "Thomas Parslow (PatRat)" <patrat at INAME.COM> Jun 12, 2000
- 466 views
Use SetWindowPos --CODE--- constant USER32 = open_dll("user32.dll") constant fncSetWindowPos = ,C_ULONG,C_ULONG}) --END CODE-- Thomas Parslow (PatRat) ICQ #:26359483 Rat Software http://www.ratsoft.freeserve.co.uk/ Get paid to surf the web! http://members.tripod.co.uk/paid2surf/ ----- Original Message ----- From: Mark Brown <mabrown at senet.com.au> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Sunday, June 11, 2000 2:38 PM Subject: Win32lib window question. Hi everyone, I'm working on a program using win32lib that has a window that I want to always be at the front of all other windows. I looked in the Windows API help and in Win32lib docs etc but couldn't find a solution. Is there a windows style or something? Thanks in advance Mark
3. Re: Win32lib window question.
- Posted by Brian Broker <bkb at CNW.COM> Jun 12, 2000
- 465 views
On Sun, 11 Jun 2000 23:08:22 +0930, Mark Brown wrote: >Hi everyone, > >I'm working on a program using win32lib that has a window that >I want to always be at the front of all other windows. I looked in >the Windows API help and in Win32lib docs etc but couldn't >find a solution. Is there a windows style or something? > >Thanks in advance > >Mark > Here's a solution: In David's latest Bleeding Edge release (at http://www.lanset.com/dcuny/download/w32v50c.zip ) there is a new function called 'createEx' that lets you create windows with extended attributes. The attribute that you are looking for is WS_EX_TOPMOST (Hey David, could you add more WS_EX_ constants to win32lib?) Here is a small example: -- WS_EX_TOPMOST Specifies that a window created with this style should be -- placed above all non-topmost windows and should stay above them, even -- when the window is deactivated. To add or remove this style, use the -- 'SetWindowPos' function. (discussed earlier by PatRat) include Win32Lib.ew constant WS_EX_TOPMOST = 8, Win = createEx( Window, "Topmost", 0, Default, Default, 200, 300, 0, WS_EX_TOPMOST ) WinMain( Win, Normal ) -- Brian
4. Re: Win32lib window question.
- Posted by "Cuny, David at DSS" <David.Cuny at DSS.CA.GOV> Jun 12, 2000
- 467 views
Brian Broker wrote: > Hey David, could you add more WS_EX_ constants to win32lib? My personal preference is to hide the Win32 dependancies as much as possible. What I'd prefer to do instead is add a couple new window classes: Modal, Palette, etc. I'm also continuing to toy with the idea of integrating the key handling into a single routine, instead of the confusion onKeyPress/onKeyDown arrangement that it has now. It'll probably be a couple months before I get a chance to start work on Win32Lib in earnest again. -- David Cuny