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
17-Sep-2009
[8548]
UI question. What's the "standard" way to deselect a selected table/text-list 
row. I've seen:

	a) click the selected row (i.e. toggle mode)

 b) click outside the parent widget (i.e. deselect on focus change)
	c) don't allow it (the current RebGUI behavior)


I can see problems with each approach, but c) requires another widget 
(typically a button) to produce the desired behavior.
marek
17-Sep-2009
[8549]
Thanks Graham for confirming. Thanks Ashley for quick fix of the 
last problem.

Problem I tried to explain before still remains. Lets explain it 
better, if I can.


>>display "test" [table options ["a" left 1.0] data [11 22 33] field 
edit-list data [1 2 3] field] do-events

If one selects first line in table and tries to <TAB> around one 
gets stack on edit-list (drop-list too).

If, on the other hand, one selects any other line of table, edit-list 
gets focus and tabbing continue to work, but only after it reaches 
table again.
I hope it's not too hard to fix. Thanks.
btiffin
17-Sep-2009
[8550]
Ashley;  RebDOC feature request.  How hard would it be to add a Keywords 
tab to this uber handy app?  (Second part of the request being a 
please please if it won't take too much of your time)
Graham
17-Sep-2009
[8551]
a) ... I don't want to deselect as a button may require the row to 
be selected to act on it.
marek
17-Sep-2009
[8552x2]
I will try my luck again with this 2 items.


When using edit-list or drop-list, there is a way to crash it. Just 
click on the widget, hilight any line on the list and press <TAB>.

>>display "" [edit-list data [1 2]] do-events ;;-> stack-overflow 
error message pops up.


Table widget has different gap in the last column on the right without 
and with the scroller. It' only cosmetic thing and maybe it is customary 
to be like that.

>> display "" [table options ["a" right 1.0] data [1] table options 
["b" right 1.0] data [2 3 4 5 6]] do-events

Can anyone confirm, please. Ashley?
Is it by design, or it's still not working in build 216.

>> display "" [f1: field disable button [set-text f1 "?"]] do-events
marek
19-Sep-2009
[8554x2]
Another stumble block in my slow attempt to write my little program. 

Try to select edit-list and hit enter key.

>> display "" [table options ["a" left 1.0] data [] edit-list []] 
do-events ;-- works as it should

>> display/dialog [table options ["a" left 1.0] data [] edit-list 
[]] ;-- window disappears

It maybe related to the table problem I mentioned before.
I made a little mistake, but it makes no difference.


>>display/dialog "" [table options ["a" left 1.0] data [1 2 3] edit-list 
data []]  ;-- it still disappears, even if first line selected
Ashley
23-Sep-2009
[8556x2]
Problems noted for build#218.
Build 217
- added dbl-click support to request-dir
- added keywords to RebDOC (descriptions to follow in build#218)
Pekr
23-Sep-2009
[8558]
Ashley - why tree-view node icons (arrows) were removed? Or is it 
only in tour.r?
marek
23-Sep-2009
[8559]
One more test to help with debugging. It works with build 207. It 
stops working with buid 208. At least for me.


>>display "" [field table options ["a" left 1.0] data [1] field] 
do-events


Click on field and try to tab around. You can't even select any field 
any more (208). Using empty table is even worse. With 2 rows at least 
it works, but one may need to grow table gradually.
Maxim
23-Sep-2009
[8560]
(btw www.dobeash.com is still down for me)
marek
23-Sep-2009
[8561]
It may be last one, I don't know.


display "" [table options ["a" left 1.0] data [1 2] [set-text el 
first face/selected] el: edit-list data []] do-events


Select row 1 and row 2. Build 205 works ok. Build 207 doesn't with 
first row of table - nothing shows on edit-list. Replacing edit-list 
with field makes it work ok in 207 (and up) again.
Ashley
24-Sep-2009
[8562x2]
why tree-view node icons (arrows) were removed?

 ... tree-view was reimplemented to face-iterator ... havn't got around 
 to adding arrows/icons for the nodes yet
... dobeash.com is still down

 ... getting the domain transferred is taking much longer than expected, 
 hope to have it back up within 3-5 days
... stops working with buid 208 ...

 thanks marek, most of those issues are due to the major tabbing changes 
 that occurred in 208. Fixing them is still a WIP.
Build 218
- fixed area resize bug
- added dbl-click support to request-file
- added /only refinement to request-dir
- improved editor save logic
- generalized RebDOC keyword support
- face-iterator now supports toggle-row
btiffin
25-Sep-2009
[8564]
Ashley;  you da man.   Thanks for the RebDOC update.   That level 
of information at the fingertips is sweet!
Carl
28-Sep-2009
[8565x2]
The missing dobeash.com domain is #1 in feedback messages this week 
here at RT.
(Actually, that was last week. :)
Pekr
28-Sep-2009
[8567]
if someone creates content, we can create rebgui.com and host it 
on my server - the process would not take longer than one day ...
Carl
28-Sep-2009
[8568]
Did Ashley say that he had a backup of the content?
Pekr
28-Sep-2009
[8569x3]
Dunno, but I hope so. Loosing domain does not mean you loose your 
content ...
... but - that is just some backup plan, Ashley said he is going 
to get his domain back.
Apart from that, let's hope that in few months, we are back to R3 
GUI, and that is where the most of interest of outer community is 
going to be ;-)
Carl
28-Sep-2009
[8572x2]
He made a note above about a problem... and cancelled the entire 
account.
Yes, R3 GUI is very important to me as well.  The question is...
Pekr
28-Sep-2009
[8574]
let's move to R3 group here ...
Carl
28-Sep-2009
[8575x2]
What does it take to get more active participation of developers 
on it?
ok
Graham
28-Sep-2009
[8577]
The issue is the DNS record....
marek
28-Sep-2009
[8578]
Serious bug introduced in build 218 or even 217.

