David Murphy@ITS
10/03/99 08:46
I downloaded the non-PPM/Activestate version from Aldo's site. In that
distribution is some documentation I can't find in the PPM distribution. It's
very rough, but here's what I found...
HCLASS RegisterClassEx(%options)
NOTE: this is used by the "new Win32::GUI::Class" function,
and should not be called directly.
%options:
-extends (name of the class to extend)
-name (name for the class)
-color (HBRUSH, to be defined...)
-visual (0/1) NOTE: 0 is obsoleted, uses a different message loop...
-widget (name of widget to subclass, actually only "Button" or
"Listbox")
-style ???
-icon (HICON)
-cursor (HCURSOR)
-menu (string)
HWND Create(%options)
NOTE: this is used by the "new Win32::GUI::..." functions,
and should not be called directly.
%options common to all controls:
-class (Win32::GUI::Class or classname)
-text (string)
-title == -text
-style (DWORD, not recommended)
-exstyle (see -style)
-left
-top
-width
-height
-parent (HWND)
-menu (Win32::GUI::Menu or HMENU)
-instance (HINSTANCE, not recommended)
-data (LPVOID, not recommended)
-name (string)
-function (string, obsoleted)
-font (Win32::GUI::Font or HFONT)
-visible (0/1)
NOTE: this is by default 0 for Win32::GUI::Window and ::DialogBox,
1 for all the other controls
-disabled (0/1)
-group (0/1)
-tabstop (0/1)
%options for Win32::GUI::TextField
-password (0/1)
%options for Win32::GUI::Button, ::Checkbox and ::RadioButton
-align (left/center/right)
-valign (top/center/bottom)
%options for Win32::GUI::ListBox
-multisel (0/1/2)
%options for Win32::GUI::TabStrip
-multiline (0/1)
-imagelist (Win32::GUI::ImageList or HIMAGELIST)
%options for Win32::GUI::ListView
-imagelist (Win32::GUI::ImageList or HIMAGELIST)
-showselalways (0/1)
%options for Win32::GUI::TreeView
-lines (0/1)
-rootlines (0/1)
-buttons (0/1)
-imagelist (Win32::GUI::ImageList or HIMAGELIST)
-showselalways (0/1)
There's nothing really groundbreaking, but it's nice know them all. As for my
problems with checkboxes, it turned out it was a stray comma, not the options,
but at least I've found them now...
HTH
--
David Murphy
-I.T.S-
[EMAIL PROTECTED]