IonicWind Software

IWBasic => Tutorials => Creating a Project => Topic started by: LarryMc on October 18, 2014, 04:28:55 AM

Title: 7. Adding Controls
Post by: LarryMc on October 18, 2014, 04:28:55 AM
I've added some controls to the main window(w1) along with a basic message handler to handle them all.
I then duplicated all the controls in the dialog(dlg1) along with its basic message handler.
It was easier and faster to just duplicate the controls instead of creating something that looked entirely different.

Besides, the controls will be perfectly suitable for the purposes of this tutorial.

At this time only three button controls do anything.
The 'Close' buttons on both the main window(w1) and the dialog(dlg1) do exactly what they say.
On w1 the 'Test 1' button will open the dialog with a DOMODAL command.

Attached are all the files necessary to open the Project and compile it.
Just download it to its own folder and then select File > Open Project from the main menu and select 'myApp.iwp'.

A challenge:
Look at all the source code carefully and see if you think I have placed some code it the wrong location based upon what I have said in previous sections of the tutorial.
If you think you found it post what it is in the Comments topic.

Happy Hunting!!