[REBOL] Re: Modal progress dialog
From: adl:absentis at: 14-Apr-2006 17:39
On Sat, Apr 15, 2006 at 02:50:05AM +1000, Anton Rolls wrote:
> Hi Andrew, the reason is that the set-progress function body
> code is bound to the my-progress-dialog object when it is
> made (by MAKE).
> So you are unintentionally doing [show-popup lay] instead of
> just show.
> You can refer to the global SHOW function like this:
> set-progress: func [val][
> progress-bar/data: val
> system/words/show progress-bar
> but I would advise against redefining the globals SHOW and HIDE
> as it will probably just lead to confusion. Up to you, though :)
I deserved that one :) My only remaining doubt is how to make the
dialog unkillable by the user, I thought that adding an
'insert-event-func with a function that simply did nothing on a 'close
event would work but nothing changed, is there another way?