World: r3wp
[!RebGUI] A lightweight alternative to VID
older newer | first last |
NickA 7-Sep-2010 [8788] | MaxV, this works perfectly for me on Ubuntu 10.04.1, using your rebol.deb installer - I ran Ubuntu directly from the CD created using the most recent Ubuntu download, installed REBOL using your Ubuntu package, and ran this script. Perhaps your version of RebGUI is different than mine? This version loads rebgui.r from an http:// link: rebol [] do http://re-bol.com/rebgui.r font1: make face/font [ name: "/usr/share/fonts/truetype/freefont/FreeSans.ttf" size: 11 style: [italic bold] ] example: compose [ font (font1) pen red text "Hello World!" ] display "Example" [ style 20x20 data [ box snow 100x100 effect [ draw example ] ] ] do-events quit |
MaxV 10-Sep-2010 [8789x3] | YES! It's the Rebgui version that is different. |
I use Version 218 | |
You use version 117 | |
NickA 10-Sep-2010 [8792] | 117 is the latest stable version |
MaxV 13-Sep-2010 [8793] | Well, 117 has some bugs that 218 hasn't. For example colored buttons turn grey after passing over them. |
Graham 13-Sep-2010 [8794] | and don't change back? |
MaxV 14-Sep-2010 [8795] | NO! :-( |
Maxim 14-Sep-2010 [8796x2] | note that some view faces support the face/colorS which is a block with two colors. if you only set the face/color, when ever a feel looks up the colors block, it will effectively overwrite the color... try it for your specific case (I don't use rebgui, so I can't test) |
same for face/texts, face/fonts, face/images | |
Ashley 14-Sep-2010 [8798] | That's all VID-specific, NA for RebGUI. |
Graham 14-Sep-2010 [8799x2] | Ashley, given that the last code changes to RebGUi were a year ago .. waiting for R3GUI to appear, do you still feel that there is no point in improving/fixing RebGUI? |
Even if we get a stable R3GUI in the next year, people won't stop overnight using R2 | |
Ashley 14-Sep-2010 [8801] | It's even worse than that, the true "cut-over" for many won't occur until we have a stable R3 SDK! ;) Having 2 versions of RebGUI (b117 and b218) that are each 95% done, but each with their own bugs and quirks is not an ideal situation ... so I'm [again] looking to complete the 2.x series and finally obsolete b117 ... but R3, as always, is so close ... |
Graham 14-Sep-2010 [8802x2] | I think R3GUi is not really relevant to the development of RebGUi ... |
Although not vapourware, R3 has had a deleterious effect on R2 3rd party support | |
Ashley 14-Sep-2010 [8804x2] | re: button colors. A QAD fix for b117 follows: Edit rebgui.r and make the following changes to the button widget starting on line 1260: - Add a new attribute ... old-color: none - Add the following to the init function ... old-color: color - Change color references ... replace "colors/theme-dark" with "face/old-color" (leave the "color = colors/theme-dark" ref though) |
has had a deleterious effect on R2 3rd party support ... agree, no-one wants to invest time into something that could be obsolete at any time. If I 100% knew that we wouldn't have a stable R3 SDK (for Mac, WIndows and Linux) for n months then I could make a rational investment of time ... | |
MaxV 15-Sep-2010 [8806] | My question is: where is the font problem in RebGUi on Linux? |
Ashley 16-Sep-2010 [8807] | And my answer is it's not a RebGUI problem. Try the following code on 2.7.7.3.1 (Windows): view center-face make face [effect: [draw [text "xxx"]]] You should see 3 black x's in the top left corner of a new window. Now try this on 2.7.7.2.5 (Mac) ... a blank window appears. I suspect the same thing happens on Linux. This is not a dialect problem (VID or RebGUI) but an issue with REBOL/View AGG font support on non-windows platforms. Also note that while the following works on Windows: view center-face make face compose/deep [effect: [draw [font (make face/font [name: "Verdana" size: 18]) text "xxx"]]] path-qualifying the font name on Mac (and I suspect Linux) still does not work: view center-face make face compose/deep [effect: [draw [font (make face/font [name: "/Library/Fonts/Verdana" size: 18]) text "xxx"]]] |
Maxim 16-Sep-2010 [8808x2] | don't you need to give a file! type for path qualification? |
(I can't test it) | |
Ashley 16-Sep-2010 [8810] | string! only ... http://www.rebol.com/docs/view-face-content.html#section-3 |
Maxim 16-Sep-2010 [8811x2] | did you try adding the file extension to the path qualification on osx/linux? |
(maybe it doesn't have one and I'm just being annoying ;-) | |
Ashley 16-Sep-2010 [8813] | Yep, tried that (the 2nd example above should read "/Library/Fonts/Verdana.ttf"). |
Graham 16-Sep-2010 [8814x5] | Hmm... I don't recall having font issues with draw on Linux |
MaxV, does this work for you ? http://www.compkarori.com/vanilla/display/AGG | |
My recollection is that it works on Ubuntu .. but may not work on other linux variants | |
Also works on puppylinux | |
Also, which version of R/view since 2.7.7 is apparently problematic | |
Andreas 16-Sep-2010 [8819x5] | (Graham's example works for me on Ubuntu 10.04.) |
(With REBOL/View 2.7.7.4.3) | |
Also, I see 3 x's with Ashley's example, but they are halfway shifted outside the window at the top. | |
On the other hand, Linux AltME is completely unusable for me. | |
(Well, not completely. But the fonts are ugly ...) | |
Henrik 17-Sep-2010 [8824] | is there a way to find the window face of a particular face in RebGUI? |
Graham 17-Sep-2010 [8825] | find-window? |
Henrik 17-Sep-2010 [8826] | doesn't work as RebGUI doesn't keep PARENT-FACE consistently available. |
Maxim 17-Sep-2010 [8827] | in view (not VID) you need to do a show on a face for its parent-face to be updated. but the face must be actually visible IIRC. |
Graham 17-Sep-2010 [8828] | I've never had an issue with find-window... can you give us an example of it not working? |
Maxim 17-Sep-2010 [8829] | actually, I meant to say that you need to do a show on the *parent* for the child's parent-face to be refreshed |
Henrik 17-Sep-2010 [8830] | I've never experienced PARENT-FACE as reliable, so for the VID Extension Kit, I made separate functions to set it properly. |
Maxim 17-Sep-2010 [8831] | so you need to make an accessor for the pane which automatically assigns the parent-face. |
Ashley 17-Sep-2010 [8832x2] | RebGUI makes extensive use of parent-face (which is managed by View) ... never had an issue with it. |
RebGUI functions such as undisplay depend on it: undisplay: make function! [ "Closes parent display of face." face [object!] ] [ while [face/parent-face] [face: face/parent-face] remove find screen*/pane face show screen* ] | |
Graham 17-Sep-2010 [8834] | undisplay?? |
Ashley 17-Sep-2010 [8835] | 2.x series. |
Graham 17-Sep-2010 [8836x2] | Oh .. |
what does that do vs unview/only ? | |
older newer | first last |