r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!RebGUI] A lightweight alternative to VID

Ashley
20-Jul-2008
[7621]
Correct ... the set-focus "eats" the return state.


set-focus was intended more for use either within a display's do 
func or from outside the display. Tab order cannot be set programmatically, 
although it should be noted that tab order is the same as the widget 
specification order so you can at least sequence your widgets in 
the desired order. There is no easy way to conditionally skip widgets, 
although build#106 added the set-state func which lets you toggle 
a widget's info state. As for this being an "obvious" programming 
need, it depends on the type of GUIs you wish to write ... you are 
the first person in over two years to have hit this issue (or at 
least report it) ... although I'll freely admit that keyboard navigation 
is not RebGUI's strong point ;)
Graham
20-Jul-2008
[7622]
well, I have had a similar problem.  I have a drop-list with title 
in it followed by a radio-group with gender, followed by occupation. 
 I want the user to skip the radio-group which is set based upon 
the droplist value.  Eg. drop-list is "Mr." and so set the radio-group 
to "M" and then skip to occupation.
BrettH
20-Jul-2008
[7623]
While tab ordering is a useful feature, in this case I'm trying to 
tab order by testing field content, I'm surprised that its considered 
a bit unusual :-)  In my data entry program I want the user to be 
able to set the work flow somewhat. , ie: on mass data entry they 
should not have to tab over the row of function buttons I have arranged 
along the bottom of the form, but when they tab 'out' of the last 
data entry field, the program saves the data, clears the form, replaces 
some common data and then return to the first entry field -- all 
without using the mouse. Not true key board navigation but very pleasent 
for the user. The user uses teh mouse to get to the buttons. This 
I am currently doing using VID.  Graham's usage is a very typical 
form interaction senario, one I was soon to try !
Graham
20-Jul-2008
[7624x4]
I'm going to have to try my own suggestion!
what has to be done to make keyboard navigation stronger?
display "" [ edit-list data [ "Mr." "Mrs." "Dr." "Miss" ] return 
field ] do-events
click on anything BUT "Mrs." and the focus is gone somewhere .... 
dunno where!
Graham
21-Jul-2008
[7628]
and of course this is a major impediment to using the keyboard.  
So, for an edit/drop list you have to click twice - once to choose, 
and then once to regain the focus.
btiffin
8-Aug-2008
[7629]
2.7.6 Demo of RebGUI.  If you try the spinner, Ctrl-MouseWheel then 
later try Functions/Requestors request-ui it fails with
** Script Error: Invalid argument: $10.00
** Where: init
** Near: all [not empty? text data: to type? first options text]
para/margin/x: size/y
p:

Where the invalid argument is the same data as the last Ctrl-Mousewheel. 
 So it could be 9:00, 18:00, $10.00 etc.
I haven't tracked through any of the code yet, being a lazy git.
Graham
14-Aug-2008
[7630x2]
How to make the rows of a table accessible to the cursor keys without 
using the mouse to grab focus?
display "" [ t: table 20x60 options [ "code" left 1. ] data [ 1 2 
3 4 5 6] do [t/select-row 1 ]] do-events

but the cursor keys don't work until I click on a row.
Graham
15-Aug-2008
[7632x2]
Looks like you can tab out of a table, but not into one.
Because you can't tab to a table, a table blocks the tab sequence 
across a form.
Graham
16-Aug-2008
[7634]
Ashley, is there a way to simulate a mouse click on the first element 
of a table so that arrow navigation can then be activated?
Ashley
16-Aug-2008
[7635]
Yes, I think. Something like:

	a: context [double-click: false]
	display "" [table options ["c" left 1.] data [a b] do [
		t/pane/1/pane/1/line/feel/engage t/pane/1/pane/1/line 'down a
	]]
	do-events


but this is not quite there. The trick is to pass the correct face 
argument to the engage function of the face-iterator.
Graham
16-Aug-2008
[7636]
what we need is anamonitor for Rebgui!  :)
Pekr
28-Aug-2008
[7637x3]
Can RebGUI table or sheet style contain check boxes? I need small 
util, which will allow ppl to choose multiple items from the catalog 
at the same time.
I know it has multiple line selection, but it is rather primitive.
Where can I find more info about API changes of RebGUI, which happened 
some time ago? I would like to get Cyphre's grid working, as it is 
many times better than table available, even without column resizing 
....
shadwolf
28-Aug-2008
[7640x4]
Pekr I can give you a rebGUI table widget I done long ago that handles 
it ... -> http://shadwolf.free.fr/rebgui-list52.r
this file includes widget + sample
I didn't tested it with new version of rebgui but it should still 
work
this code is free to use  you can edit copy redistribute etc...
Pekr
28-Aug-2008
[7644x2]
Thanks, will try in the evening, once I am back from my work ..
is it supposed to work stand-alone? What do I need to run it?
shadwolf
28-Aug-2008
[7646]
rebgui installed
Pekr
28-Aug-2008
[7647]
yeah ... I mean - I run - do %rebgui.r, and then? do I have to construct 
'display, or does it contain runnable example?
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
[7667x4]
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