Drop-list and edit-list widgets produce past-end error on list selection. 
Tested tour.r, RebDOC.r and in terminal. Nothing works.
Graham
28-Sep-2009
[8579]
All these changes appear to have degraded the usability of rebgui 
somewhat
marek
28-Sep-2009
[8580]
This is interesting bug.


>>display/dialog "" [edit-list data ["a..." "b..."]] ;; try to enter 
something starting with "a" or "b"
** Script Error: Invalid path value: lines
** Where: wake-event
** Near: pf/lines: to integer! pf/size/y /


Any other start is OK. No modal mode is OK. Happens with 218 (less 
selection bug) and 216 as tested by me.
Graham
28-Sep-2009
[8581]
pf is pop-face
Ashley
30-Sep-2009
[8582]
re: dobeash.com
	- transfer of domain OK
	- ftp of backup content to domain OK
	- http access ... not working ... will investigate

R3 GUI is very important to me as wel
 ... ditto!!!


All these changes appear to have degraded the usability of rebgui 
somewhat

 ... remember that these are development builds, only accessable via 
 SVN. I was hoping to stabalize and "release" by end of this month 
 (September), but the domain issues I've been having have probably 
 pushed that back a month.
Ashley
2-Oct-2009
[8583]
Fixed domain server entries 24 hours ago ... so dobeash.com should 
once more be accessable.
Graham
2-Oct-2009
[8584]
resolves for me
Bobik
4-Oct-2009
[8585]
Hi Ashley, i would like ask you how to make new widget after you 
have removed function append-widget. I have not found any function 
to do it... sorry i am a dommies and may be there similar func exists 
 :-)
MikeL
5-Oct-2009
[8586]
The RebGUI documentation looks great.   Is there also an advanced 
comprehensive example application for viewing ala CureCode as a Cheyenne 
application?
Ashley
5-Oct-2009
[8587x2]
Bobik, to create a new widget:

	1. Add your new widget to the %Widgets/ directory

 2. Edit %rebgui-widgets.r to add an #include entry for your new widget

 3. Run %create-ditribution.r which will "compile" a new version of 
 %rebgui.r for you
MikeL, thanks. Have a look at %tour.r, then %RebDOC.r ... there's 
not many comments but the code should be fairly easy to follow.
MikeL
5-Oct-2009
[8589]
Sweet! Sorry I missed %tour.r on my first look.
Bobik
6-Oct-2009
[8590x3]
Ashley: thanx a lot! :-)
So i have just one question - is it possible to get  position info 
of mouse on event ON-CLICK , for example when i have box 10x10 on-click 
[get mouse position ....] ?
I know - VID method engage has EVENT, where can i get event/offset...... 
so how to get such value in rebgui to avoid do new widget :-) ?
Pekr
6-Oct-2009
[8593]
Hmm, on-click gets face argument. The only thing I am able to come-up 
quickly is

box red 10x10 on-click [print face/offset]


But that just gives you face offset. From face/offset and face/size, 
you can get idea about the area, but not sure about the mouse event 
offset ...
Bobik
6-Oct-2009
[8594]
face/offset - you get offset of face(in such case offset of box) 
but not offset of mouse
Pekr
6-Oct-2009
[8595x2]
That is what I said - "but that just gives you face offset".
box red 10x10 on-click [print mold get in face 'feel]

make object! [
    redraw: none
    detect: none
    over: none
    engage: func [face act event][
        case [
            event/double-click [face/action/on-dbl-click face]
            event/type = 'time [face/action/on-time face]
            act = 'up [face/action/on-click face]
            act = 'alt-up [face/action/on-alt-click face]
            act = 'key [
                face/action/on-key face event
                face/action/on-edit face
            ]

            act = 'scroll-line [face/action/on-scroll face event/offset]

            act = 'scroll-page [face/action/on-scroll/page face event/offset]
        ]
    ]
]


Now how to get into the feel, and hook somehow into 'engage method 
:-)
Steeve
6-Oct-2009
[8597]
I never used RebGui, but if you can get the object constructed like 
with VID:
b: box red 10x10 on-click [print face/feel/pos]

then you can patch b with something like:

b/feel: make b/feel [
	pos: 0x0 
	engage: func [f a e] compose [
		pos: e/offset 
		(get in b/feel 'engage) f a e
	]
]


That overloads the engage function wihout losing her actual content.