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

World: r3wp

[!RebGUI] A lightweight alternative to VID

Carl
28-Sep-2009
[8566]
(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.
Ashley
7-Oct-2009
[8598]
In VID you specify the feel directly, in RebGUI you let the widget 
worry about these low-level implementation details. None of the default 
widgets need to pass mouse offsets back to the application, so if 
you need to do this then creating a new widget is the way to go. 
Having said that, I could always add another action handler (on-anything 
face action event) which would fire instead of the above case statement 
(i.e. handle the event as in VID or let RebGUI delegate it to the 
appropriate handler).
Pekr
7-Oct-2009
[8599]
would be nice.
Steeve
7-Oct-2009
[8600]
why not allowing the event as a default parameter for any action 
?

I mean, you only furnish the face as argument, can't you add the 
event too ?
Bobik
8-Oct-2009
[8601]
Steeve it sounds good! FYI:   I needed widget "box" with drag and 
drop features :-) I know it is possible to make new widget atc.. 
So after append-widget was removed, new widget creating is a little 
bit  cumbersom  and i have tried to catch FAE values directly in 
rebgui dialect...:-) I think there are more cases where to catch 
FAE would be useful for app programmer......
Ashley
8-Oct-2009
[8602]
can't you add the event too?

 ... I can, but that breaks a lot of the internal handler code. I'm 
 more interested in seeing what the other FAE cases are (I've yet 
 to hit any myself).
Pekr
14-Oct-2009
[8603]
As append-widget removal was oversimplification imo, especially for 
the widget authors, I created short script, which kind of automates 
the process ....

1) Save the script, e.g. make.r, into the RebGUI root dir

2) create one file, called %my-widget-list.r, containing unnamed 
block, containing file-names. Your widgets can be placed anywhere

3) create backup of %rebgui-widgets.r, call it %rebgui-widgets.old.r, 
in order to be able to easily "remove"  widgets by commenting them 
out in file 2)

Here's the script:
REBOL []

;--- to enable removal of unwanted own widgets, create
;--- copy of rebgui-widgets.r into rebgui-widgets.old.r

;--- remember to do so, when official distro release contains new 
widgets!
if exists? %rebgui-widgets.old.r [
  write %rebgui-widgets.r read %rebgui-widgets.old.r
]

;--- load list of widgets you want to include
;--- file containing un-named block of list of files to include
widgets-to-include: load %my-widget-list.r

template: "^-#include %widgets/^/"

;--- read RebGUI widget list (%rebgui-widgets.r)
tmp: read %rebgui-widgets.r

widget-buffer: copy "^/"

foreach widget-filepath widgets-to-include [ 

   widget: last split-path widget-filepath

   ;--- copy widget to the widget-directory
   write join %widgets/ widget read widget-filepath
  
   ;--- build string containing widget names you want to add ...

   ;--- but only when not already on the list - prevent duplicate entries
   if not found? find tmp widget [

        append widget-buffer (head insert find/tail copy template "/" widget)
   ]

]

;--- append to RebGUI widget-list (%rebgui-widgets.r)
change back back tail tmp (append widget-buffer "]")
write %rebgui-widgets.r tmp

;--- rebuild RebGUI distribution ...
call "create-distribution.r"
Graham
15-Oct-2009
[8604x2]
I'd like to see a generic accordion widget if possible.   So, if 
you had 4 "tabs" in the accordion, then each tab is associated with 
a layout.  If you click on a tab, the others collapse, and the clicked 
on one expands to show the hidden layout underneath.  If you click 
on an open tab, it should collapse .. so that the bottom tab's layout 
is exposed.


I've hard coded this stuff before but was wondering if a generic 
one could be written.
An accordion is like a tab panel but vertical as there is no horizontal 
space.
Ashley
15-Oct-2009
[8606]
Is there a Javascript one I can play around with somewhere?
Graham
15-Oct-2009
[8607]
http://jqueryui.com/demos/accordion/
Graham
16-Oct-2009
[8608]
Here's an accordion I did last night in Rebgui .. hard coded still 
though http://www.youtube.com/watch?v=VYSPNtpNaVU
Pekr
16-Oct-2009
[8609]
That's cool anyway :-)
Graham
16-Oct-2009
[8610x2]
A lot of work doing this manually!
The navigation panel on the left in Altme is an accordion :)
Henrik
19-Oct-2009
[8612]
http://www.dobeash.com/RebGUI/user-guide.html

Typo: bought (search for it)
shadwolf
19-Oct-2009
[8613x2]
event handling management in rebgui ....  that's a topic i wanted 
to discuss 3 or 4 month ago when i tryed to adapt  area-ct to rebgui 
...
ok but with new vid  in R3  what will be the future of rebgui ? ashley 
do you plan to keep rebgui as an enhancement and laboratory ground 
for new kind of widgets design in the new VID ? Or does the new VID 
will kill  rebgui ? What will be the link betwin R3/VID and rebgui 
do you think some of the fun widgets from rebgui will be adapted 
by default in R3/VID ?


If you remmeber i asked this like 1 year ago to carl and didn't get 
any reply...
Claude
21-Oct-2009
[8615]
hi, i find a probleme on rebgui-218 bluid with menu widget when i 
select a item !!!!!