Subwindows are very powerful objects. And you might have used subwindows already for years without being aware of their hidden strengths. Ever wondered what the $dataname property is good for? This is what the manual says: ‘normally you should leave the $dataname property empty‘. And in fact, you can do useful things without the $dataname property. However, imagine you could assign a variable to a subwindow’s $dataname, as you do with entry fields. Imagine, the subwindow could not only read this variable, but also change it and hand it back to your main window variable, and this all ‘out of the box’ – without further coding in your main window.
We will investigate the utilization of the $dataname property in this lecture, and look behind the scenes how subwindows really work. We will learn how to transmit data into the subwindow just by assigning a variable to $dataname, reading and modifying its contents in the subwindow, and send it back to the main window variable, step by step and with useful examples. In the end, you will be able to create your own widgets in Studio – your own fully portable and reusable window elements, designed for your very own needs in your applications. Did you ever miss a specific window element in Studio? Now go and create it on your own.
This session is for beginners and advanced Studio developers, and hopefully will leave you with tons of new ideas.