Easy to Create, Easy to Change - Easy to use!


DataEase 8.2 - Expanded Functionality SetState() - ClickObject added (Ver. 8.2.0.1604)


Started by DataEase
You will need to Sign In to be able to comment on the Blog!

DataEase 8.2 - Expanded Functionality SetState() - ClickObject added (Ver. 8.2.0.1604)

Download Sample

SetState() has been one of the most useful additions to DataEase 8 and we have expanded the scope of it yet again.

It already show and hide objects, enable and disable them and now you can also Click them with SetState().

So why is this useful? All objects have a click event but this might be most useful on buttons. One things that is missing from DFW is for you do define your own functions in a form. With ExecDQL (Especially MemoExecDQL and LabelExecDQL) you have this ability, but wouldn't it be nice if you could define a function on a button (hidden if you like) and then use it from anywhere simply by clicking the button via code?

This is what SetState("Objectname",4) does.

To Showcase this feature we have made a small sample app. To make it more interesting it will also showcase all the other states of SetState(), SetStyle(), SetFocus(), SetLabelText(), the new feature of starting with Startup Document and still be able to switch to Design Mode, Placeholder@ and last but not least Startup.exe.

Simply unzip this app anywhere and click on Startup in the catalogue, and you will be taken directly to the sample code/view.

Enjoy!

Written by DataEase 20/08/14 at 16:59:56 Dataease [{8}]FIVE
/static/images/blank.png