Is there a better way to restore REBOL VID modal dialogs?
I would like to restore modal dialogs in REBOL2 VID like alert
, request/ok
etc to better match the theme of the rest of my application. The only way I found was to include my own modified version of the function request
by replacing my own values in the layout in it. Is there a way to restore these popups without having to override the function request
?
By default, the popup looks like an example of what I'm looking for:
Unfortunately, as far as I know, no. I've had this problem in the past. The only way to do it is as you said. Of course, this is pretty trivial as you can just do:, source request
copy and make your changes. The request and other modals are wrapped in functions that act like a black box around the backend code that the face generates and then passes it on to communicate.
Learned an easier method from another REBOLER (thanks Gregg!). If you need to change the background color and enter / cancel buttons, this also works:
svv/vid-face/color: 26.150.219
stylize/master [
btn-enter: btn white
btn-cancel: btn white
]