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

World: r3wp

[!RebGUI] A lightweight alternative to VID

Robert
2-Apr-2006
[3259x2]
Tab panels can't be used, because it's XOR. So either show A or B.
Doing a hidden layout and than plugging it into the current one would 
be best. But than I have to deal with PANE etc. IMO that's to low-level. 
I would like to have a way to alter the layout dynamically.
Normand
2-Apr-2006
[3261x2]
Ashley, thanks for the answers.   I cant figure out from the tour 
how to show some new values of data in a table.  What is wrong with 
the instructions in the two buttons.
Rebol []
#include %rebgui.r
unless value? 'ctx-rebgui [do %rebgui.r]

display "ProspectGUI" compose/deep/only [

 ex-table: table 120x40  #HW options ["ID" left .2 "Nom" left .4 "Prenom" 
 left .4] data [1 "Vac" "Gus"] []

 button "Delete1" [ ex-table/data: [2 "Cah" "Sug"] ex-table/redraw 
 ]

 button "Delete2" [ show-data ex-table [2 "Cah" "Sug"] ex-table/redraw 
 show ex-table]
]
do-events
Graham
3-Apr-2006
[3263x3]
try working with the existing data, and not creating new lists.
insert head clear ex-table/data  [2 "Cah" "Sug"]
ex-table/redraw
when I was tabbing .. got this

** Script Error: Cannot use path on none! value
** Where: next-field
** Near: all [
    item: find face/parent-face/pane face
    while [
        if tail? item: next item [item: head item]
       ...
Robert
3-Apr-2006
[3266x2]
Ashley, what's the state for the load/save OPTION implementation 
into RebGUI? Did you start already? If not, let me know. That's something 
I want to push forward.
load/save: I mean get back/fill in all fields in a structured way 
so that it can be used with SQLite.
Graham
3-Apr-2006
[3268]
what do you mean by this?
Robert
3-Apr-2006
[3269]
If you have a form with several fields I want to have something like:
	store data-form
and get back a block like this:
	[name text  "Graham" rebol value true ...]

So for all widgets where the SAVE flag is set, the name of the widgit 
word, the word and value is returned. With this it's possible to 
handle records very comfortable.
Ashley
3-Apr-2006
[3270]
put-form/all my-display block-of-values-returned-by-sql-call
blk: get-form my-display


I've got as far as thinking about how it could / should be implemented 
(there are some interesting issues with grouping widgets like group-box, 
table, text-list, etc); but my focus at the moment is to complete 
the SVN setup / structure / documentation / usage instructions so 
as collaborative development can begin (and I am no longer the bottle-neck 
in changes being implemented). Unfortunately, I'm two weeks into 
an intensive four week certification course (non-IT related) so REBOL 
things are on the back burner for a while (although I'm popping in 
here to answer the odd question here and there where I can).
Graham
3-Apr-2006
[3271]
I'm not sure that this is relevant, but I did some basic screen validation 
for vid, and documented here


http://en.wikibooks.org/wiki/REBOL_Programming/Language_Features/Parse/Screen_Validation
Thør
4-Apr-2006
[3272]
manual resync...
Graham
4-Apr-2006
[3273x3]
Is there a "fit" for images as in Vid?
umm... the other way round... display an image in it's native size.
unscaled.
Ashley
4-Apr-2006
[3276]
image effect 'fit
image effect [fit]
Julia
4-Apr-2006
[3277]
i can't undestand - what's the best way to change view of widgets, 
for example i want to change arraws of slider in textarea?
Graham
4-Apr-2006
[3278x2]
this is rebgui ...
image effect 'aspect ... was what I was looking for.
Julia
4-Apr-2006
[3280]
?
Ashley
5-Apr-2006
[3281]
want to change arraws of slider in textarea?

 ... change in what way? Look? Feel? Where the arrows are located? 
 Arrows or chevrons? Colour?
Anton
5-Apr-2006
[3282x6]
I think Julia wants to do skinning, changing the look of the slider. 
Well, I programmed the slider/scroller, and I can say that it is 
not easy to reskin. You will have to get your hands dirty :)  When 
rebgui first came out, it was intended to be very lightweight, so 
I think Ashley only started to want to add fancier abilities like 
skinning later. When I wrote slider/scroller, I was trying to be 
as minimalist as possible, so it's quite "hard-wired" with respect 
to how it draws itself.
Maybe Julia means how to change the colours ? Well, as I remember, 
I just used button colours.
Ashley, how's the splitting of widgets into separate files going 
? What method are you using to integrate them into the final context 
?
Here is a very simple patch to slider, which makes a nice half-second 
pause at the beginning of a scroll:
				if find [down time] act [
					if act = 'down [face/rate: 2]
					if act = 'time [face/rate: 16]
The above two lines are of course highly amenable to be optimized 
into one. (This way is just more similar to the original code.)
(Just search for the first line "	if find [down time] act ["  to 
find the correct position for the patch...)
Ashley
5-Apr-2006
[3288]
Thanks.


 "how's the splitting of widgets into separate files going?" Done, 
 it's all in SVN now: http://trac.geekisp.com/rebgui/browser


Anyone who wants dev access (both source and Wiki write access) just 
drop me a private message and I'll get you a username (same as REBOL3 
username) and password. A lot remains to be done before I open it 
up to full collaborative access, but having a few folks on it means 
we can test the infrastructure / process (in addition to getting 
some changes into RebGUI faster).

Changes like the above are good candidates to start with. ;)
ChristianE
6-Apr-2006
[3289]
Hi Ashley, I'd really like to be part of the trac RebGUI initiative, 
so, may I ask you to set up an account for me?

