Re: Flags? What flags?

new topic     » goto parent     » topic index » view thread      » older message » newer message

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.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu