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
19-Nov-2007
[6973x2]
Spider graph.
Enhanced TABLE
Pekr
19-Nov-2007
[6975x2]
ah, RebCode .... RebGUI :-)
sounds interesting .... tree-view is handy sometimes.
Luis
19-Nov-2007
[6977]
I want write a chat system. 

 RebGui provide me the client gui. Somebody knows a chat server with 
 history?
(synapse-chat server source code is not available)
Graham
23-Nov-2007
[6978]
Should there be an option for lists like table so that /redraw also 
sets the scroller back to the top?
Luis
27-Nov-2007
[6979]
A nice feature in altme is hyperlinks in chat. ( http://www.google.com
) 
Any way to get this feature en rebGui ?
Ashley
27-Nov-2007
[6980]
I'm sort of waiting for R3 rich text support before tackling that. 
It can be done in R2, but it's not pretty.
Luis
29-Nov-2007
[6981x2]
But R2 is here and now. I am coping & hacking  color.rebol.r  plug-in 
("Volker Nitsch" ) to rebgui ...
color-rebol.r from edit-tools.r
Kai
29-Nov-2007
[6983]
how do i set the window color in code (not through requestor)?
Ashley
29-Nov-2007
[6984]
display "" [
	area
	do [face/color: sky]
]
Kai
29-Nov-2007
[6985x2]
thanks
has the desire for table row-shading come up before? (My first day 
on ALTME - so bear with me if these conversations are somehow searchable...???)
Graham
29-Nov-2007
[6987x2]
Yes, and there is no such facility in RebGUI.
There is a grid but that needs work
amacleod
30-Nov-2007
[6989]
Is "work" being done?
Ashley
30-Nov-2007
[6990]
Robert emailed me his code, I just have to find some time to go through 
it and merge the grid-specific stuff.
amacleod
30-Nov-2007
[6991]
fantastic.
JohanAR
4-Dec-2007
[6992x2]
I'm getting a really weird display error from an area where I try 
to set the face/text manually.. I'll try to paste the code to reproduce 
(RebGUI #101)
REBOL [
	title: "Weird error in area"
	Date: 04-Dec-2007
	File: %areaerror.r
	Author: "Johan Aires Rasten"
	Version: 0.1.0
]

do %rebgui.r


; Values of 25 or less doesn't produce the error, but larger ones 
do
max-info-lines: 26


display system/script/title [
	panel sky data [
		after 1
		button-size 30
		button "Status" [print-info "status"]
		button "Archive" [print-info "archive"]
		button "test" [
			loop 30 [print-info "status"]
			loop max-info-lines - 4 [print-info "archive"]
		] 
		button "crash!" [print 1 / 0]
	]

 info-area: "To see error: Press test button, then Status once" area 
 80x40 #HW options[info] data []
]

info-area-list: make list! []

print-info: make function! [
	info
][
;	Add the line to the buffer
	append info-area-list rejoin [info "^/"]
	if max-info-lines < length? head info-area-list [
		remove head info-area-list
	]

; set-text works, but it moves the scrolling area to the top
;	set-text info-area rejoin make block! head info-area-list

; This produces weird errors:
	info-area/text: rejoin make block! head info-area-list
	show info-area
]

do-events
Ashley
4-Dec-2007
[6994]
Replace:


 info-area: "To see error: Press test button, then Status once" area

with:


 info-area: area "To see error: Press test button, then Status once"
JohanAR
5-Dec-2007
[6995]
Ah.. didn't solve my problem though :\
Ashley
5-Dec-2007
[6996]
Also, replace:

	info-area/text: rejoin make block! head info-area-list

with:

	info-area/text: form rejoin make block! head info-area-list
JohanAR
5-Dec-2007
[6997]
The text still becomes mangled when I press the status button
Ashley
5-Dec-2007
[6998]
Forget my two previous suggestions and try adding the following line:

	info-area/text: rejoin make block! head info-area-list
	info-area/line-list: none	; line to add
	show info-area
Kai
7-Dec-2007
[6999x2]
Ashley ~
in your RebGui tour under Configure UI, Behavior you have a tabbable 
field - among the widgets in there is drop-list. The Grouping tab 
cintains drop-lists among other widgets, yet I cannot tab to them... 
What am I missing?
Ashley
8-Dec-2007
[7001]
Good spot, edit-list is tabbable drop-list is not.
Kai
8-Dec-2007
[7002]
Hmm - I always strive to mave my UIs navigable by keyboard for speed 
and this necessitates use of  the rodent - any way to give tabbability 
here too?
Ashley
9-Dec-2007
[7003]
It's a problem as tabbable and focus usually go hand-in-hand. Button 
had the same issue, and required quite a bit of hacking to get it 
working. Other non-focusable widgets have the same issue (e.g. check 
and radio-group). Keyboard navigation has been an issue for RebGUI 
(and VID) for quite some time ... just ask Pekr ;)
Chris
9-Dec-2007
[7004]
iirc, Etienne's skin system was fully keyboard navigable.  I think 
it still resides on the (now defunct?) IOS Developer...
Kai
10-Dec-2007
[7005]
How can I change a button's click action?
Ashley
10-Dec-2007
[7006]
display "Test" [
	b: button [print "A"]
	button [
		b/action/on-click: make function! [face] [print "B"]
	]
]
Kai
10-Dec-2007
[7007x2]
Thanks Ashley!
How does attribute eval work for the data blocks of widgets like 
drop-list? Tried a few variations but none worked for me...
Ashley
10-Dec-2007
[7009]
v: "Initial"
d: [a b c]

