%ch - Child Window

Purpose

Child window format - inserts a child window.

Syntax

winio@('%ch[options]',ctrl)
integer ctrl     (input)

Description

ctrl is a variable used with %`lw. The options available are

 
hscrollbar Display a horizontal scroll-bar
vscrollbar Display a vertical scroll-bar
  When scroll-bars are shown then the controls are presented in a sheet (%sh (Property Sheet)) followed by a main window that uses %ch with %sz (Window Size) to set the size. Use %ww (Window Style)[not_fixed_size] to provide a pivoting action to the main window.

Example

 
program main
integer ii, ctrl, wd, ht
!child window with controls...
ii=winio@("%sh&",ctrl)
!Add your controls here...
ii=winio@(" ")
!Main window to display child with vertical scroll bar...
wd = 280; ht = 150
ii=winio@("%sz&",wd,ht)
ii=winio@("%ch[vscrollbar]",ctrl)
end program

See also

%lw (Leave Window Open)

 

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited