To create a ZealOS graphic ctrl, you define callback functions and insert a CCtrl structure in the CTask queue.  See 
::/Demo/Graphics/Slider.ZC, ::/Demo/Graphics/ScrollBars.ZC and TermBttnNew.  There is a template-code ctrl generator, if you 
press <CTRL-SHIFT-L>.