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

World: r3wp

[!RebGUI] A lightweight alternative to VID

Pekr
20-Jun-2007
[6697]
There is much better one, done under the contract by Cyphre. It is 
called grid. It allows you to have visible/non visible columns, row 
or cell hilighting, whatever content in a cell, vertical plus horizontal 
scroll. It's only drawback is, that first release does not contain 
column resizing.
amacleod
20-Jun-2007
[6698]
Sounds good! Does it work with Rebgui?
Pekr
20-Jun-2007
[6699x3]
Unfortunatelly, before it was fully finished, RebGUI got some api 
changes, and I am not sure how long would it take to adapt.
It was RebGUI only ....
and you can find it in the widgets folder. It is just not included 
in the demo.
amacleod
20-Jun-2007
[6702]
that helps bigtme! thanks!
Pekr
20-Jun-2007
[6703x2]
I hope it should not be a problem to adapt. IMO Cyphre would do it 
in one day, but let him work on R3 :-)
Robert also said, he has extended table widget. Don't remember exactly 
what was added, maybe horizontal scrolling ...
Graham
20-Jun-2007
[6705x3]
easy to have hidden fields in the table widget
I normally put all my hidden columns in at the front of the table 
options definition
and assign them a width of .001 which does the trick.
amacleod
20-Jun-2007
[6708]
where is the widgets folder? On the website?
Graham
20-Jun-2007
[6709]
http://trac.geekisp.com/rebgui/browser/widgets
amacleod
20-Jun-2007
[6710x2]
I tried the .001 trick..That might surfice. Thanks Graham!
I found grid.r on trac.geekisp. How do I download the script from 
here? I've tried to cut and paste but hte line numbers come along 
with it. And how do I use it with rebgui?
Pekr
20-Jun-2007
[6712]
download - we all use TortoiseSVN, which you can install as an Explorer 
extension to Windows. Then via right mouse button context menu you 
choose -update, and point it to svn archive - you can find link somewhere 
on rebgui site.
amacleod
20-Jun-2007
[6713]
thanks
Pekr
20-Jun-2007
[6714x3]
and as I said - grid.r will not work imo. There were some changes 
in rebgui and someone would have to adapt it.
I can eventually send you a source, if you want.
It is a pity, as it it light-years more powerfull than table, which 
is just - plain vid list, with column resizing, nothing really more.
amacleod
20-Jun-2007
[6717]
what is the last version of rebgui that it works on?
Pekr
20-Jun-2007
[6718x4]
I will check if I have such one, and send you email eventually. I 
switched jobs inbetween, so dunno if I have it here.
but I sent it to Graham, maybe he might to send it to you ...
OK, I've got it .... checking your email ...
sent to your email I found here in your altme profile ...
amacleod
20-Jun-2007
[6722]
Pekr, I got your email, thanks. I'm unable to get the tests to run. 
getting an error.
Pekr
20-Jun-2007
[6723x2]
what version of View are you running? I run 1.3.2.
also note - you have to have rebgui.r in your app directory, as it 
is used by grid.r
amacleod
20-Jun-2007
[6725]
the rebgui file does no seem to be formatted properly. Its all one 
long line.
Pekr
20-Jun-2007
[6726]
it is ok, that is how ti was distributed in the past - packed
amacleod
20-Jun-2007
[6727x2]
I'm using view 1.3.2.3.1
I'm running he test app with grid.r and rebgui in same directory. 
Do  I need to "Do" grid.r?
Pekr
20-Jun-2007
[6729x6]
yes ...
ah, no ...
I just looked, it only does rebgui.r, because grid.r is part of the 
package ...
I will try to send it to you in .zip archvie ...
maybe mailer did something to it
sent ...
amacleod
20-Jun-2007
[6735]
Bingo! it works. Thanks for all your trouble!
Pekr
20-Jun-2007
[6736]
ah, super! Now how to get it working with latest version of RebGUI 
:-) Also note, that docs are very brief, so most of the functionality/features 
are hidden in source code ...
Graham
30-Jun-2007
[6737x2]
Looks like trac.geekisp.com/rebgui is down ...
as is www.geekisp.com
Graham
1-Jul-2007
[6739]
Regarding my boundary issues with rebgui and the area widget, this 
is what happens


If I am typing at the bottom of the screen and the scroller bar is 
shorter than the scroller height, and the bar is placed up against 
the top, then entering a return places the caret at the head of the 
current line instead of at a new line.

If I move the scroll bar to the bottom of the scroller widget, <return> 
then it does move to a new line.

There are no problems if the scroll bar occupies the whole of the 
scroller widget.
Graham
3-Jul-2007
[6740]
make object! [
    code: 902
    type: 'internal
    id: 'stack-overflow
    arg1: none
    arg2: none
    arg3: none
    near: [unless find [object! block!] type?/word get]
    where: 'into-widget
]
Ashley
5-Jul-2007
[6741]
re: boundary issue. Is this the same "issue" as:

	display " [
		area "a^/b^/c^/d^/e^/f^/g^/h^/i^/j^/k"
	]


Then click on the first line to position the caret next to the "a". 
Now drag the scroller down and observe how the caret position changes 
to remain visible. Is this behaviour correct? (BTW, an answer of 
"No" raises a whole bunch of other issues).
Graham
6-Jul-2007
[6742]
well, it's not the behaviour I'm observing.
Graham
15-Jul-2007
[6743]
Any resolution ?
Ashley
16-Jul-2007
[6744]
I can only reproduce the behaviour you describe (boundary scrolling) 
with the test case posted above ... and in that case it's a "feature" 
not a bug. But the situation you describe is different in one important 
respect ... it doesn't insert a newline. Do you have a simple test 
case which demonstrates this? (It might be a combination of a certain 
area size, font-size and number of lines).
Graham
16-Jul-2007
[6745x2]
rebol []

do %rebgui.r

display "" [
	a: area 100x150

]

do-events
Now paste the sentence you wrote above 7 x into the area box ...the 
caret stays between the n and a in combination.  The scroll is not 
at the bottom.  Move the caret down one by using the arrow keys, 
and hit enter.  The caret moves to the beginning of the line instead 
of creating a new line.