[Seaside] SU Lightbox and GLORP
Richard K Eng
richard.eng at rogers.com
Tue Sep 25 16:58:06 UTC 2007
Good point. I'll use #confirm:.
However, I think I've discovered the reason I can't get it to work...
This works (not using lightbox):
^ self call: (WAYesOrNoDialog new addMessage: aString)
(self confirm: 'Are you SURE?') ifTrue: [Transcript cr; show: 'RKE:
Now if I change the #call: to #lightbox:, I now get the dialog in a
However, I now get *two* returns from #lightbox:. The first when the dialog
displayed. The second after I've clicked on Yes or No.
The first return is the self object. The second return is from whatever is
from the Yes or No buttons. I am absolutely certain you guys can replicate
(Inserting #yourself in '(WAYesOrNoDialog new addMessage: aString)'
makes no difference.)
Now this makes it damn difficult for me to workaround. Why are there two
----- Original Message -----
> Yes, you *are* missing something. :-)
> I was trying to apply the exceptionally cool lightbox effect for my
> "confirm:" dialog. Maybe I'm being a little anal about it, because
> certainly the #confirm: statement will do what I need to do in a
> utilitarian fashion, but I wanted to do something a little spiffier for my
> Hey, why not?
I think he was wondering why you're checking #inform: for a return value, it
has none, while #confirm: returns a boolean. He might not have noticed your
earlier custom implementation of #inform:, though you probably should have
overridden #confirm: instead if you expect the user to choose yes or no.
More information about the seaside