[BR_forum] Buttons in a window

General development discussion.

Moderators: Susan Smith, admin, Gabriel

Post Reply
George Tisdale

[BR_forum] Buttons in a window

Post by George Tisdale »

Doug Meenan asked me yesterday if there was a function similar to FNWINBUTTONS, which displays text buttons in a window, that did the same thing, but with images or icons rather than text buttons that was as easy to implement as FNWINBUTTONS.

Well, yesterday there was not, but it seems this morning there is. The function also allows mouse over help text for the buttons.

I have just uploaded a new version of FNSNAP.dll to the BRG_PUB FTP site that includes FNPICBUTTONS. The syntax is similar to FNWINBUTTONS with a few added parameters

FNPICBUTTONS(line,text$;winno,picpath$,picw,pich)

<![if !supportLists]>· <![endif]>LINE works the same as FNWINBUTTONS 0 is the bottom line of the window negative is up from the bottom positive is down from the top
<![if !supportLists]>· <![endif]>TEXT$ is similar to FNWINBUTTONS except help text is appended to each button with a pipe “|”
Let text$=”^F5:graphic.gif|helptext ^F8:graphic2.gif|more help ^ESC:graphic3.gif|Close the window”
<![if !supportLists]>· <![endif]>WINNO is the window number in which all of this should happen
<![if !supportLists]>· <![endif]>PICPATH$ is the location of the graphic images generally ending with a “”. This is prepended to the names of the graphics in TEXT$. A valid location for example would be “:icons” to refer to the entry location for BR and the icons directory immediately below that.
<![if !supportLists]>· <![endif]>PICW is the width in columns of the desired graphic. If omitted the width defaults to 2
<![if !supportLists]>· <![endif]>PICH is the height in rows of the desired graphic. If omitted the height defaults to 1

To get the pushed button to “FLASH” when pressed include another two instances of the function in the section where you trap the resulting FKEY. The first instance repeats the function call exactly, but uses blanks for the graphic. This causes the line of buttons to be redisplayed without the clicked button. Then another call to the function as originally written causes the full line of buttons to redisplay. The effect is for the pushed button to flash, giving the user the sense that something has happened.

To delete the button line simply call the function again with a blank text$ variable.


George L. Tisdale, CPA
Tisdale CPA
75 Junction Square Drive
Concord, MA 01742
(978) 369-5585

IRS Circular 230 Notice: "To ensure compliance with requirements imposed by the IRS, we inform you that any U.S. tax advice contained in this communication (including any attachments) is not intended or written to be used, and cannot be used, for the purpose of (i) avoiding penalties under the Internal Revenue Code or (ii) promoting, marketing or recommending to another party any transaction or matter addressed herein."



This electronic message transmission contains information which is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination or distribution of this communication to other than the intended recipient is strictly prohibited. If you have received this communication in error, please notify us immediately by calling (978) 369-5585 or by electronic mail (gtisdale@tisdalecpa.com) Thank you.
Post Reply