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
1-May-2006
[3499x2]
In mine, the cursor also jumps to the bottom of the area, but the 
text is not showing the bottom of the text.
Basically the problem is unnecessary scrolling of the text is occuring.
Anton
1-May-2006
[3501x2]
Yes, it's a simple algorithm for determining the scroller position 
I think. It needs to have a "window".
I'll see what I can do with this a bit later.
Robert
1-May-2006
[3503x2]
I have uploaded the "create-distribution.r" script Ashley posted. 
Sorry, for being that fast. But this one is mandatory otherwise the 
repository doesn't make any sense to me.
Why not add prerebol.r etc. to the reposititory as well? Into an 
own folder: distribution. Those files belong to a good repository 
as well. Normaly you even add the interpreter version this one works 
with.
Graham
1-May-2006
[3505x2]
prerebol.r ... not going to change it.
so makes not that much sense to include it?
Anton
1-May-2006
[3507]
I don't already have prerebol.r. It's not for the user to care which 
dependencies are  needed.
Robert
1-May-2006
[3508x2]
Exactly, that's why I would like to include it. If you check out 
the files and read the docs, you should be able to create the latest 
release with on click.
I hate those projects, where you have to collect for weeks any tools, 
patches etc.
Anton
1-May-2006
[3510]
I'm in total agreement. Why make it difficult ? We need to test our 
changes don't we ?
Graham
1-May-2006
[3511x2]
oh .. well, I just wasn't sure about the licensing for prerebol and 
whether it had to be downloaded from rebol.com
or was freely redistributable
Robert
1-May-2006
[3513x2]
If there is a licensing issue, let's ask Carl.
But IIRC it's included in rebol.org as well?
Graham
1-May-2006
[3515]
not the latest
Ashley
1-May-2006
[3516]
I'd rather, as mentioned before, extract the bits needed (#include 
processing) from prebol.r and prerebol.r into the one script. No 
licencing issues and only a single script to maintain.
Robert
1-May-2006
[3517]
Good idea.
Anton
1-May-2006
[3518]
I was thinking that, too. Probably your include needs are not complex.
Graham
2-May-2006
[3519x3]
In reverting these changes to area, I came across this problem
** Script Error: sizes has no value
** Where: context
** Near: margin: as-pair sizes/slider + 2
I guess I must be mix and matching from different versions of rebgui 
...
Anton
2-May-2006
[3522]
How is that possible ? I've just gone into the SVN repository directory 
with rebol and typed:
	do %rebgui-ctx.r
	display "" [area]
Graham
2-May-2006
[3523x3]
I think I am using an older version of rebgui ...
not the one from the svn.
So, I need now to track down the older source for the area widget
Anton
2-May-2006
[3526]
Use SVN, then you can see the changes. Or are you locked to an older 
version ?
Graham
2-May-2006
[3527x4]
I'm sortof locked into an older version as I put some changes in 
to it .. more error trapping, extra fields in widgets etc.  I guess 
I'll have bit the bullet.
I updated my version to latest, ran the create-distribution script, 
and then tour.r
Script: "RebGUI widget tour" (30-Apr-2006)
** Script Error: unit-size has no value
** Where: init
** Near: as-pair unit-size * 1.5 unit-size
anyone got a checked version working with tour.r?
Ashley
2-May-2006
[3531]
Works for me, I think its your version of tour.r that's the problem 
(should be 0.4.2).
Graham
2-May-2006
[3532x10]
Yes, you were corrrect Ashley.
Would you check in a version of Tour.r into the SVN ( and the images 
as well ) ?
When trying to set the value of a radio group, I usually got an error 
about pf being none
so, I had this in my radio-group definition
down [
								pf: face/parent-face
								either all [ found? pf pf/data <> face/data ][
									;	deflag old
									old: pf/data
									if old [
										clear skip pf/pane/:old/effect/draw 7
										show pf/pane/:old
									]
									;	flag new
									pf/data: face/data

         insert tail face/effect/draw compose [pen (colors/true) fill-pen 
         (colors/true) circle (as-pair sizes/cell * 1.5 sizes/cell * 2.5) 
         (sizes/cell - 1)]
									show face
									pf/action pf
								][ ;; GC

          insert tail face/effect/draw [pen leaf fill-pen leaf circle (as-pair 
          sizes/cell * 1.5 sizes/cell * 2.5) (sizes/cell * 1.5)]
										show face
										face/action face
								]
I didn't make any notes, but it checks to see if pf is none or not, 
and if none, does the alternate action.
I didn't see a way of creating layouts with no borders, so, in rebgui-display.r, 
line 50, I added this to the list of refinements
/options

 opts [block!]	"Window options [no-title no-border resize] (must be: 
 block word)"
and at line 112, changed the block to read
either dialog [
		unless no-hide [
			hide-popup ; workaround until /away and parent options work
		]
		show-popup view-face
	][
		either options [
			view/new/options view-face opts
		][
			view/new view-face
		]
	]
Robert
2-May-2006
[3542]
Did you uploaded those patches as well?
Graham
2-May-2006
[3543x2]
No, I haven't sought an account.
I'd rather people vet my code first .. I'm just not too familiar 
with the rebgui internals.
Henrik
2-May-2006
[3545]
does rebgui have a toolbar widget?
Graham
2-May-2006
[3546]
There is one in the tour.r so I guess so.
Henrik
2-May-2006
[3547]
ok
Graham
2-May-2006
[3548]
How would one provide function keys that are globally accessible? 
 I want to make F1 a help key that is context sensitive ( sensitive 
to which pane has focus etc )