RGD Window ToolbarThis is a featured page

Adds or removes a predefined window to the top or bottom of another window.

This allows you to create generic toolbars which can be added to other windows programatically (like during the create event for a window. Better still, use this in a promoted create event to add it to all your windows in your application)

Currently toolbars can be added to the top or the bottom of the window. Make multiple calls to the function to add multiple toolbars.

Please note: You cannot add data-bound controls using this function, data binding is done prior to the create event.

Toolbars can be removed as well, so a menu item can toggle toolbars on and off.

:: To add a toolbar ::
You usually call this routine from the create event of the window you want to add the toolbar to. But you can call this routine at any time after the window is created to add or remove toolbars.

For Example :-

window = "CUST_ENTRY"
result = rgd_window_toolbar("ADD",window,"MYTOOLBAR","T")

the above code would add the toolbar called MYTOOLBAR to the window CUST_ENTRY at the top of the window.

Currently, you need to create event script code for each control on the toolbar which calls your procedure code. A future version will carry across quickevent calls as well.

:: To Remove a Toolbar ::

window = "CUST_ENTRY"
result = rgd_window_toolbar("REMOVE",window,"MYTOOLBAR","T")

the above code would remove the toolbar names MYTOOLBAR from the top of the window CUST_ENTRY

See attached source code for further details.



zapher67
zapher67
Latest page update: made by zapher67 , Feb 5 2008, 4:43 PM EST (about this update About This Update zapher67 Edited by zapher67

19 words added

view changes

- complete history)
Keyword tags: controls form toolbar window
More Info: links to this page
There are no threads for this page.  Be the first to start a new thread.
Unknown File rgd_window_toolbar v100.bas (Unknown File - 9k)
posted by zapher67   Feb 4 2008, 11:34 PM EST
basic+ source code version 1.00

Related Content

  (what's this?Related ContentThanks to keyword tags, links to related pages and threads are added to the bottom of your pages. Up to 15 links are shown, determined by matching tags and by how recently the content was updated; keeping the most current at the top. Share your feedback on Wetpaint Central.)