ribbonbar

beasscript-logo-small

 

Add and Administrate a Ribbon-Bar

 

Syntax:

etab=ribbonbar=<tabid>=<command>=<propertie> or

etab=ribbonbar=<command>=<propertie>

without <tabid> beas use the current Tab

 

Commands

 

create

Create in a very simple way a new ribbon-bar

Example:
declare=etab=ue_tab

etab=ribbonbar=create

etab=ribbonbar=add=typ=del

etab=ribbonbar=add=typ=edit

add

Add a Ribbon-Bar-Button in a existing tab

visible

visible/unvisible a existing Button

etab=ribbonbar=<tabid>=visible=<buttonname>=1/0

 

 

create-Function

You can use this function to create a Ribbonbar-Area on the top of the window in a very simple way, but only, if you've only one DataWindow

declare=etab=ue_tab

etab=ribbonbar=create

Create a new DataWindow in dw_2 with the fields userfield1..userfield9, usernum1...usernum4, userdate1...userdate4

Insert a row in DataWindow, design to a Edit-Window

Set Resize to beas-Script, create a global Function "resize" witch is calling "etab=ribbonbar=resize". This function coordinate the Resize of dw_2 (the Ribbonbar) and dw_1

After this Command you can add directly your Buttons with etab=ribbonbar=x=add

 

Syntax: etab=ribbonbar=create=<property in csv-format>

column

you can set additional columns in sql-Syntax

column=space(20) as info<tab>column=0 as nr<tab>..

dw

You can set the Datawindow, in which the ribbonbar is initialize. Default is dw_2

dw=dw_2

tab

Add Tabs in the current ue_tab-Object

Default is Tab "ribbonbar" with Text "Menu"

You can set more then one tab

tab=<tabname>=<description>

tab=masterdata=Master Data<tab>tab=warehouse=Warehouse

height

The Height of ribbon bar. Standard is 400

 

add Button

etab=ribbonbar=<tabid>=add=[property in csv-Format]

name

Name

width

Width, Standard = 311

normal=310

big=530

visible

0/1, Standard = 1

min_x

Minimal X-Pos, Standard = 0

space

Space between Button of the left size

double or space in pixel

description, text

Text on Button

function

Function to call

inputfield

input field needed?

picture, bmp, bitmap

Picture-Name

 

Example:

etab=ribbonbar=1=add=name=supply<tab>function=menu_supply()<tab>text=Vorbelegen<tab>bmp=hold.png

etab=ribbonbar=1=add=typ=del