SetToolBarButtonData & SetMenuItemData
Posted: Sun Oct 19, 2008 7:24 am
Hi,
I've a little wish again.
To have possibilities for setting and getting of userdefined datas for MenuItems and ToolBarButtons, would be very cool.
An equivalent to SetGadgetItemData/GetGadgetItemData, quasi.
SetToolBarButtonData (#ToolBar, #ButtonID, *Data )
*Data = GetToolBarButtonData (#ToolBar, #ButtonID )
SetMenuItemData (#Menu, #ItemID, *Data )
*Data = GetMenuItemData (#Menu, #ItemID )
In Windows, there wouldn't be any problem to implement this features.
TBBUTTONINFO has a member, called "lParam".
And MENUITEMINFO has a member, called "dwItemData".
Both are predestinated for implementation of such features.
But, I don't now how to do on OS X or Linux.
Best regards
Wolf
I've a little wish again.
To have possibilities for setting and getting of userdefined datas for MenuItems and ToolBarButtons, would be very cool.
An equivalent to SetGadgetItemData/GetGadgetItemData, quasi.
SetToolBarButtonData (#ToolBar, #ButtonID, *Data )
*Data = GetToolBarButtonData (#ToolBar, #ButtonID )
SetMenuItemData (#Menu, #ItemID, *Data )
*Data = GetMenuItemData (#Menu, #ItemID )
In Windows, there wouldn't be any problem to implement this features.
TBBUTTONINFO has a member, called "lParam".
And MENUITEMINFO has a member, called "dwItemData".
Both are predestinated for implementation of such features.
But, I don't now how to do on OS X or Linux.
Best regards
Wolf