| WideStudio Programming Guide | WideStudio Index Table of contents

> ## Sample:2 (Various kinds of classes)

> Here,the following show the instances of the various kinds of WideStudio classes.
> The source code is ws/samples/sample/Ruby/sample.prj. Please load it and build it by the application builder.
> this sample shows the following things.
> - To display sample dialogs.
> - To display value by the slider.
> - To display the text input demonstrations.
> - To display the combo-box demonstrations
> - To select a value by option menu.
> - To display a list of texts.

> [A view of the application window]
> - To display the dialogs
>   The button which displays "Dialog" has a event procedure which trigger is WSEV_ACTIVATE and which function is btn1_ep(). This procedure is executed by clicking of the button,and pops up the message dialog: [newmess_002] and displays the return value from it on the label:[newvlab_001].
> - To display the value of the slider
>   The slider: [newvsli_000] has a event procedure which trigger is WSEV_VALUE_CH and which function is slider1_ep(). This procedure is executed by sliding of the slider,and displays the slider value on the label:[newvlab_002].
> - To input strings
>   The button which displays "Input text" has a event procedure which trigger is WSEV_ACTIVATE and which function is btn2_ep(). This procedure is executed by clicking of the button,and gets the string from the input field:[newvifi_004] and display it on the label:[newvlab_005].
> - To display the value of the slider (2)
>   The slider2: [newvsli_006] has a event procedure which trigger is WSEV_VALUE_CH and which function is slider2_ep(). This procedure is executed by sliding of the slider,and displays the slider value on the meter:[newvmet_008].
> - A demonstration of the combo box
>   It shows the demonstration of the combo box.
> - A demonstration of the option menu
>   The option menu which displays "Choose" has a event procedure which trigger is WSEV_VALUE_CH and which function is opt1_ep(). This procedure is executed by choosing of the menu,and displays the choose value on the label:[newvlab_011].
> - A demonstration of the list
>   The button which displays "Add" has a event procedure which trigger is WSEV_ACTIVATE and which function is btn3_ep(). This procedure is executed by clicking of the button,and adds a string to the list:[newlist_012].
>   The button which displays "Clear" has a event procedure which trigger is WSEV_ACTIVATE and which function is btn4_ep(). This procedure clears the list:[newlist_012].

> [A view of the application window]

Document Release 3.70 for WideStudio ver 3.70, May 2004

WideStudio documents index | Table of contents

Copyright(C) WideStudio Development Team, 1999-2004 | Last modified: May 25, 2004