Placeable answer and ask dialogs?
Chipp Walters
chipp at chipp.com
Sun Jul 25 16:20:46 EDT 2004
Ray,
I must be missing someting...how is this different from setting the loc
of stack xyz to the screenloc?
-Chipp
Ray Horsley wrote:
> Here's a short script I use to center any window before showing it:
>
> on placeWindow win
> put the screenRect into scrRct
> put (item 3 of scrRct - width of window win)/2 into tmpNum
> put round(tmpNum) into myTopLeft
> put (item 4 of scrRct - height of window win)/2 into tmpNum
> put round(tmpNum) into item 2 of myTopLeft
> set topLeft of window win to myTopLeft
> end placeWindow
>
>
> On Saturday, July 24, 2004, at 04:05 PM, J. Landman Gay wrote:
>
>> On 7/24/04 12:45 PM, Richard Gaskin wrote:
>>
>>> Wilhelm Sanke wrote:
>>>
>>>> I wonder whether you list members would be interested to have
>>>> slightly modified ask- and answer-dialogs with the new version of
>>>> the IDE that allow placing these dialogs anywhere on the screen or
>>>> relative to the stack they are launched from.
>>>> Such a minor change would add flexibility to the dialogs, and it is
>>>> a feature some Metacard and Revolution users had asked for in the past.
>>>>
>>>> See my stack "Place Dialogs" on <http://www.sanke.org> , English
>>>> version, page "Tools and Samples for Development"; the stack
>>>> contains examples and information.
>>>>
>>>> All that is needed are two script lines added before the end of the
>>>> preopenstack handlers:
>>>>
>>>> " if the NewLoc of this stack is not empty then set the loc of this
>>>> stack to the NewLoc of this stack
>>>> set the NewLoc of this stack to empty "
>>>>
>>>> The stacks can be used as usual if no NewLoc property is set.
>>>>
>>>> Line 2 of the script makes sure to restore the default behavior of
>>>> the dialogs the next time they are opened without a specified
>>>> "NewLoc".
>>>
>>> Thank you for your willingness to contribute. Scott Rossi has
>>> already offered to work on the Ask and Answer dialogs -- maybe the
>>> two of you could work out those enhancements?
>>> Doesn't Rev provide support for specifying the loc of those dialogs?
>>> If so, can we use their syntax?
>>
>>
>> I have no objection to this change. But I am not clear why we need it;
>> doesn't this do the same thing:
>>
>> set the loc of stack "answer dialog" to myloc
>>
>> It is only a single line, which is the same amount of space it would
>> take to set a stack property. Am I missing something?
>>
>> --
>> Jacqueline Landman Gay | jacque at hyperactivesw.com
>> HyperActive Software | http://www.hyperactivesw.com
>> _______________________________________________
>> metacard mailing list
>> metacard at lists.runrev.com
>> http://lists.runrev.com/mailman/listinfo/metacard
>>
>
> _______________________________________________
> metacard mailing list
> metacard at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/metacard
>
More information about the metacard
mailing list