Monday, February 11, 2013

Hiding Shell Toolbar Items

From time to time I would need to hide different shell toolbar items.  Typically I did so based on the user's permissions or by what window they were in.


   oWindow:=LimsApp("Shell");
   oToolBar:=oWindow : TOOLBAR;

   Dummy:=oToolBar : HIDEITEM(102);     /*Database Connection;
   Dummy:=oToolBar : HIDEITEM(104);     /*User Action;


Item 101 = Closed Starlims
Item 102 = Database Connection
Item 103 = Printer
Item 104 = User Action
Item 105 = NOTHING
Item 106 = Search
Item 107 = Sort
Item 108 = Change View
Item 109 = Copy to Clipboard
Item 110 = First Record
Item 111 =NOTHING
Item 112 =Previous Record
Item 113 = Next Record
Item 115 = Last Record
Item 116 = Mark All
Item 117 = Unmark All
Item 118 = Refresh
Item 119 = Reload
Item 120 = Timesheet (could be local for my system)


You can also ShowItem(), DisableItem() or EnableItem() as well using the same format as above.

No comments:

Post a Comment