The video demonstrates how to use native WPF controls in a migrated WOW Form. I used the full namespaces but it is also possible to define imports to write more compact code: for example, by importing System.Windows.Controls the definition of the slider can change from "System.Windows.Controls.Slider" to just "Slider".
The routine WOWADDEVENTHANDLER can take a third parameter to define the name of the entry point to be called and make the code more compact. Example:
call "WOWADDEVENTHANDLER" using mySlider, "ValueChanged", "COLORS_SLIDER1_VALUECHANGED".
...
ENTRY "COLORS_SLIDER1_VALUECHANGED" using by value sliderEventArgs.
____set displayValue to sliderEventArgs::NewValue::ToString()
____CALL WOWSETPROP USING WIN-RETURN STATIC1-H "TEXT" displayValue
____goback.
Click here to see the migration process: • Cobol-WOW to Visual Cobol for Visual Studi...
Feel free to ask questions in comments.
GoodWorks is a company based on a deep sinergy between best-in-class competences in the mature market related to developing and maintaining business - critical COBOL applications and a young and creative approach in finding innovative solutions that best fits modern software development needs.
Linkedin: / 2759573