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-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.
Ashley
16-Jul-2007
[6747]
After I arrow down and hit enter I get a newline as follows:

demonstrates ...
|area ...
area ...


RebGUI build#95 with default ctx-rebgui/behaviors (I deleted %ui.dat 
first to be sure).
Graham
16-Jul-2007
[6748x8]
oh well ...
Just tried it again with the rebgui.r on the rebol desktop
same bug
says build #93 though
tried again with build #95 - and problem still is present.
this is a fresh checkout
I took a screen video of what I am seeing http://compkarori.no-ip.biz:8010/index.php?title=Unrelated_Software_Resources&token=1184580090#attachForm
http://compkarori.no-ip.biz:8010/Unrelated_Software_Resources
Graham
17-Jul-2007
[6756]
If you couldn't see it, the server got reassigned another IP address 
and so port forwarding failed :(
Ashley
17-Jul-2007
[6757]
I downloaded it (476Kb) but under both Quicktime and VLC it appears 
as a large gray rectangular area for about 11 seconds!?
Graham
17-Jul-2007
[6758]
Hmm.  Works find under Vista for me.  I'll see if I can convert it 
to another format then.
Graham
18-Jul-2007
[6759]
I don't have anything to convert it .. but it plays fine on Vista. 
 I've uploaded it again in case it got corrupted.
Ashley
18-Jul-2007
[6760]
No dice. Anyone else able to download and view it?
btiffin
18-Jul-2007
[6761]
It worked with Totem Movie Player on my Debian box
Graham
18-Jul-2007
[6762]
and Brian, are you able to reproduce the bug demonstrated?
btiffin
18-Jul-2007
[6763]
Yes I can.  Moving down from inside "combination" to the period, 
then pressing return does NOT insert a newline.  I'm using build 
93.
Graham
18-Jul-2007
[6764]
Thank god someone else sees this bug!
Ashley
19-Jul-2007
[6765]
Ah, got it! I tried it again but without inserting a return after 
each copy and I see the problem (finally). It's actually inserting 
a return at the tail of the text then repositioning the caret to 
the start of the next line. The 2nd half of that operation is correct. 
Will debug this soon.
Graham
19-Jul-2007
[6766]
it onl happens if the scroller is not at the bottom of the scroller 
widget
Ashley
19-Jul-2007
[6767]
Got a simple test case for this now:

	area 20x14 "a^/b^/c^/d"


Position the caret after the letter "c" or "d" then press Enter. 
The caret is repositioned incorrectly.
Graham
19-Jul-2007
[6768]
easier than my video !
Graham
2-Aug-2007
[6769]
Any progress?
Ashley
2-Aug-2007
[6770]
Hoping to look at it over the weekend.
Graham
2-Aug-2007
[6771x2]
Great.
Anyone any experience with dual monitor setups?  user tells me that 
this happened after  he moved app from one monitor to next

make object! [
   code: 316
   type: 'script
   id: 'no-memory
   arg1: none
   arg2: none
   arg3: none
   near: [show face
       orig-size: face/size
       exit
   ]
   where: 'wake-event
]
Ashley
3-Aug-2007
[6773]
Looks like a View error to me.
Pekr
3-Aug-2007
[6774x3]
I have some experience here, but View apps simply worked. Multimonitor 
set-up means, that you basically have one big area, where axis x= 
axis x(1) + axis x(2), axis y = max (axis y(1), axis y(2))
in the past, there was bug in View (not sure it was fixed, but someone 
told me so), than once you changed resolution in OS, View app crashed 
...
I used nVidia cards exclusively, hating ATI. So, I had defined accelerator 
keys for moving windows from one monitor to other, typicall ctrl 
alt num1 (or num2). That worked with AltME and other View based apps. 
I have also some Win32 wrappers to do so - resizing, window z-axis 
positioning, setting window position, etc.
Ashley
5-Aug-2007
[6777]
Uploaded area caret positioning fix to SVN. "Fix" was to comment 
out Anton's code in the area widget that kept the caret inside the 
visible part of the area. This changes the behavior of area and may 
have other unforeseen consequences (i.e. fixing one issue may have 
created another).
RobertS
5-Aug-2007
[6778]
my dual monitors are on dual nVidia cards, i.e., 2 identical cards: 
is there something I can help test?
Graham
5-Aug-2007
[6779]
apparently there is no problem with shifting an encapped app from 
one screen to another.
Graham
7-Aug-2007
[6780]
Feasible to be able to double click on a spell choice , have that 
replace the current highlighted word and then automatically move 
on to the next word?
Ashley
7-Aug-2007
[6781]
Yes, I'll look into that.
Graham
7-Aug-2007
[6782]
I had a try but it momentarily highlights the next word and then 
the highlight vanishes
Graham
21-Aug-2007
[6783]
Should this work?


display "" [ field "" button "Set" [ set-values face/parent-face 
[ "content"] ] ] do-events
Ashley
22-Aug-2007
[6784]
Yes, just add a "show face/parent-face" after the set-values and 
it'll work fine.
Graham
22-Aug-2007
[6785]
I guess there is an inconsistancy here in that set-text shows the 
text.  Do we need a set-values/no-show ?
Ashley
23-Aug-2007
[6786]
Probably. I'll look at adding that to the next build.
Graham
10-Sep-2007
[6787x2]
Got this on a edit-list 

make object! [
   code: 311
   type: 'script
   id: 'invalid-path
   arg1: 'dbl-action
   arg2: none
   arg3: none
   near: [p/parent-face/dbl-action p/parent-face]
   where: 'wake-event
]
and there are no actions  associated with the edit-list.