SCOUG Logo


Next Meeting: Sat, TBD
Meeting Directions


Be a Member
Join SCOUG

Navigation:


Help with Searching

20 Most Recent Documents
Search Archives
Index by date, title, author, category.


Features:

Mr. Know-It-All
Ink
Download!










SCOUG:

Home

Email Lists

SIGs (Internet, General Interest, Programming, Network, more..)

Online Chats

Business

Past Presentations

Credits

Submissions

Contact SCOUG

Copyright SCOUG



warp expowest
Pictures from Sept. 1999

The views expressed in articles on this site are those of their authors.

warptech
SCOUG was there!


Copyright 1998-2024, Southern California OS/2 User Group. ALL RIGHTS RESERVED.

SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group. OS/2, Workplace Shell, and IBM are registered trademarks of International Business Machines Corporation. All other trademarks remain the property of their respective owners.

The Southern California OS/2 User Group
USA

SCOUG-SundialSIG Mailing List Archives

Return to [ 25 | April | 2001 ]

<< Previous Message <<


Date: Wed, 25 Apr 2001 11:25:07 PDT
From: "Randell Flint" <randell@sundialsystems.com >
Reply-To: scoug-sundialsig@scoug.com
To: < "scoug-sundialsig@scoug.com" > scoug-sundialsig@scoug.com >
Subject: SCOUG-SundialSIG: Buttons (was Beginning formulas)

Content Type: text/plain

On Wed, 25 Apr 2001 08:48:12 PDT, Steven Levine wrote:

>In <3AE6872E.192B@peterskye.com>, on 04/25/01
> at 01:13 AM, Peter Skye said:
>
>>I want to look at what I'm clicking on, thank you very much. Just
>
>Don't ask me, ask someone who can make it so. It's called a feature
>request and if you request it, that will make at least two requesters :-)
>

Mesa has the capability to add buttons, with text labels, that execute macros
(scripts) -- they just aren't called buttons, the're called Text Boxes.
In fact, ANY graphic (oval text box, rectangle, line) can have a script
associated with it that is executed when you click it. (There are actually
a number of examples of this all throughout the Big Nate example in autoload.m2...
that's how it moves thru things from page to page and workbook to workbook.)

See Using a Graphic To Execute a Script in the help for details... but here's
basically what you do:

* Create the script (or macro) as a layer of the workbook (and change the name
of the layer to be whatever you want it to be). You can make changes to the
script later, so you don't have to get it all right the first time.

* Select a cell about where you want your button to be. Use Graphics->Create
to open the Selection Manager to the graphics creation page.

* Pick the type of graphic (Text Box in this case) and enter the name of the
script layer in the Execute Script field. (The name of the graphic doesn't
really matter, it will be GraphicNN by default.)

* Click Create to create the "button".

The text on of a text box is the word "Text" by default.

* To modify the text, you need to select the graphic for editing. You CANNOT select
a graphic just by clicking on it since that is what runs the script. So, instead,
hold down the CTL key while you click on it.

* When selected, the text of the Text Box appears in the formula bar for editing.
Just click in the formula bar and change the "Text" to be whatever you want it
to be. (It's centered and wraps to multiple lines.)

* To resize the "button", just drag the edges while it is selected (or change the
Height and Width in the Graphic Settings page of the Selection Manager if you
want a precise size).

* To move the "button", just drag the entire button while it is selected (or
change the Offset From, X, and Y values on the Graphic Settings page).

* To change the width of the "button" boarder, just increase the Line Width in
the Graphis Settings while it is selected.

* To change the font and/or color of the text, the "button" background, or the
border, just drag and drop from the OS/2 font and color palettes onto the graphic
(while it is selected). (Remember, in OS/2, a color drag changes the background
color -- or border if dropped there -- CTL+drag changes the text color.)

Randell

=====================================================

To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-sundialsig".

For problems, contact the list owner at
"rollin@scoug.com".

=====================================================


<< Previous Message <<

Return to [ 25 | April | 2001 ]



The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA

Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS RESERVED.

SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group. OS/2, Workplace Shell, and IBM are registered trademarks of International Business Machines Corporation. All other trademarks remain the property of their respective owners.