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

World: r3wp

[View] discuss view related issues

Robert
2-Jan-2006
[3719]
Let me know, if you want to take a look at the source code.
Henrik
2-Jan-2006
[3720]
thanks! I'll take a look at it.
[unknown: 9]
2-Jan-2006
[3721]
Cool stuff.
Pekr
2-Jan-2006
[3722x2]
yes, absolutly ... IIRC Robert suggested his form dialect to be accepted 
for VID, no?
it would be good if RebGui had similar schemas ...
Henrik
2-Jan-2006
[3724]
version 0.0.14 uploaded

Changes:
      Fix: Documentation updates
      Fix: Multiple lists accidentally shared the LIST-SIZE value
      New: Custom layout block can now have multiple rows
        at the cost of horizontal resizability
      New: Now using ROW-FACE to store the custom layout block
      New: If HDR-COLS is set to a single word in a block,
        it will take the width of the list view.
      Fix: Code size optimization of navigation functions

      Info: The version between 0.0.12 and 0.0.14 is mysteriously missing... 
      :-)


The demo has been changed a bit to test custom layouts and multiple 
lists.

http://www.hmkdesign.dk/rebol/list-view.r
http://www.hmkdesign.dk/rebol/list-view.html
Graham
2-Jan-2006
[3725]
possible to configure slider width as an option ?
Henrik
2-Jan-2006
[3726]
try list-view/scr/resize/x <value>
Graham
2-Jan-2006
[3727]
i'm using your list in my chatclient ...
Henrik
2-Jan-2006
[3728]
nice. :-) screenshot?
Graham
2-Jan-2006
[3729x3]
.. well, using version 0.0.11 :)
http://www.compkarori.com/reb/if you have IE and plugin.
or, http://www.compkarori.com/reb/pluginchat.rif using rebol.
Henrik
2-Jan-2006
[3732]
please note that now when using custom layout, it's not possible 
to have a horizontallly resizable list, because it's hard to determine 
how the elements should be resized without making the layout code 
complex (if no one has any suggestions, that is...)
Graham
2-Jan-2006
[3733]
I think rebgui assigns percentages to each column for horiz resizing.
Henrik
2-Jan-2006
[3734x2]
that's a good idea! I think I'll implement that soon.
oh well... off to bed. lots of work tomorrow
[unknown: 9]
2-Jan-2006
[3736]
** Script Error: case has no value
** Where: read-msg
** Near: case [
    parse clientmsg ['cmd set usercmd block!] [
        case [

            parse usercmd ['set-userstate set chat-users block!] [
                update-chatlist]]]

    parse clientmsg ['action set userblock block! set cmdblock block!] 
    []

    parse clientmsg ['chat set userblock block! set payload block!] [
        if error? set/any 'err try [
            payload: load payload
            insert tail payload now
            if all [payload/1 = "Eliza" f-10/data] [
                return]
            repend/only chat-list msgline: copy payload
            either viewed? chat-lay [

                f-chat/pane/size/y: append-msg reduce msgline f-chat/pane/size/y

                f-sld/redrag f-chat/size/y / max 1 f-chat/pane/size/y
                f-sld/step: 1 / max 1 (length? chat-list)
                if f-sld/data = 1 [
                    slide-chatpane 1]
                show [f-chat f-sld]] [
                display-chat/new 10x10]] [
            probe disarm err]]
    true []]
foreach channel chatroom-peers
>>
Graham
3-Jan-2006
[3737]
That's an old version now.  As you've discovered, 'case isn't defined 
in the plugin.  I've used Ladislav's 'case for the later versions 
.. 
Don't know why you're seeing this now .. unless it was cached.

A later version if not the latest is http://www.compkarori.com/reb/pluginchat5.r
Henrik
3-Jan-2006
[3738x2]
bug: the background doesn't scale above something that looks like 
800x600
is something supposed to happen when you select a user from the list? 
It reacts very slowly and sometime require multiple clicks before 
it responds
Graham
3-Jan-2006
[3740x8]
The list doesn't work in the browser as the list needs AGG.  It works 
in View, but doesn't do anything at present except display online 
status.  It scales for me fine up to 1024x768.
Make sure it is version 0.0.15 ...
Just tried it again .. you're right.  The list elements react very 
slowly.  Wonder why that is ?
Maybe I need to try your latest list-view ?
the buttons at the list top react okay though .. just the rows are 
sluggish.
Just playing with it .. I've only got two list entries, and the top 
one responds each time.  It's the bottom one that is resistant.
So, looks like a bug in that version of the list-view.
Trying it with 3 elements now.. only the top one responds reliably.
Henrik
3-Jan-2006
[3748x2]
I found a bug that might be related to that, but it only shows up 
if your row height is different than 20 pixels. It was fixed in 0.0.14.
the AGG part... right. the sort button uses AGG to display the sorting 
arrow. I could make that into an image and do some tests on an older 
View and see if it can run there...
Graham
3-Jan-2006
[3750x3]
view-list/scr/resize/x resizes the scroller in the list, but doesn't 
fix the little box above it.
Where do you set the row height again?
ok, found it .. can set the row height in the widths block.
Henrik
3-Jan-2006
[3753x2]
do you use RESIZE on the entire listview after updating the width 
of the scroller?
I think I've gotten rid of the AGG dependency and that will be part 
of 0.0.15, but there are many other dependencies, so I don't know 
whether it'll work with the plugin.
Graham
3-Jan-2006
[3755x3]
no, I didn't.
list/update resets all the row heights, and scroller width
Does your list support 0 width columns ?  For storing row related 
data that you don't wish to display.
[unknown: 9]
3-Jan-2006
[3758]
Or 0 row for related column data.
Pekr
4-Jan-2006
[3759x2]
Henrik - can I set-row somehow? I mean I can 'get-row, but would 
like to set particular row hilighted and if not in view, it should 
be scrolled to have it in view ....
my understanding is, that it is still VID dependant, so can't be 
used for Rebgui, right?
Graham
4-Jan-2006
[3761]
li/change-row-here ["This Row" "Has Been" "Changed"]
Pekr
4-Jan-2006
[3762]
change is different matter, no? you can change some data, but you 
just want to refresh the grid, not moving hilite. But I look for 
the option to programmably hilite particular row/cell
Graham
4-Jan-2006
[3763]
scroll-here
	

Scrolls the list so the selected value comes into view.
Henrik
4-Jan-2006
[3764]
graham: 0 width columns seems to work fine in 0.0.14 here, but you 
may not need it once column filtering is properly implemented. then 
you determine which columns need to be displayed with OUT-COLS and 
in which order
Pekr
4-Jan-2006
[3765x3]
ok, thanks ...
btw - lock-lst should be preserved for real locking, I would maybe 
introduce - no-edit, or no-select flags ... just a naming convention 
...
but maybe you don't intend on locking? - e.g. like in excel, typical 
split view, you want to lock few rowns/columns, to not be scrolled 
....
Graham
4-Jan-2006
[3768]
Henrik, there is no /resize function.