2. Re: Flags? What flags?
- Posted by euman at bellsouth.net Oct 19, 2001
- 457 views
flags are extra characteristics or identifying characteristics that would tell windows how you for instance would like a window to look or event act. The MS-SDK short for "Microsoft Software Development Kit" currently the XP version is out that will have list that tell you what these flags are as they pertain to window objects, dialogs, windows, controls etc..etc... Euman euman at bellsouth.net ----- Original Message ----- From: "Evan Marshall" <evan at net-link.net> To: "EUforum" <EUforum at topica.com> Sent: Friday, October 19, 2001 12:45 Subject: Flags? What flags? I'm trying to write my first Windows program. I'm using win32lib. In trying to create a window I see the parameters which need to be passed are the class, title, parent, location, size, and flags. Is there a list of the possible flags? I haven't been able to find them in the docs. I realize that I could be going blind, so any nudges or swift kicks to point me in the right direction would be greatly appreciated.
4. Re: Flags? What flags?
- Posted by Dan Moyer <DANIELMOYER at prodigy.net> Oct 19, 2001
- 465 views
Evan, Here is a list of at least some of the style flags for windows; I got them from a file named "Winconst.ew" which I guess I got from the archives. They are "constants", many of which are probably declared in Win32Lib; if you try to use one and get a hiccup, try declaring that one as a constant in your program with the value you see below. The way to use them in a "create window" statement is to put the names into a sequence where the flags are supposed to go, depending on what you *want* the window to be like, like this: constant aWindow = create( Window, "Child", WinStyles, 0, 0, 136, 52, {WS_THICKFRAME,WS_SYSMENU,WS_CAPTION,WS_MINIMIZEBOX,WS_MAXIMIZEBOX,WS_CHILD} ) There are two programs included with Win32Lib which could help: RunDemos.exw, and Wstyles.exw. RunDemos should show you all the demos in one place, allowing you to run and alternatively view the code, and Wstyles is a demo which shows some use of different styles. Judith Evans is including a "style selector" feature in an upcoming version of the IDE which could also be a *big* help. (It's possible that the RunDemos.exw currently included with Win32Lib is not the latest version, it may go by a slightly different name, "WinDemos", or something like that; I think Derek has the latest version at his own website, if you find I'm right, or I could send the latest to you direct if you want.) WS_BORDER = #800000, WS_CAPTION = #C00000, WS_CHILD = #40000000, WS_CHILDWINDOW = #40000000, WS_CLIPCHILDREN = #2000000, WS_CLIPSIBLINGS = #4000000, WS_DISABLED = #8000000, WS_DLGFRAME = #400000, WS_GROUP = #20000, WS_HSCROLL = #100000, WS_ICONIC = #20000000, WS_MAXIMIZE = #1000000, WS_MAXIMIZEBOX = #10000, WS_MINIMIZE = #20000000, WS_MINIMIZEBOX = #20000, WS_OVERLAPPED = 0, WS_OVERLAPPEDWINDOW = #CF0000, WS_POPUP = #80000000, WS_POPUPWINDOW = #80880000, WS_SIZEBOX = #40000, WS_SYSMENU = #80000, WS_TABSTOP = #10000, WS_THICKFRAME = #40000, WS_TILED = 0, WS_TILEDWINDOW = #CF0000, WS_VISIBLE = #10000000, WS_VSCROLL = #200000, Hope this helps, Dan Moyer ----- Original Message ----- From: "Evan Marshall" <evan at net-link.net> To: "EUforum" <EUforum at topica.com> Sent: Friday, October 19, 2001 10:45 AM Subject: Flags? What flags? I'm trying to write my first Windows program. I'm using win32lib. In trying to create a window I see the parameters which need to be passed are the class, title, parent, location, size, and flags. Is there a list of the possible flags? I haven't been able to find them in the docs. I realize that I could be going blind, so any nudges or swift kicks to point me in the right direction would be greatly appreciated.
5. Re: Flags? What flags?
- Posted by Dan Moyer <DANIELMOYER at prodigy.net> Oct 19, 2001
- 489 views
Evan, I forgot, here's some flags for the "extended" styles of windows, which are made similarly, but they have yet another flag space and are created just slightly differently, using "createEx (these new flags go where you see the *last* "0"): constant MaxWindow = createEx( Window, "Maximize Button", WinStyles, 0, 0, 136, 52, {WS_THICKFRAME,WS_MAXIMIZEBOX,WS_SYSMENU}, 0) WS_EX_ACCEPTFILES = 16, WS_EX_APPWINDOW = #40000, WS_EX_CLIENTEDGE = 512, WS_EX_CONTEXTHELP = #400, WS_EX_CONTROLPARENT = #10000, WS_EX_DLGMODALFRAME = 1, WS_EX_LEFT = 0, WS_EX_LEFTSCROLLBAR = #4000, WS_EX_LTRREADING = 0, WS_EX_MDICHILD = 64, WS_EX_NOPARENTNOTIFY = 4, WS_EX_OVERLAPPEDWINDOW = #300, WS_EX_PALETTEWINDOW = #188, WS_EX_RIGHT = #1000, WS_EX_RIGHTSCROLLBAR = 0, WS_EX_RTLREADING = #2000, WS_EX_STATICEDGE = #20000, WS_EX_TOOLWINDOW = 128, WS_EX_TOPMOST = 8, WS_EX_TRANSPARENT = 32, WS_EX_WINDOWEDGE = 256, Dan Moyer ----- Original Message ----- From: "Evan Marshall" <evan at net-link.net> To: "EUforum" <EUforum at topica.com> Sent: Friday, October 19, 2001 10:45 AM Subject: Flags? What flags? I'm trying to write my first Windows program. I'm using win32lib. In trying to create a window I see the parameters which need to be passed are the class, title, parent, location, size, and flags. Is there a list of the possible flags? I haven't been able to find them in the docs. I realize that I could be going blind, so any nudges or swift kicks to point me in the right direction would be greatly appreciated.