Re:Multicolumn Printing (Text Flow)

2004-11-17 Thread depstein
I like Cubist's binary search idea, but I recall that when I originally stepped through the text by "word" rather than by "char" I was stymied by the fact that a quoted series of words is understood as a single word, even though a proper page break could fall within that series. I assume a bina

Re: Multicolumn Printing (Text Flow)

2004-11-16 Thread depstein
Here's another approach to the text overflow calculation: function extraText f -- removes from fld f, and returns, the htmlText that overflows size of fld f repeat with c = 1 to length(fld f) if the formattedHeight of char 1 to c of fld f > the height of fld f then put the htmlText of

Re: selectedText from a palette?

2004-09-09 Thread depstein
Rich Layne wrote: > I trying to make an application that has most of it’s functionality on > a palette-- a bunch of different buttons that will do different stuff > to the main data stack. Most things work, but handlers that involve the > “selectedText” don’t seem to make it to the main stack,

Re: Windows Printing

2004-08-29 Thread depstein
Jacqueline Landman Gay wrote of Windows printing problems: > The printing stack has its > formatForPrinting set to true. > > My script fills both fields, prints the card, prints a break, then > repeats until the data is gone. The documentation for "formatForPrinting" warns us never to edit a f

Re: OptionKey madness

2004-03-21 Thread depstein
Richard Gaskin wrote: > My goal was to provide 20 simple keystrokes for user-settable actions, > giving them Cmd/Ctrl-1 through 0, and Opt/Alt-1 through 0. Function > keys are out since both Win and Mac OSes reserve so many for specific > features. Now it seems Option keys may be out as well

Re: Selection strategies

2004-02-27 Thread depstein
Richard Gaskin noted that > when text is selected in the field [of the topstack] the > palette buttons work great, but if the cursor is inserted with no > selection then clicking in the palette window causes the field to lose > focus. My palette is a menu of pulldown buttons, and these handle

re: Long combo box buttons

2004-02-07 Thread depstein
To "display more than a few lines in a combo box list": set the menuLines of btn "myCombo" to the number of lines in btn "myCombo" Works the same way as with option button lists. Tested with Metacard 2.5 Mac OSX. David Epstein ___ use-revolution maili

"Poor technique"?

2004-01-09 Thread depstein
Robert Brenstein quoted Scott Raney: "open >inv" is poor technique in MC anyway (it's only there as a SuperCard >compatibility feature), as is setting up fields in one stack from >another directly. Instead, do the init in a preOpenStack handler, and >get the data in the dialog from a well known p

Re: Moving more than one line in a listfield (fwd)

2003-12-17 Thread depstein
A clarification: The function I just suggested for this purpose assumes that you want to "group" the several selected lines, e.g., that when you move lines 4 and 7 "up" in the list you want them to become lines 3 and 4, not lines 3 and 6. I hope this is what was intended. David Epstein _

Re: Moving more than one line in a listfield

2003-12-17 Thread depstein
This is a subset of a more elaborate function, so I hope it still works. It can be used to move the selected lines of a list-type field to the top or bottom of the list, or up or down. David Epstein function reListed theList,actPieces,action,myDelim,@newSelec -- theList is the starting list;

Re: Getting a chunk of stylized text?

2003-02-21 Thread depstein
There are probably faster ways to do this, but try this: function extraText f -- returns the htmlText that overflows size of fld f -- and deletes it from field f repeat with c = 1 to length(fld f) if the formattedHeight of char 1 to c of fld f > the height of fld f then put the ht

Re: ranging lists

2003-01-29 Thread depstein
Since you're dealing with integers, you could run each line of list 1 through a function like function numberSeries x,y -- returns space-delimited list of all integers from x to y to build an expanded version of list 1 that explicitly lists all possible matching numbers in each range. Then sen

Mac menubar question

2002-02-04 Thread depstein
A group of buttons can be used as a Mac menubar, but there are some differences in behavior between how those menus work and how the buttons work if they are used directly, e.g., displayed in a palette. It appears that I cannot change the contents of a Mac menubar menu "on mousedown," while