Progress
Programming
Handbook
Example Procedure
The following example procedure,
p-slider.p
, defines an INTEGER variable, num–rows, which is viewed as a slider. The slider’s range is initially set as 1 to 20. However, before the widget is realized, the maximum value is adjusted based on the current window size.
When you choose the Show Customers buttons, the size of the cust–frame is adjusted based on the current value of the slider. The customer records are then displayed in that frame.
For example, if you set the slider to 10 and press GO, the screen appears as follows:
![]()
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |