(Up to LGI Documentation)

GSubMenu

class GSubMenu
{
public:
    // List
    bool RemoveItem(GMenuItem *Item)
    bool RemoveItem(int i)
    GMenuItem *AppendItem(char *Str, int Id, bool Enabled)
    GMenuItem *AppendSeparator()
    GMenuItem *ItemAt(int i)
    GSubMenu *AppendSub(char *Str)
    void Empty()

    // Other
    GMenuItem *GetParent()
    int Float(GWindow *Parent, int x, int y, bool Left = true)
    // _Constructor
    GSubMenu(char *name = "", bool Popup = true)

    // Other
    HMENU Handle()
    // _Constructor
    GSubMenu(char *name = "")
  };

GSubMenu::RemoveItem

bool RemoveItem(GMenuItem *Item)

Argument Description
GMenuItem *Item

Removes a specific item.


GSubMenu::RemoveItem

bool RemoveItem(int i)

Argument Description
int i

Removes an item by index.


GSubMenu::AppendItem

GMenuItem *AppendItem(char *Str, int Id, bool Enabled)

Argument Description
char *Str
int Id
bool Enabled

Appends an item to the menu.


GSubMenu::AppendSeparator

GMenuItem *AppendSeparator()

Appends a separator.


GSubMenu::ItemAt

GMenuItem *ItemAt(int i)

Argument Description
int i

Returns the item at an index.


GSubMenu::AppendSub

GSubMenu *AppendSub(char *Str)

Argument Description
char *Str

Appends a sub menu.


GSubMenu::Empty

void Empty()

Clears the menu of items.


GSubMenu::GetParent

GMenuItem *GetParent()

Returns the parent item.


GSubMenu::Float

int Float(GWindow *Parent, int x, int y, bool Left = true)

Argument Description
GWindow *Parent
int x
int y
bool Left = true

Opens the menu as a context menu. Returns the item selected or 0.


GSubMenu::GSubMenu

(Platform: Win32)
GSubMenu(char *name = "", bool Popup = true)

Argument Description
char *name = ""
bool Popup = true

Constructs the object


GSubMenu::Handle

(Platform: Win32)
HMENU Handle()

Returns the HMENU


GSubMenu::GSubMenu

(Platform: BeOS)
GSubMenu(char *name = "")

Argument Description
char *name = ""

Construct the object


Built: 13/9/2001 2:28:31 PM
© 2001 Matthew Allen
Lgi HomePage