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
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
Rich Layne wrote:
> I trying to make an application that has most of its 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 dont seem to make it to the main stack,
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
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
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
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
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
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
_
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;
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
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
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
13 matches
Mail list logo