Copyright ® (1997-2013) EDMGROUP Pty Ltd - EZY Prolog Reference |
Code Expert "GUI" button generates Prolog terms and necessary code to get/set values of GUI element or selected layout.
For example, if you need to insert code inside button event handler:
handler_ok(_,e_control(WINDOW,_,_,activated),0):-
!.
Do the following:
Select required element (or the whole tree) and double click on it
System will generate EZY Prolog code with term template, which corresponds selected GUI element or layout.
handler_ok(_,e_control(WINDOW,_,_,activated),0):-
/* USE THIS CODE TO RECEIVE VALUES FROM {Check Box} ELEMENT */
ADDRESS_CHECK_BOX = ["TOP_FRAME","Check Box"]
ezy_object_data(WINDOW,ADDRESS_CHECK_BOX,RESULT_Check_Box)
RESULT_Check_Box =
ezy_reply(["TOP_FRAME","Check Box"]/*ADDRESS*/
ezy_integer(1)/* EZY_ITEM 0*/
) /*
end of the ezy_reply */,
!.
Generated code will have necessary comments, which simplify navigation inside (sometimes) complex GUI terms.
Copyright © 1997-2013 EDMGROUP (Australia)