Here is the code, may you help me?
Code: Select all
Function p_EventFunc(msg)
Switch msg.action
Case "RapaGUI":
Switch msg.attribute
Case "Selected":
Switch msg.id
Case "nc_p":
p_CreateDialog()
p_OpenDialog()
EndSwitch
Case "Pressed":
Switch msg.id
Case "cancel":
p_CloseDialog()
EndSwitch
EndSwitch
EndSwitch
EndFunction
Code: Select all
InstallEventHandler({RapaGUI = p_EventFunc})