World: r3wp
[!RebGUI] A lightweight alternative to VID
older newer | first last |
shadwolf 28-Aug-2008 [7648x4] | it was designed to be a rebgui widget that was the prototype for table widget long time ago and a play for me on an amazing and very VID Topic " widget auto compositing subwidgets" widgetwriting widgets that's so neat ^^ |
hum you have the 10 last line of the file a demo code of how to use it | |
you have a flag ;Demo code to identify the begining of the demo code | |
it works the folowing way you build a data list and then you pass it in arg into your display block | |
amacleod 28-Aug-2008 [7652] | I tried it but got an error... ** Script Error: Invalid path value: rebface ** Near: listview: make ctx-rebgui/rebface [ size: 400x300 data: [] pane: [] cols: none rows: none l... I believe REbGUI version: 112 |
shadwolf 28-Aug-2008 [7653x2] | ctx-rebgui/rebface -> internal object .... hum let me see |
ctx-rebgui/rebface replace this by : listview: make rebface [ | |
amacleod 28-Aug-2008 [7655] | ** Script Error: listview has no value ** Where: layout ** Near: listview 80x60 data [["Title 1" text "Title 2" check "Title 3" image "Title 4" image "Title 5" text] ["Line 1:1" fals e l... |
shadwolf 28-Aug-2008 [7656x6] | yeah I saw that ... |
i'm trying to find a solution rebgui moved more than I expected | |
ok sorry too much change well a fast solution would be i think to copy the liste-view code after rebface[ and paste it to the regui.r file where belongs table: make rebface ] | |
but this provide a temporary solution i'm not sure there is no other rebgui interfaces that diseapear | |
hum as I thought all the widgets interface in rebgui completly changed | |
Ok so sorry for the time lost | |
amacleod 28-Aug-2008 [7662] | I was just curious to see what you had there...no prob. |
shadwolf 28-Aug-2008 [7663] | http://shadwolf.free.fr/rebgui-list2.jpg^^ |
amacleod 28-Aug-2008 [7664] | nice |
shadwolf 28-Aug-2008 [7665x2] | and that's a pic of the pre alpha version the 5.2 version was more accurate |
if you can put your hand on a rebgui 0.38 that widget should work | |
Graham 29-Aug-2008 [7667x5] | is that a working anamonitor?? |
I see a [ana] button in your picture | |
Cyphre sent me this code and has also placed it into SVN | |
>> display "" [ mt: table options [ "data" left 1.0 ] data [ "a" "b" ] return button "select" [ mt/select-row 1 system/view /caret: mt/pane/1/pane/1/text system/view/focal-face: mt/pane/1/pane/1 show system/view/focal-face]] do-events | |
which allows one to select the rows with cursor after selecting a row programmatically. | |
shadwolf 29-Aug-2008 [7672x2] | ana button call for anamonitor wich helps me to debugging and no my list-view don't works anymore with recent rebgi version (it was done with rebgui 0.36 ... ) |
debuging with anamonitor 2.0 is moreaccurate than setting probe | |
Graham 2-Sep-2008 [7674x4] | w: has [][ display "" [ f: field do [ set-focus f ] ] ] display "test" [ button "Focus Test" 20 [ w ] return text-list 45x45 data ["W" ] [ switch face/selected [ "W" [ w ] ] ] ] |
What's going on here? If you use the button, the field f focuses okay. Use the text-list, and the focus does not appear. | |
the equivalent VID code w: does [ view/new layout [ f: field do [ focus f ] ] ] view center-face layout [ button "Focus Test" 90 [ w ] return text-list 100x30 data ["W" ] [ switch face/text [ "W" [ w ] ] ] ] works as expected. No focus issues. | |
Ashley, can this be fixed easily? | |
sqlab 2-Sep-2008 [7678] | I just used the tour.r on the latest rebgui. There you can select a color for a button, but as soon as the mouse hovers over the button, the colors switches to the defaults. Is this by intent or is there a way to keep the selected color(s) ? |
Graham 2-Sep-2008 [7679] | the latest tour.r is experimental. |
sqlab 2-Sep-2008 [7680] | What is the last stable version? I thought it is a problem with the latest widgets and not with the tour. |
Graham 2-Sep-2008 [7681x2] | colour scheme and things changed with the last version. Try the one before. |
my buttons don't change colour | |
sqlab 2-Sep-2008 [7683] | Ok, I tried version 111 and there the buttons keep their color. |
Ashley 3-Sep-2008 [7684x2] | can this be fixed easily? ... I'll try and grab some time to look at it later tonight. |
The culprit is the face-iterator function in %rebgui-widgets.r ... the engage function is doing a 'show *after* the on-click action is fired. I won't have access to my dev box until the weekend, but at first glance it looks like moving the show may be all that is required. Other widgets, such as button, typically have an engage function like: ... upÊ Ê Ê Ê Ê Ê Ê Ê Ê Ê Ê [set-color face colors/theme-dark face/action/on-click face] ... for this very reason (i.e. always perform the action last to avoid focus loss). | |
Graham 3-Sep-2008 [7686] | I'm not seeing this ... http://trac.geekisp.com/rebgui/browser/rebgui-widgets.r#L438 the show is before the action is called ? |
Ashley 4-Sep-2008 [7687] | I think it's the show on line#298 that's the problem ... but I need to physically debug it to be sure. |
Graham 4-Sep-2008 [7688] | I looked at that too .. and it didn't make any difference. |
Louis 5-Sep-2008 [7689x2] | Does RebGUI have anything like roam.r or will roam.r work with RebGUI? |
roam.r is Carl's object browser. Specifically, what I want is to enter a record and see it listed in a window. If I click on a record in that window, I want to see it back in the entry fields so I can edit it. Has anyone done this using RebGUI? | |
btiffin 5-Sep-2008 [7691] | Kinda ... maybe ... it might be a start; check out http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=rebdbgui.r It's a sample I wrote for someone a long time ago. It links the GUI fields to a RebDB database. One way of doing it anyway. |
Graham 6-Sep-2008 [7692] | Ashley were you able to confirm the cause of the focus issue? |
Ashley 6-Sep-2008 [7693] | Still debugging it ... |
Graham 6-Sep-2008 [7694] | Thanks. |
Graham 7-Sep-2008 [7695] | I presume it's the same issue trying to prefill some fields from a table selection and then set the focus to one of those fields. |
Ashley 7-Sep-2008 [7696] | Found it, and fixed in build #114. Basic rule in RebGUI is to fire actions on 'up and 'alt-up (to ensure they occur after unfocus) ... face-iterator was firing actions on 'down and 'alt-down. A nasty bug that's been there for a long time (and explains why I had trouble getting some requestors working in the past!). |
Graham 7-Sep-2008 [7697] | just the face-iterator then? |
older newer | first last |