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

World: r3wp

[!RebGUI] A lightweight alternative to VID

shadwolf
5-Oct-2005
[2086x6]
List view is  thinked like a rendering engine you give to it a stutured 
list of datas then you get it on screen
so you modify the datas structure (internal datas) then make a show 
listview-var1  to make the changes applyed on screen
I give a very simple sample of this in the list-view052.r script
adding is easyer than removing ...
and it's because of rebol enerant problems...
but thing like remove list-view-var1/buffer  list -view-var1/picked 
 show list-view-var1  can be handeled easyly  ...
Graham
5-Oct-2005
[2092]
tab-panel ...
shadwolf
5-Oct-2005
[2093x7]
lol ...
hum i work on tabpannel 10 month ago so i don't know ... but it must 
be the same kind of working
but there you need to desalocate the tabs contente  other while lot 
of memory leaks
for example an IRC client like Xchat will use tab pannel for every 
window (dialogue private , chat rooms, servers notices )
in this case you need obviously to add and remove tabs ^^
but then you must treat not only the countainer but the content too 
on allocation that's obvious but on disallocation it can be a nightmare 
to handle could be interresting to make a recursiv short cut to  
disalocate things
for example  my-tab/dealloc-tab 2 (this ill call for destruction 
of the tab insert and countainer and redraw of the remaining tabs 
... )
Graham
7-Oct-2005
[2100x2]
I'm having a lot of problems typing into an area field.  The cursor 
will jump to the bottom of the screen when I'm typing in the middle 
:(
It jumps down when u use the cursor to go down thru an empty line 
in the middle of some text.
Graham
10-Oct-2005
[2102x2]
Anyone know how I can replace the editor used by RebGUI with the 
one use by VID  (until it gets fixed by Ashley ) ?
I guess it's the feel for the area widget.
Volker
10-Oct-2005
[2104]
ctx-text/edit? soomething in that context.
Graham
10-Oct-2005
[2105]
Perhaps it's the feel for the para I need to alter?
Volker
10-Oct-2005
[2106x2]
to patch rebgui?
where is the current link for rebgui?
Graham
10-Oct-2005
[2108]
http://www.dobeash.com/files/RebGUI-037.zip
Volker
10-Oct-2005
[2109]
do i need something else for logo.png?
Graham
10-Oct-2005
[2110x2]
Oh, also need the base distro.
http://www.dobeash.com/files/RebGUI-030.zip
Volker
10-Oct-2005
[2112]
problem is, cursor down goes to end?
Graham
10-Oct-2005
[2113x3]
yeah ...
and also, if <enter> in middle of editing text, cursor goes to end
and if editing text, and text wraps, then enter a space, cursor jumps 
to end.
Volker
10-Oct-2005
[2116x6]
interesting bug (?) in offset-to-caret. if the cursor is between 
lines, there is no text.
http://polly.rebol.it/test/test/rebgui/rebgui-edit.rpatches cursor-down. 
look for ";?".
show looks weird:
redraw: func [face act pos][

        if all [act = 'show face/text-y <> second size-text face] [
            face/text-y: second size-text face 

            face/pane/ratio: face/parent-face/size/y / face/text-y 

            unless face/pane/ratio < 1 [face/para/scroll/y: 0 edit/focus face]
        ]
    ]
that does a focus and changes caret? i tested, the messing with /caret 
is in show.
added focus-check in area: http://polly.rebol.it/test/test/rebgui/rebgui-widgets.r
. return works
Graham
10-Oct-2005
[2122]
** Script Error: Invalid argument: redraw
** Where: context
** Near: feel: make edit/feel [
    redraw: func [face act pos] [

        if all [act = 'show face/text-y <> second size-text face] [
            face/text-y: second size-text face

            face/pane/ratio: face/parent-face/size/y / face/text-y

            unless face/pane/ratio < 1 [face/para/scroll/y: 0 edit/focus face]
        ]
    ]
]
esc:
Volker
10-Oct-2005
[2123]
did i upload something wrong?
Graham
10-Oct-2005
[2124]
I only changed rebgui-edit.r so far.
shadwolf
10-Oct-2005
[2125]
yes this is a upg version you need 0.31 tu make it work (images, 
dicionary,translation=) etc
Volker
10-Oct-2005
[2126]
My setup: http://polly.rebol.it/test/test/rebgui/download.r, but 
american.dat is big. then try the area in tour.
Graham
10-Oct-2005
[2127x4]
Excellent !
If I had any money for this project, I'd take you on Volker!
Which files do I need to change ?
I prefer your spell checker too .. :)  This one seems to want to 
correct every word :(
Volker
10-Oct-2005
[2131]
could make a spellcheck-demo with rebgui.
Graham
10-Oct-2005
[2132]
which files did you change?
Volker
10-Oct-2005
[2133x2]
changed rebgui-edit end rebgui-widgets (area there). my usual change-mark 
is ";?", search for that.
(had to look that up. realize i loose concentration, time to stop 
the computer.)
Graham
10-Oct-2005
[2135]
yeah, the download script needs to preserve the file dates :)