Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » GridCtrl questions
Re: GridCtrl questions [message #31822 is a reply to message #31775] |
Wed, 30 March 2011 02:24 |
|
1-st in header of TopWindow-class
ToolButton allShipments;
void TEST() {PromptOK("TEST WINDOWS");}
void ShipmentsToolBar(Bar& bar);
2-nd - after initialization (usialy in window constructor)
listbox.SetToolBar();
listbox.WhenToolBar = THISBACK(ShipmentsToolBar);
allShipments.Image(Icons::AllShipments());
allShipments.Label(t_("All shipments"));
allShipments.Text(t_("All Shipments"));
allShipments.Tip(t_("Show All Shipments in single window"));
allShipments.WhenAction = THISBACK(TEST);
3-d - Function to adding additional ToolButton:
void ProjectEditDlg::ShipmentsToolBar(Bar& bar){
listbox.StdToolBar(bar);
bar.Separator();
bar.Add(allShipments);
}
SergeyNikitin<U++>( linux, wine )
{
under( Ubuntu || Debian || Raspbian );
}
[Updated on: Wed, 30 March 2011 02:31] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Tue May 14 02:57:28 CEST 2024
Total time taken to generate the page: 0.02499 seconds
|