Wide Studio Programmer's Guide

Wide Studio Home
Up to


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/EE/sample/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 combobox 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 dislays 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 dislpay 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 dislays 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 dislays the choosed 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 1.3

For Use with Wide Studio Release 1.3, Summer 2001


Wide Stuido Home | Up to

Copyright(C) T. Hirabayashi, 2000-2001 Last modified: August 20, 2001