Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
63 user(s) are online (48 user(s) are browsing Forums)

Members: 2
Guests: 61

billyfish, kas1e, more...
Support us!
Recent OS4 Files
OS4Depot.net
Report message:*
 

BOOPSI Menu Class: first update

Subject: BOOPSI Menu Class: first update
by trixie on 2014/7/3 11:53:34

Yesterday I posted my first update for the BOOPSI Menu Class project (developed for OpenAmiga.org):

"First step taken. The skeleton code for the class is ready. The class library is initialized and the method dispatcher is in place. A simple test program successfully opens the class from disk and instantiates an empty object."

However, I couldn't sleep somehow so I ended up coding overnight In addition to the above, the class now successfully instantiates a full hierarchy of menu objects, like this one below:

menuObj MenuObject,
          
MENU_Label,    "Menu strip",

          
// Menu: Project
          
MENU_AddChildMenuObject,
             
MENU_Label"Project",
             
MENU_AddChildMenuObject,
                
MENU_Label"New",
             
End,
             
MENU_AddChildMenuObject,
                
MENU_Label"Open",
             
End,
          
End,

          
// Menu: Edit
          
MENU_AddChildMenuObject,
             
MENU_Label"Edit",
             
MENU_AddChildMenuObject,
                
MENU_Label"Copy",
             
End,
          
End,
End;


A little test program I've written shows (using a listbrowser) how this code translates into an internal hierarchical structure the class will use to build the menu from. You can see that all objects have been instantiated all right and that they are in the right places:

Resized Image


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project