ItGo.me Focus on IT Recommend

Home > rebol2 - Is there a better way to restyle REBOL VID modal dialogs?

rebol2 - Is there a better way to restyle REBOL VID modal dialogs?

I would like to restyle the modal dialogs in REBOL2's VID, such as alert, request/ok, etc, so that they better fit with the theme of the rest of my application. The only way I've found to do this is to include my own altered version of the request function, substituting my own values into the layout in it. Is there any way to restyle these popups without having to redefine the request function?

The default popup vs an example result of what I'm looking for:


rebol rebol2
|
  this question
edited Dec 20 '14 at 0:15 asked Dec 19 '14 at 18:47 James Irwin 469 3 10

 | 

2 Answers
2

---Accepted---Accepted---Accepted---

Regrettably, as far as I know there isn't. I've had this problem myself in the past. The only way to do it, is as you said. Of course, that's fairly trivial since you can simply do: source request, copy it and make your changes. Request and the other modals are wrapped in functions, which act as a black box around the internal code which generates the face and then feeds it to inform.

Recommend:rebol2 - How do I put a menu in a rebol list (VID)

which I can select a value from a set of choices. The code that I'm using was based off of the list-widget-example.r. The set of choices is dynamic. I tried using "choice" and "rotary" with a static set of choices, but that fared poorly. Us


|
  this answer
answered Dec 19 '14 at 22:23 iceflow19 317 1 10      This is my experience too. It's a shame the layout code for each dialog isn't stored in the system/view object somewhere, but it's not. –  rgchris Dec 19 '14 at 23:56      I hoped that wouldn't be the case, but alas. Thanks for the response! –  James Irwin Dec 20 '14 at 0:14      Your welcome. And @rgchris, I agree that probably would have been better. –  iceflow19 Dec 20 '14 at 1:05

 | 

Learned a simpler method from another REBOLer (thanks Gregg!). If you only need to change the background color and the enter/cancel buttons, this works as well:

svv/vid-face/color: 26.150.219
stylize/master [
    btn-enter: btn white
    btn-cancel: btn white
]

|
  this answer
answered Jan 28 '15 at 18:16 James Irwin 469 3 10

 | 

Recommend:rebol2 - How to run Rebol on Freya

TS). I keep getting this error: error while loading shared libraries: libXaw.so.7: cannot open shared object file: No such file or directory I went ahead and tried to install the missing library but to no avail. rebol rebol2 share | improve

oriUlr:http://stackoverflow.com/questions/27572145/is-there-a-better-way-to-restyle-rebol-vid-modal-dialogs

------splitte line----------------------------