> Subject:
>         answer/ask dialogs + repeat loops
>    Date:
>         Fri, 30 Mar 2001 11:25:11 +0200
>    From:
>         Wilhelm Sanke
>      To:
>         [EMAIL PROTECTED]
>
>
>
>
> When an answer or ask dialog triggers a longer repeat loop (e.g.
> colorizing particular strings in a fields with a greater number of
> textlines or changing the color/shape of a greater number of graphics or
> fields etc.) the dialogs remain on top of the screen until the repeat
> loop is finished.
>
> In the case of the answer dialog the clicked button of the dialog
> vanishes, in case of the ask dialog the input text is hidden, but the
> dialogs remain and are then gradually wiped out as parts of the screen
> underneath the modal dialog are changed, producing sort of a dissolving
> effect, but otherwise conveying the impression of bad programming.
>
> Is there a possibility to immediately close the dialog under these
> conditions?
>
> Splitting up the handler into two buttons (first starting the modal
> dialog, then sending mouseup to the second button with the repeat loop)
> sometimes helps, but mostly not.
>
>

Here is a workaround I found meanwhile for the ask/answer dialogs
remaining on top of the screen with longer repeat loops:

As changes in objects under the area of the modal dialog wipe out the
respective part of the dialog, set the rectangle of a field or button
(transparent without borders and name) to the rect of the modal dialog.
It is necessary to change the rect of the "covering" object afterwards
(or before), because when it remains unchanged next time the modal
dialog stays on top as before. *Changing* the part of the screen where
the dialog is displayed is the essential part of the workaround.

Here a sample script:

"on mouseUp
  answer "Change borderwidth and bordercolors?" with "Yes" or "No"
  put the rect of stack "answer dialog" into d_rect
  set the rect of btn "cover" to d_rect
  show btn "cover"
  hide btn "cover"
  set the rect of btn "cover" to 3,3,10,10
  send "mouseup" to btn "change borders"
end mouseup"

Wilhelm Sanke



Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to