display "Test" [
	drop-list v data d
	return
	area
]
Kai
10-Dec-2007
[7010]
I see - thanks
Robert
11-Dec-2007
[7011]
Ashley, what's this free-form BUTTON keyword inside a display block? 
Never saw this.
Ashley
11-Dec-2007
[7012]
Huh? button is a widget, it's been around for a long time ;)
Brock
11-Dec-2007
[7013]
I believe he's referring to the second time button is called to change 
button b's action.
Ashley
11-Dec-2007
[7014]
Oh, that. Assigning a new function to an action is also no big deal. 
I might turn some of these into cookbook entries though as what's 
obvious to me might not be to others ;)
GiuseppeC
13-Dec-2007
[7015]
I have taken a deep look at the GUI System available for Rebol I 
and my choice has gone to RebGUI. I have taken a look to to list 
VIEW project too and I have a request/proposal: why don't you merge 
the list view into RebGUI. It is really very powerful, much more 
the standrd lists available in RebolGUI. It woul be an huge improvement 
and we will have a GUI system on steroids for DB projects.
Pekr
13-Dec-2007
[7016]
Dunno how far is Ashley with the merge of Robert's RebGUI stuff, 
but once it happens, RebGUI will get powerfull enough grid (although 
not so powerfull as list-view) ...
Ashley
13-Dec-2007
[7017]
why don't you merge the list view into RebGUI

RebGUI is 127Kb of source (just over 4,700 lines of code)
LIST-VIEW is 93Kb of source (almost 3,500 lines of code)


The largest RebGUI widget is currently TABLE with 10Kb of source 
weighing in at 329 lines. That's about the limit of simple that I'm 
prepared to deal with. The effort required to merge LIST-VIEW is 
huge (GRID less so as it's already a [albiet earlier] RebGUI widget).


I've had a few people say (via email) that it would be easy. OK, 
here are the source code links:

	http://trac.geekisp.com/rebgui/browser
	http://www.hmkdesign.dk/rebol/list-view/list-view.r

I'd like it merged and fully tested by Monday thanks. ;)
GiuseppeC
13-Dec-2007
[7018x2]
Ashley, my question is probably from a primer but someone told me 
that I can't use RebGUI and LIST-VIEW in the same project in 2 different 
windows. Would it be easier to make the two projects compatible instead 
of merging them ?
LIST-VIEW  seems very usefull when dealing with database viewing/modification/filtering. 
Even if they are merged it would be good to use them independently.
amacleod
13-Dec-2007
[7020x3]
\nhn
nn0,n00=
\