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
4-Jan-2006
[2810]
Yep, they need to be modal windows.
MichaelB
20-Jan-2006
[2811]
How do I easily change a 'view-facet in RebGUI while creating a widget 
?

E.g. I want to change the font size of a few 'labels to 16pt, so 
I have to copy the font object. But the using do [] only the last 
do seams to get evaluated - actually nothing else is written in the 
doc - but how to do this without handstands ?
Ashley
20-Jan-2006
[2812]
display "" [
	label "Bigger font" font [size: 16]
]
MichaelB
25-Jan-2006
[2813x2]
Why does the following not work ? Anamonitor shows that the engage 
got into place, but the rate doesn't work. I seam to forget something,
 
with rebgui:

do %rebgui.r
display "test" [
    text "hello"
    do [
        face/rate: 5
        face/feel: context [
            engage: func [f a e][
                print 'bla
            ]
            redraw: detect: over: none
        ]
    ]
]
do-events


with vid:

x: layout [button "hallo"]

x/rate: 5
x/feel: context [
    engage: func [f a e][
        print 'bla
    ]
    redraw: detect: over: none
]

view x
do-events

???any help :-)
I tried to track it down and read the docs - I even think I encountered 
the same problem some years ago - but if so I forgot the solution 
or what came out of it.
A minimal window face works:

view make face [
    offset: 100x100
    text: "test"
    color: yellow
    edge: none
    rate: 2
    feel: make feel [
        engage: func [face action event] [
            print 'bla
        ]
    ]
]


but if using a more complex face, as the one which comes out of 'layout, 
it doesn't work anymore. ???
Ashley
25-Jan-2006
[2815]
I've seen this problem before as well, has something to do with the 
way 'rate is handled I think. Note that for the RebGUI example the 
'detect function is assigned by 'display, and if you want to debug 
the final result just add the following to the do block:

	do [a: face ...]

then you can examine the face post layout.
[unknown: 9]
28-Jan-2006
[2816]
Ashley, what is the license for RebGUI?
Ashley
28-Jan-2006
[2817]
From my website: http://www.dobeash.com/it/rebgui/


RebGUI is a community project that is free for both commercial and 
non-commercial use. Dobeash Investments Pty Ltd retains copyright 
on the name RebGUI and the concepts embodied in the display function 
as well as all associated documentation other than that which covers 
REBOL/View Facets.

Code submissions, in particular widgets, will 
be accepted and credited to the author under the condition that they 
carry these same licence conditions.
shadwolf
28-Jan-2006
[2818x4]
to be easier to understand you are free to use it until you let authors 
name on it and don't claim the invention or part of it is yours  
^^ unless you apport some relevent code in it and even then you are 
the author of what  you write but not on the whole project  ^^
cool be cool to provide an AGG  based logo to be display in the about 
of the application well rebgui look and widgets are enought "original" 
to be recognized on every project that use them for initiate ppl 
...  but could be cool to get some way to attract users to interrest 
some ho on the  back ground
it's like until your car works fine you don"t  care of what is inside 
the  engine but hte day  you  get some problems with your car  you 
try to figure out what is inside at least to not being over charged 
in the  fixing work
having a logo in the about can help ppl to see  easly what application 
use rebgui and then maybe attract them to our philosophy  and all 
the background in their application
Jerry
28-Jan-2006
[2822]
Does anyone have Tree View Face in REBOL? Thanks.
Henrik
28-Jan-2006
[2823x2]
I've seen one made by Cyphre, but I don't know if it's freely available
or demoed by Cyphre at least...
Jerry
29-Jan-2006
[2825]
Thank you, Henrik. I have a homemade buggy REBOL TreeView face. Maybe 
I should just spend some time fixing it.
[unknown: 9]
29-Jan-2006
[2826]
I'm going to move this over to the licensing group, since I think 
this is more about that than RebGUI.  Simply will be using Reb GUI 
as test subject.
MikeL
29-Jan-2006
[2827]
Jerry, Alain Goye created a outliner he called NoteReb http://alain.goye.free.fr/rebol/NoteReb.r
that may give you a base to learn from .. if you need to.
shadwolf
29-Jan-2006
[2828]
tree view is one of the some other widgets i plan to make but ( there 
is allways a but)  i would like to make it svg compliant for  symbols 
(but this can be done after wise) what is important for me is the 
ability to set a symbol system (you can use default one or give your 
own symbols for group leaft),  auto show of the slider according 
the level of it , function that handle the selection when you clic 
on a leaf you can or get it's value and post treat it or run a callback 
called on leaft clic event  the last point is the data structure 
common structure used by many many prjects is [ "group_name" [ "subgourp" 
[ "leaf1" "leaf2" "leaf3"]] "goup_name2" ["leaf" "leaf" "leaf" ] 
] if text is followed by a block! this means the text is a gourp 
label other wise it's a leaf label
Jerry
29-Jan-2006
[2829]
Thank you, MikeL.
MichaelB
30-Jan-2006
[2830]
Ashley: what about adding in a radio-group in the rebgui-widgets.r 
file the line

