Whoa, what's BUTTON-BAR?

TOOLBAR can also be used to create an easy horizontal button bar at the bottom of your window. This is not a new feature, but it has not been considered tested until a few months ago (where I probably should have mentioned it Happy). If you are using Tester, you'll see it in a few places in the sub windows, such as in the Test List Window.

I created a separate style called BUTTON-BAR for this. The dialect largely works the same, but the access to creating the buttons is a little easier, and there are 5 predefined buttons with predefined actions in the DATA-STORE block that work similarly to what you see in ALERT and REQUEST.

In your layout, you'd create the button bar like this:

view layout [button-bar with [data: [ok-btn cancel-btn]]]


And presto:

Pasted Graphic 2


Just like TOOLBAR, the button bar will stretch itself according to the width of your window or wherever you need it, but by default, it grows to the size of what the buttons require.

BUTTON-BAR is still not mentioned in the docs, but you can study the details of BUTTON-BAR in the source code at the bottom, along with the OK-BAR and OK-CANCEL-BAR styles. Those bars are standard bars for even easier button layouts.

Enjoy!

|