World: r3wp
[!RebGUI] A lightweight alternative to VID
older newer | first last |
Pekr 18-Jun-2006 [3921] | I can, and probably will do so tomorrow, just got back from 3 days trip, tired, so just relaxing today ... just dunno if other would not object. As for me, I can miss the requester ... |
Robert 18-Jun-2006 [3922] | Than add the feature, with command line options or something like this. Just provide both ways and let the user choose. There is no wrong/right here. |
Volker 18-Jun-2006 [3923] | wouldnt download to current directory be sufficient? |
Pekr 18-Jun-2006 [3924x3] | yes, it should be ... |
maybe I will even download it as-is now, and change also target location .... using cache directory does not work for me, I organise "library packages" a bit different way ... | |
maybe then it should check first, if new get-rebgui.r is not awailable? Not sure it is needed though ... | |
Ashley 18-Jun-2006 [3927] | Great work guys, just going through all the changes now. |
Graham 20-Jun-2006 [3928] | How to change the label font colour? |
Graham 21-Jun-2006 [3929x2] | How to get the label from a selected radio-group ? |
radio-group/pane/n/text ... | |
Ashley 21-Jun-2006 [3931] | display "" [ l: label "Test" font [color: red] button "Change" [l/font/color: random 255.255.255 show l] ] |
Graham 22-Jun-2006 [3932x4] | Thanks .. is there going to be a formal syntax description for the rebgui dialect ? |
This looks useful ... | |
Cyphre: now you can just change the data content and do show on the radio-group like: my-radio-group/data: ["item1" "item2" "item3" "item4"] show my-radio-group Note that it won't react on change of number of items. Just change of texts. FIXED *radio-group: Add a way to select one radio field at run-time added accesor select-item item [integer!] usage: my-radio-group/select-item 2 show my-radio-group note: you can get the selected item using my-radio-group/picked, you can get the text of selected item using my-radio-group/selected | |
rats .. using Cyphre's radio-group.r gives me an error. I guess there must be dependencies elsewhere. | |
Cyphre 22-Jun-2006 [3936] | Graham, what exact error are you getting? |
Graham 22-Jun-2006 [3937x5] | just rebuilding ... |
** Script Error: Cannot use add on block! value ** Where: action ** Near: set-sizes 2 + guisizerg/data set-fonts/size ** Press enter to quit... | |
now this is my code .. but it works with Ashley's radio-group | |
label "Gui Size" 20 guisizerg: radio-group 30x5 data [2 3 4 5] [ ] return | |
I am asking the user to set the gui size at start up. | |
Cyphre 22-Jun-2006 [3942x2] | >> guisizerg/data == [3 4 5] so you cannod add on block as the error tells you ;) |
didn't you want guisizerg/picked instead of data? | |
Graham 22-Jun-2006 [3944x3] | yep .. it was not a block before. |
picked is new?? | |
yeah .. looks like it. | |
Cyphre 22-Jun-2006 [3947] | from the message above: "you can get the selected item using my-radio-group/picked" |
Graham 22-Jun-2006 [3948] | I guess that's why we should have accessors and standard ways of accessing data so nothing breaks. |
Cyphre 22-Jun-2006 [3949] | Yes, I changed the radio-group behaviour a bit so it works more consistent (at least IMO). Ofcourse if this is a backward compatibility problem then use the old version. I agree there shoudl be default accesor system but AFAIK current RebGUI lacks it so maybe a good improvement for future? |
Pekr 22-Jun-2006 [3950] | Cyphre - in near future? :-) |
Cyphre 22-Jun-2006 [3951] | I have big problems with predicting future all the time ;) |
Graham 22-Jun-2006 [3952x2] | I think it is imperative really as otherwise we are forced to delve into the internals of rebgui to do simple things. |
although Carl is not keen on oo programming, it really does work well with GUIs. | |
Cyphre 22-Jun-2006 [3954] | agree, oop is well suited for such things. |
Pekr 22-Jun-2006 [3955x2] | VID accessors is good methog, it just stopped half-way, which is a pity ... should work in set-face 'attribute 'value mode, and not only in set-face 'value one.... |
... if that is the thing you are talking about in regards to oop and overriding methods :-) | |
Graham 22-Jun-2006 [3957] | It would be nice if rebgui could be prettified .. with backgrounds etc. |
Cyphre 22-Jun-2006 [3958] | The problem is RebGUI was initially designed as simple and resources efficient system. Now RebGUI users want more and more :-) So exteding the system based on the initial idea is not so easy ;) |
Pekr 22-Jun-2006 [3959] | :-) .... but it also does not mean, that things like exposing some central settings to some objects (as colors etc.) should necessarily bloat RebGUI, or does it? |
Graham 22-Jun-2006 [3960] | Ah.. I have too many things that rely on the internals of the radio-group .. perhaps try another day |
Ashley 22-Jun-2006 [3961] | Graham, "is there going to be a formal syntax description for the rebgui dialect" ... I can certainly get the ball rolling, can you point me to a good format we can base it on? |
Graham 22-Jun-2006 [3962] | not really .. can we just use datatypes to describe the syntax? |
Ashley 22-Jun-2006 [3963] | Something like: http://www.rebol.com/docs/view-system.html#section-2.2 |
Graham 22-Jun-2006 [3964x5] | >> display "" [ rg: radio-group data [ "M" "F" ] do [ rg/select-item 2]] ** Script Error: Cannot use path on none! value ** Where: switch ** Near: if pf/picked <> face/data [old: pf/picked if old [clear skip pf/pane/:old/effect/draw 7 show pf/pane/:old] pf/picked : fa... |
Ashley, that would help. | |
the problem is this line ... pf: face/parent-face | |
pf is none | |
I recall having similar problems with Ashely's radio-group as well. | |
Graham 23-Jun-2006 [3969x2] | In the select-item function, need also this : picked: item |
as otherwise the picked function fails if you use the select-item to set the radio-group | |
older newer | first last |