pf/action pf

below the line ca. 1340 

face/action face

in the init section where the engage feel is defined. 

I needed to be able to execute the 'action function when the radio 
buttons change, but in the current implemention only the local action 
functions of the single buttons get evaluated, not the sourounding 
group. But if I'm right only for the parent level the action block 
can be defined, as the layout function only sets this block (if found). 
So either I missed a way even to set the functions for the single 
buttons (via normal means - no hacking) or it would be good to add 
at least the above shown line.


secondly some improvements which would be nice, what's everybodys 
opinion about this:

1. in order to be able to get a reference to a window - display should 
return the window-face

2. it should be optional whether the first window will be the parent 
of all other subsequently opened windows, as this affects the behavior 
of the order of view of the windows, eg. I can't bring the other 
windows completely to the front


it's no big deal to insert it into the code right now, but maybe 
it makes sense to have some of these options in general.

How to actually supply so small changes to the project ? Just posting 
them here - I guess so ?
Ashley
30-Jan-2006
[2831]
Good suggestions all. Here is fine for small changes, complete widgets 
or function rewrites can be placed online or emailed to me.
shadwolf
1-Feb-2006
[2832x2]
graham needs a good relevant stable and easy to set tooltip system. 
Some time later i proposed a style tooltip hudgly over ridding the 
common VID styles adding a way to set tootips on normal VID widgets
so the design for tootips on rebgui can be simple and proposed like 
this:  a field called tooltip on all meaning rebgui widget plus the 
insertion on those widgets to the event  timer / show/hide system 
for the over viewed text box of the tooltip
Ashley
2-Feb-2006
[2834]
This is yet another thing that would be so much easier to implement 
if feel/detect worked correctly. See RAMBO# 3867.
Pekr
2-Feb-2006
[2835]
Ashley - Carl announced there is the right time now to gather bugfixes 
for 1.3.3 and he asked us to remind Gabriele, which bugs we want 
to have fixed in preference. Maybe you could contact Gabriele about 
your Rambo ticket?
Graham
2-Feb-2006
[2836x7]
Anyone know why this doesn't work?
view layout [ button "Rebgui" [ display "" [ text "Rebgui from Vid" 
]]]
when I click on the "Rebgui" button .. nothing happens.
but this works
display "" [ button "VID" [ view/new layout [ text "VID" ]]] do-events
ie. RebGUI can display VID windows, but VID can't display RegGUI 
windows.
Ashley, I have modified RebGUi a little..so can you confirm the above 
?
Ashley
2-Feb-2006
[2843]
Works fine here. BTW, what were the mods? ;)
Graham
2-Feb-2006
[2844x6]
Just tiny things ... like adding an extra data field for buttons 
to store stuff.
And 'display returns view-face instead of nothing.
And I have Volker's mods to the area editing.
and attempts around other parts of the editor ... to stop crashes
Hmm.  So, I need to roll back my changes until the above works again 
:(
Very odd... I have my main rebgui application .. which opens up a 
VID based chat client ( pluginchat.r ).  While the chat client is 
open, some of my rebgui windows using 'display, stop opening.  Close 
down the Vid window .. and it all starts working again.
Ashley
2-Feb-2006
[2850]
Not hitting nested do-events?
Graham
2-Feb-2006
[2851x2]
since you confirmed that

view layout [ button "Rebgui" [ display "" [ text "Rebgui from Vid" 
]]]
works for you but not me... I think it's something else.
Is there a new distro out ?
Ashley
2-Feb-2006
[2853]
0.3.8 (6-Dec-2005) is the latest.
Graham
2-Feb-2006
[2854x2]
Ok. I'll download a virgin copy and try this out.
after I go to sleep first :(
Ashley
2-Feb-2006
[2856x2]
Remember it's just do http://www.dobeash.com/files/rebgui/get-rebgui.r
now, with the files going to public/dobeash/files/rebgui.
On that note, would it be usefull for the script to prompt for, "Press 
Enter for Public dir, anything else for current"?
Anton
2-Feb-2006
[2858x2]
It will take a little while to add that functionality. The download 
script assumes the public cache all the way, so it will be a little 
tricky.  Not really hard, but you will have to be careful.
Did someone actually need a specific directory instead of the public 
cache ? I would have thought if someone wants to maintain their own 
directory, then they can get the files out of the public cache themselves. 
That way if they are patching they can be sure their patches aren't 
overwritten by accident.