create own window

beasscript-logo-small

Example for create a own window with multi tab:

ue_tab_solution

 

create a psr-file

(this example from beas_ftpos with retrival argument 1=2 = empty)

for every tab create a groupbox and set all fields for this tab in this area

set all fields in the group and the groupbox self to unvisible.

create the t_master-textobject

ue_tab2

save the psr-file

example tabexample.psr

 

Start beas, insert the Menu-Entry in extra / addon administration and restart beas (or reopen the menu):

bmenu=add=bereich=extra,name=tab-example,befehl=opennewwindow=tabexample.psr

ue_tab3

 

open the window,

crtl+N+B

in retrieve-event in the first page insert script:

insertrow

 

ue_tab2a

Update, Close and open the Demo-Window

 

Open Debug-Window (crtl+N+D) - Script and insert this script

 

destroy=etab
declare=etab=ue_tab
// Position
etab=x=1
etab=y=200
etab=widthscript=max
etab=heightscript=max
 
//
// Generate the Areas
// Name of the tab
etab=add=tab1=Additional
// Area
etab=addarea=tab1=gb_tab1
// second tab
etab=add=tab2=Drawing-Info
// and area
etab=addarea=tab2=gb_tab2
// redraw
etab=redraw

 

ue_Tab4

 

and execute. Now you see the tabs. It works perfect.

if all correct, copy the script in crtl+N+B in "retrieve" WITHOUT the redraw-commandue_Tab5

 

close and open the window and you see the result.