(During the course of my daily DK work, when I come across "tricks" I have used, I will post them to the list, and accumulate them in the DK_aids.exe.)
 
Here are two simple DK tips for buttons on a dialog box, in this case OK and Cancel buttons I usually put at the bottom right.
 
1. Separate buttons with a one or more character text item with "after, same" positions, to space out the buttons, then use "after,same" on all subsequent spacers and buttons.  To move the set of buttons you only have to change the row and column on the first button.
 
2. To make all buttons of a set look the same use the width parameter, in this example it is 6.
 
Example:
 
  Button "OK" 58,9,6  default
    do
       ...
    endItem
   
  text ' ' after, same
           
  Button "Cancel" after, same,6 
    do
       ...
    endItem
(These may be obvious to the experienced programmer but less so to the beginner.)
 
Larry Manire

Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to