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
31-Oct-2005
[2264]
using the original files from rebgui, I need to only make one change 
in rebgui-edit.r ?
Volker
31-Oct-2005
[2265x2]
Hmm, maybe i changed something else too. IIRC there was some problem 
with offset-to-caret somewhere. The fix to my fix is that one line, 
and defixing my change in %rebgui-widgets.r
Yes, another change in edit too, the
  0x2 + ;? heuristic patch
Graham
31-Oct-2005
[2267x2]
gee... I'm confused.  I put that line in the engage function after 
the switch and nothing happens.
do you have the complete files available with your fixes?
Volker
31-Oct-2005
[2269x2]
http://polly.rebol.it/test/test/rebgui/index.r
and the download.r there.
Graham
31-Oct-2005
[2271]
I ran download.r and it started up tour.r    ...was it supposed to 
do that?
Volker
31-Oct-2005
[2272x3]
Yes.
download.r is no longer the right name.
as my downloads now start a demo.
Graham
31-Oct-2005
[2275]
I note that editing is still broken though :(  if you enter lots 
of CRs in front of the sample text, the slider doesn't change to 
reflect this.
Volker
31-Oct-2005
[2276x2]
And it does not scroll when caret moves out.
Seems i commented something out?
Graham
31-Oct-2005
[2278x2]
I don't think it ever scrolled when the caret moved below the area 
margin.
Crossed fingers, but it seems to be largely working now.
Volker
31-Oct-2005
[2280]
I have a version here which does that. but do not know which version.
Graham
31-Oct-2005
[2281]
would be nice somehow to have version control with the editors we 
use.
Volker
31-Oct-2005
[2282]
There where to lines outcommented in %rebgui-edit.r . keeps caret 
visible now. (do not know if that has sideeffects.)
Graham
31-Oct-2005
[2283]
I wonder why Ashley couldn't keep the editor from VID.
Volker
31-Oct-2005
[2284]
He did and extended it, says the header. And made some wrong changes 
maybe. Maybe he got made because of the offset-to-caret-bug.
james_nak
1-Nov-2005
[2285]
How do you get a face to come to the forefront? After I've "displayed" 
it and say, go and click on some other window, how do I get the initial 
face to pop back up. In my case, I have a table of data and when 
the user clicks it, I want to have a more detailed view of that line 
of data.
Volker
1-Nov-2005
[2286]
window/changes: 'iactivate ;IIRC
james_nak
1-Nov-2005
[2287x2]
I'll try it. thanks.
Thanks Volker. That, plus a "show" worked.
Graham
1-Nov-2005
[2289x3]
Display is missing an options refinement.  I added one to 'display, 
and altered the view to this

			view/new/options view-face opts
		][
			view/new view-face
		]
either options [
			view/new/options view-face opts
		][
			view/new view-face
		]
didn't work though - when I tried using it with [ no-border ]
Graham
2-Nov-2005
[2292]
How would one get the layout for a window?  In VID, the layout can 
be assigned to a variable, but in Rebgui, that information is lost.
Volker
2-Nov-2005
[2293]
Would be the parent face of another face. Or patch display with a 
/set-option?
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.