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
10-May-2006
[3613]
Hmm. I tried out commenting out the ESC mapping in rebgui-edit.r 
without much luck.
Robert
13-May-2006
[3614x2]
on-focus / unfocus glitch: If you CLICK outside a field or into an 
other field, the unfocus action isn't triggered. That's a bit weired 
because it can break control logic for things like: show form A if 
field get's entered, hide form A if field is left.
Can this be simply fixed?
Robert
14-May-2006
[3616]
I just want to inform you that Cyphre will work on some RebGUI fixes. 
We will do the fixes first against an internal version and test them. 
As soon as the changes are stable we promote them into the publicj 
repository.
JaimeVargas
14-May-2006
[3617]
Good news. ;-)
Ashley
14-May-2006
[3618]
Excellent. If he can also have a quick look at SVG Renderer (SVG 
-> AGG) that would be good (scaleable icons / tool-bar have been 
blocked on this for a long time).
Robert
15-May-2006
[3619]
Yes, but don't expect it in the near future as this isn't high on 
my priority list. I need other stuff fixed first.
Pekr
15-May-2006
[3620]
I would prefer Cyphre bringing decent table/grid style :-)
Robert
15-May-2006
[3621]
Step by step. With List-View we have a very good implementation that 
"just" needs to be made RebGUI compliant.
Henrik
15-May-2006
[3622]
if anyone wants to help with the port of LIST-VIEW... I know nothing 
of RebGUI.
Ashley
15-May-2006
[3623]
I'll have a look at it over the weekend. Is the current version stable? 
(i.e. are further changes pending)
Henrik
15-May-2006
[3624]
I expect more changes to come, but I think it would be a good idea 
anyway to figure out a method to quickly update for both VID and 
RebGUI, maybe with separate code sections and a small build script.
Graham
17-May-2006
[3625]
** Script Error: Cannot use path on none! value
** Where: edit-text

** Near: if caret/y < (edge/size/y + para/origin/y + para/indent/y) 
[scroll/y: round/to scroll/y - caret/y sizes/
font-height]
Anton
18-May-2006
[3626x2]
On it...
How do you reproduce this bug ? Are you using unmodified area widget 
?
Graham
18-May-2006
[3628]
No, it was on a field widget :(
Anton
18-May-2006
[3629x2]
Do you have a small example ?
I'm unable to reproduce the error.
Graham
18-May-2006
[3631x2]
I was just back spacing on a field widget when this happened.
the cursor was not at the left end of the field, but in the middle 
.. I think the caret was confused as it was an empty field
Anton
18-May-2006
[3633x2]
Was the text facet set to none, perhaps ?
(no that gives another error.)
Graham
18-May-2006
[3635]
I have a field which I clear when I add the contents to the database. 
 But the caret is not set back to left edge.
Anton
18-May-2006
[3636x4]
I see...
Let me do some tests.
Workaround probably just focus the face again.
This doesn't happen in VID because clicking outside the face clears 
the focus.
Graham
18-May-2006
[3640]
this is probably the reason why the error occurs.
Anton
18-May-2006
[3641]
;These two work:

display "" [f: field "hello" button "clear" [clear f/text system/view/caret: 
none show f]] do-events

display "" [f: field "hello" button "clear" [clear f/text ctx-rebgui/edit/focus 
f]] do-events
Graham
18-May-2006
[3642x3]
I think i use clear-text
let me check.
yep
Anton
18-May-2006
[3645]
display "" [f: field "hello" button "clear" [clear-text/focus f]] 
do-events
Graham
18-May-2006
[3646]
ok, I'll try that.
Anton
18-May-2006
[3647]
I think either:

- clear-text should check to see if head face/text and head system/view/caret 
are the same. If so, then obviously caret needs adjustment.
or

- edit-text should handle the error, since clear-text is potentially 
not the only function which can leave the caret inconsistent with 
face/text.
Graham
18-May-2006
[3648x2]
Agree.
with latter.
Volker
18-May-2006
[3650]
How to create a RebGUI widget http://www.lexicon.net/antonr/rebol/doc/create-a-rebgui-widget.html
sends me to http://w3.eftel.com/home.cms
Anton
18-May-2006
[3651]
Now available here:

http://home.wilddsl.net.au/anton/rebol/doc/create-a-rebgui-widget.html
Volker
18-May-2006
[3652]
Thanks :)
Anton
18-May-2006
[3653]
Still works :)
Pekr
19-May-2006
[3654x2]
guys, did you test get-rebgui on systems without view installed? 
I was just informed, that it states that downloading manifest OK, 
but apparently the directory does not exist at all  ....
to hell with installation and system "friendliness" :-)
Anton
19-May-2006
[3656]
What version of rebol is it ?
Volker
19-May-2006
[3657x3]
Hoiw is the svn related to get-rebgui? %tour.r ismissing?
;bug? if my face is smaller than min-size, it is initially smaller 
on screen. This works in 'display:
	;	min-size?
	if find view-face/options 'resize [
		insert tail view-face/options 'min-size
		insert tail view-face/options either min-size [size] [
			view-face/size + switch/default fourth system/version [
				3	[8x34]	; WindowsXP
			][
				4x30		; Others
			]
		]
if view-face/size <> max view-face/size size[
 span-resize view-face size - view-face/size
 view-face/size: max view-face/size size
]
No, buggy too.
Ashley
19-May-2006
[3660]
How is the svn related to get-rebgui?

 The SVN is for developers / experienced REBOLers ... it is used to 
 manage individual widget source files. %get-rebgui.r obtains a pre-built 
 distribution (including a merged %rebgui.r, %tour.r, images and demo 
 scripts). It is targeted at 'end users' who don't want to use SVN.

%tour.r is missing

 I want to add it *without* having to also add sample icon images 
 to the SVN. I'll probably just 'inline' the images so it's all in 
 one big file.


min-size: read this very carefully: http://www.dobeash.com/RebGUI/display.html#section-2.1.2


The Note says it all: "The min-size limit will only be enforced upon 
a window resize, and the size is inclusive of an OS specific number 
of border / title pixels. Also note that if any widgets are resizeable 
(#H and #W) and min-size has not been specified then RebGUI will 
assign a default value equal to the initial window size."
Pekr
20-May-2006
[3661]
Anton - latest version ....  but I suggested Bobik to sipmly install 
rebol and see if it helps ....
Graham
20-May-2006
[3662]
why would you want to test rebgui without view installed??