
FB II Compiler
PG PRO
Debugging
Memory
System
Mathematics
Resources
Disk I/O
Windows
Controls
Menus
Mouse
Keyboard
Text
Fonts
Drawing
Sound
Clipboard
Printing
Communication
ASM |
WINDOWS
Access FB window record
I may be mistaken, but I think this info is in the standard toolbox window record, at wndPtr&.wControlList&. You can get the wndPtr& with
GET WINDOW WndID, wndPtr&
I'm sure you can find the format for the control list in the manuals.
Hi all especially Jonathan. I am currently working on my latest whizzo application.
This allows the programmer to draw objects in a window, and then saves them as a system resource that can be called upon when the window is opened. It uses the same techniques as Jukebox Jockey but refines them to improve speed and flexibility.
I am aware that this is similar to PG and dont like the concept of reinventing the wheel, but then the wheel is a particularly elegant artifact.....
I too work in plain vanilla FB.
I am thinking of calling the application Smash Windows in reverence of Flash Windows and spite at MS.
These are the record structures I am currently looking at. The window record holds a handle to the controls.
DIM RECORD ControlRec
DIM ContRect.8
DIM ContInsRect.8
DIM ContDragRect.8
DIM ContNum%
DIM ContType%
DIM ContClass%
DIM ContIDNum%
DIM ContClickable%
DIM ContClickDown%
DIM ContClickUp%
DIM ClickDelay&
DIM ContHndl&
DIM ContResNum%
DIM ContFont%
DIM ContTextSize%
DIM ContTextFace%
DIM ContJust%
DIM ContStatus%
DIM ContBorder%
DIM ContCol%
DIM ContFramed%
DIM ContValue%
DIM ContMin%
DIM ContMax%
DIM ContPage%
DIM ContIsSelected%
DIM UpCol.clRecLen
DIM DnCol.clRecLen
DIM END RECORD _ContRecLen
DIM RECORD WindRec
DIM wWndNum%
DIM wRect.8
DIM wState%
DIM 96 wTitle$
DIM wGW&
DIM wndDev&
DIM wTop%
DIM wLeft%
DIM wIsOn%
DIM wType%
DIM wNeedsGW%
DIM wIsMoveable%
DIM wNumItems&
DIM wNumSelItems&
DIM wSelItem&
DIM wCtrlHndl&
DIM wCtrlHndlSz&
DIM wCtrlResID%
DIM wStrResNum%
DIM wStrIndxSz&
DIM wInDevelop%
DIM wExpand.32
DIM END RECORD _WindRecLen
|