File Name Syntax

Previous  Next

 

General Format of a Menubar File

 

exclude-filter+sort-token@name[icon].ext

 

exclude-filter

Any file or folder that starts with the exclude-filter will be excluded from being included in the list.  This can be useful when having common "system" scripts or folders. The default exclude filter is "_" so any file or folder that starts with the underscore character will be excluded.

 

sort-token@

This is used to sort the ScriptBar menu items so they can be arranged in a logical order.  The file-finder will sort the files alphabetically and by using the sort-token@ you can make sure that the items are sorted in desired order

 

[icon]

This optional icon index is used to assign an icon from ScriptBar.bmp to the menu item

 

.div

Use this extension to insert a divider.  The divider can contain text or be empty.  Use the sort-token@ to insert the divider at the desired position.

 

File Name Examples

 

I1@.div

Sorted Divider without text

R1@Divide Me.div

Sorted Divider with text

ZZ@More Stuff....div

Another sorted Divider with text

Hello[1].mqc

Menu Item with Icon Index 1

A1@Quit This Thingy[9].txt

Sorted Menu Item with Icon Index 9

Nils[10].txt

Menu Item with Icon Index 10

Hello.mqb

Menu Item with default icon

_Common.bas

Module with common functions excluded

 

Special Files

 

AUTOEXEC

Executed when ScriptBar is first loaded

ONEXIT

Executed when Scriptbar is terminated

ONEVENT

Executed on events signaled by host app

ONACTIVATE

Executed when Scriptbar is activated

ONDEACTIVATE

Executed when Scriptbar is deactivated

ONOPEN

Executed when opening a file

ONCLOSE

Executed when closing a file