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

World: r3wp

[!RebGUI] A lightweight alternative to VID

Graham
2-Nov-2005
[2294x4]
I'm sure it is, but that defeats the purpose of rebgui which is to 
build a complete gui toolkit without having to know the internals.
Had a quick look, the display function creates a local variable view-face 
which stores the layout.
So, if we add a return view-face to the end of the function, we can 
get 'display to now return the layout.
Cool... that works.  I can now get a png of the layout and dump to 
the filing system.
Graham
3-Nov-2005
[2298]
Is that Ashley I see online ??
Ashley
3-Nov-2005
[2299]
Yep, just catching up with 5 weeks of snail mail and REBOL3 AltME 
messages ... should take another day.
Graham
3-Nov-2005
[2300x2]
Just to get you up to speed, I think the major problem to fix is 
the editor in the area.  To fix : cursor keys, and pageup/down behaviour 
especially at boundary, and also cr behaviour.  Highlighting is also 
problematic.
Also, need accessors to set radio buttons, and to move the cursor 
in a table, including selecting mulitple rows (oneTom)
Graham
4-Nov-2005
[2302x2]
Oh, and request-file needs the /keep refinement restored.
Ashley, have a look at this : http://www.rebol.net/cgi-bin/rambo.r?id=3801&

Seems RT have now fixed this bug.  Hopefully a new SDK will come 
out with the fix as well.
Graham
5-Nov-2005
[2304x3]
Another problem - RT's request-dir traps when you try to access a 
directory that is not available, but RebGui's crashes.  And it can't 
be trapped with a try block at the request-dir level.
Added an attempt 

lst: text-list 100x50 data [(read-dir path)] [
				attempt [

    path: dirize clean-path join path pick face/data first face/picked
				show-text txt to-local-file path
				insert clear face/data read-dir path
				face/redraw
			]
			]
which stops the crash.
Ashley
6-Nov-2005
[2307]
OK, back on board now.
Graham
6-Nov-2005
[2308]
Wow, took you 3 days to read down this far ?  ;)
Ashley
6-Nov-2005
[2309x2]
Plus every other group! ;)
Updated issues log with all issues raised since 0.3.7.
Graham
6-Nov-2005
[2311x3]
Let me read and see if any are missed ..
You're missing all the problems with the area widget .. or rather 
the editor.
oops .. looking at closed issues.
Ashley
6-Nov-2005
[2314x2]
Wishfull thinking ;)
Added Czech dictionary file (see http://www.dobeash.com/it/rebgui/roadmap.html) 
and dat files provided by Bobik (see http://www.dobeash.com/files/CzechWin.dat
and http://www.dobeash.com/files/CzechLinux.datfor different char 
encodings - win-1250 & ISO-8859-2 respectively).
Graham
6-Nov-2005
[2316]
by 51, I mean that the drop list does not display below the boundary 
of a group box
Ashley
6-Nov-2005
[2317]
Fixed in next update.
Graham
6-Nov-2005
[2318x6]
I altered display to return the layout rather than no return value
Also, I don't think there's a way to set the window options viz no-border
Is the group-box a functional grouping?  I'd prefer that tabbing 
moves to the next group box and not recycle within the same group
I use the group box as a visual container and not a functional one
In a radio group, if you preset a value eg data [ 1 "M" "F" ], the 
radio/data is none, whereas it should be 1.
Hmm.  Works in my test .. just not in my program :(
Ashley
6-Nov-2005
[2324]
1) display mod - just by adding "view-face" at the end of the function 
I presume? Does that give you what you need? (I was thinking of adding 
a "no-show" type refinement for folks who wanted display to return 
a face *without* doing a view - to-image being the main usage case)


2) Window options - needing to set these implies a new widget is 
required or you need more control than RebGUI was designed for


3) Group-box is a functional grouping, tabbing between widgets within 
the same group-box is normal behaviour - what is missing is *another* 
mechanism to tab into and out of group boxes
Graham
6-Nov-2005
[2325]
1. yes.
Ashley
6-Nov-2005
[2326]
shadwolf - is your list-view widget (v0.52) ready for me to merge 
into 0.3.8 or should I wait until it's 100%?
Graham
6-Nov-2005
[2327x2]
Having view-face returned means I can create an image of the layout 
with to-image.
How can I set the title of an existing window ?
Ashley
6-Nov-2005
[2329]
show-title
Graham
6-Nov-2005
[2330x6]
which requires a face object
So, how to find face object ?
You need the view-face returned by display/
This is what i am doing to fill a form up from data

display "" [ r: radio-group 30 data [ "M" "F" ] return
button "Value" [ print r/data ]
do [	r/pane/2/feel/engage r/pane/2 'down none ]
] do-events
print r/data gives none instead of 2
Ok, I can set r/data: 2 at the same time.
Ashley
6-Nov-2005
[2336]
1) show-title

	display "a" [button 200 [show-title face/parent-face "b"]]

	or

	display "a" [button 200 [show-title p "b"] do [p: face]]

2) radio-group

	display "" [
		r: radio-group 30 data [2 "M" "F" ]
		return
		button "Value" [ print r/data ] 
	]
Graham
6-Nov-2005
[2337x3]
ok.
in the radio group though, I have a form already up, and I am pulling 
in data from a file to repopulate the form.
So, in the do block of the window, I am reading the data from a file, 
and then settting all the values.
Ashley
6-Nov-2005
[2340]
Fair enough, although in that case you could also do something like:

	blk: read my-file
	display "" compose/deep [
		...
		r: radio-group 30 data [ (blk/5)  "M" "F" ] 
		...
	]
Brock
6-Nov-2005
[2341x2]
Not sure if you are looking for any inspiration or other ideas... 
here is a link to a javascript version of a pretty nice Data Grid... 
http://www.activewidgets.com/
I believe the code is downloadable as well.
Graham
6-Nov-2005
[2343]
r: radio-group 30 data [ (blk/5)  "M" "F" ]


Except doesn't this mean I now will need two versions of the same 
layout?  One with compose, and one without?