I'm currently working on compatible improvements for the tab handling 
to allow tabbing in and out of widgets grouped in e.g. group-boxes, 
which I'd like to see being part of the official distro.
Robert
6-Apr-2006
[3290]
I would like to get an account as well.
Ashley
6-Apr-2006
[3291]
Done and done. SVN client software is available at:

	Windows: http://tortoisesvn.sourceforge.net/

 Mac: http://www.lachoseinteractive.net/en/community/subversion/svnx/features/
	Linux: http://esvn.umputun.com/


Please flag any source code changes you make with a comment that 
includes your initials.
Graham
6-Apr-2006
[3292]
What's the way to change the font size and unit sizes?  I see you 
have this in the demo but it's not clear to me how this is used.
ChristianE
7-Apr-2006
[3293]
Graham, you simply SET-SIZES MY-UNIT-SIZE and SET-FONTS/SIZE MY-FONT-SIZE, 
RebGUI does all the rest. If you then unview and redisplay you'll 
see the changes.
Graham
7-Apr-2006
[3294x2]
Ok, I got it now.
ctx-rebgui/widgets/set-sizes unit-size font-size
Someone was trying out my program on an UMPC (Origami) so I needed 
to resize down to that size.
Ashley
7-Apr-2006
[3296x2]
Note that 'set-sizes and 'set-fonts are global.
At least in 0.4.1 that is.
Graham
7-Apr-2006
[3298]
ahh.. I just looked at tour.r and you set them within the context.
Robert
7-Apr-2006
[3299x2]
I have the following problem: I need to provide a drop-list with 
two columns. And one of the columns has long texts in it, so that 
you can't read it if the drop-list isn't made extremly wide. Has 
anybody an idea how to best create the GUI for such a selection?
Maybe something like a tooltip would help...
Volker
7-Apr-2006
[3301]
or make it clickable and open a text-window?
Graham
8-Apr-2006
[3302x2]
Anyway to filter on a table ?
So, only display rows that match a certain criterion?
Ashley
8-Apr-2006
[3304]
Not presently.
[unknown: 9]
9-Apr-2006
[3305]
KEY123 (please ignore)
Graham
10-Apr-2006
[3306]
Can you change the size of text within a table?
Ashley
10-Apr-2006
[3307]
Not individually as it uses default-font.
Graham
10-Apr-2006
[3308]
how about all the text in a table ?