![]() |
||||||
![]() Home ![]() |
Creating and showing Toolbox objects automaticallyA very useful feature of the Toolbox is that objects can be created and shown without the need to write code. This example displays a window when it is double-clicked |
|||||
![]() | ||||||
![]() |
Create a shell application via the New app entry in AppBasic's iconbar menu | |||||
![]() |
Edit the application's resfile so that it contains only a window template
|
|||||
![]() |
Set the window to be auto-create and auto-show
|
|||||
![]() |
Apply the Quit_Quit event to the action of closing the window
|
|||||
![]() |
Save the resfile to the application's resources directory A keypress shortcut for opening the save dbox is to press function key F3 (when the resfile display has the input focus). Otherwise saving can be performed via the resfile display's popup menu. N.B. The standard name res must be used for the resfile. |
|||||
![]() |
Run the application The window will open on the desktop exactly in the position and size it was when last viewed in the resfile editing process. |
|||||
![]() |
Worked solution |