2 Cando questions
20-Dec-92 21:46:52
Sb: #48488-2 Cando questions
Fm: John Pendergrass 76246,676
To: Donovan Watts 70672,222
I should have gathered there was more substance to your questions…. 🙂
Unfortunately, many programs (both CanDo decks created by amateurs like me
and even professional programs) do not make sense of 'other than standard'
fonts. I suppose we shouldn't complain too loudly, since at least we have
the option to change fonts. Still, I agree it would be nice if authors
would check the font size in use, and adjust their spacing and such
accordingly. (still, there has to be some limits, right?)
Re the 'Button Swapping'…. I've solved that one in the past by using the
MOVEOBJECT command to move sets of buttons on and off the visible screen.
I've prepared and uploaded a short example deck called 'SWAPBUT.LZH' that
swaps two sets of buttons. Maybe it will be of use? The basic technique
I've used is:
Assume two sets of buttons: BEVEL BUTTONS & SHADOW BUTTONS
You want only one set on the screen at a time. There is one button in each
set that will show the other set, hiding its own set. (ie. swaps the
buttons) For each of these 'swap' buttons, there is a script something
like below:
; this script would clear the 'BevelButtons' and show the 'ShadowButtons'
MoveObject "BevelButton#1",700,25 ; moves this set off the visible window
MoveObject "BevelButton#2",700,40 MoveObject "BevelButton#3",700,55
MoveObject "BevelButton#4",700,70 MoveObject "BevelButton#5",700,85
SetDrawMode JAM1 SetPen 0 AreaRectangle 20,20,200,100 ; erase old
buttons MoveObject "ShadowButton#1",25,25 ; move new buttons onto the
window MoveObject "ShadowButton#2",25,40 MoveObject "ShadowButton#3",25,55
MoveObject "ShadowButton#4",25,70 MoveObject "ShadowButton#5",25,85
A nice feature of this method is that the buttons that are 'moved' retain
their selected/not-selected characteristics. If they were checkmarked, etc
when moved, they will stay that way when they come back.
The only problem with above is a small visual glitch when the
'AreaRectangle' command is used. Still, a small price to pay for a
[ MORE ]