stack menu

Peter Brigham MD pmbrig at gmail.com
Wed Feb 17 17:36:01 EST 2010


On Feb 17, 2010, at 1:05 AM, J. Landman Gay wrote:

> Peter Brigham MD wrote:
>
>> Do you know *when* Rev does the truncation? I've had a problem with  
>> certain printing stacks -- loaded up invisible or offscreen with  
>> formatted text fields then printed with "print card from x1,y1 to  
>> x2,y2 into pRect". I would show them to debug & tweak the text  
>> formatting, and then I ran into the problem that the stack height  
>> was clipped at the lower edge of the screen. I took to resizing  
>> them every time just before printing,
>
> A little off your topic, but if you set the stack's  
> formatForPrinting property Rev won't clip the stack off.

Good to know this, thanks. I thought formatForPrinting only affected  
font display, but the last paragraph of the dictionary entry says "If  
the stack's formatForPrinting property is true, the setting of the  
windowBoundingRect property is ignored when the stack is opened or  
maximized." I then wondered if I could set the windowBoundingRect to a  
larger size before opening the menustack, but alas, "The value of the  
windowBoundingRect does not affect palette, modal, or modeless  
windows. Only stacks whose mode property is 1 or 2 are affected." Dead  
end, after all.

PROGRAM, tr.v. To engage in a pastime similar to banging one's head
against a wall, but with fewer opportunities for reward.  ;-)

(Actually, Rev does offer rewards enough of the time to keep me  
banging away....)

head only mildly sore,
-- Peter

Peter M. Brigham
pmbrig at gmail.com
http://home.comcast.net/~pmbrig





More information about the use-livecode mailing list