Register    Login    Forum    Search    FAQ

Board index » General Programming




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: ZPGUI Tutorial - How to Multi GUI Dialog
 Post Posted: Mon Jan 31, 2011 7:27 pm 
Offline
Site Admin

Joined: Sat Feb 19, 2011 1:33 am
Posts: 15
This's basic method to add GUI object to Multi Layer Dialog.

First : declare ZPGuiMultiLayer object.
Code:
   ZPGuiMultiLayer         clsMultiLayer;


Second : Add Other ZPGuiSystem object to ZPGuiMultiLayer.
Code:
   clsMultiLayer.CreateInfoMsg();// unnecessary method to create info message layer
   clsMultiLayer.SetInfoMsgDelay(200);

   clsMultiLayer.AddLayerState(InventoryGUIObject);
   clsMultiLayer.AddLayerState(ShortcutGUIObject);
   clsMultiLayer.AddLayerState(SystemBarGUIObject);


Third : Do GUI loop and Update - this method will call every ZPGuiSystem object DoDlgLoop() and UpdateDlg() method .
And it not require call DoDlgLoop() and UpdateDlg() again.
Code:
   clsMultiLayer.Do_BeginMultiLayer(objMousePosAbs); // Require mouse ABS object of Truevision3d Input.
   clsMultiLayer.DoAutoDetectByMouse(objMousePosAbs);

        // ----------  DO SOMETHING ------------//

   clsMultiLayer.Do_EndMultiLayer();// Update every ZPGuiSystem object.


Fourth : Render GUI.
Code:
   clsMultiLayer.RenderMultiLayer();


Last : release memory
Code:
   clsMultiLayer.DestroyZPMultiLayer();


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 1 post ] 

Board index » General Programming


Who is online

Users browsing this forum: No registered users and 1 guest

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron