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

World: r3wp

[View] discuss view related issues

Henrik
18-Jan-2006
[4045x3]
the way it works is that you have some basic retrieval functions, 
such as GET-ROW, GET-COL and such. They use fixed positions to get 
the row you want from DATA, such as if you want row number 6, you 
type in:

get-row 6


Then there are all the -HERE functions, which simply retrieve data 
from the selected rows and columns. If the name was to change, I'd 
probably go for GET-SELECTED-ROW and such.
works the same for inputting data
there is a problem with GET-SELECTED-COL, because it could be misinterpreted 
as you want to return the entire column, and not the single value 
at a specific position in a row. I've not adopted the term "cell", 
but would that be appropriate? I normally only associate it with 
spreadsheets.
Graham
18-Jan-2006
[4048]
it is a table cell though
Anton
18-Jan-2006
[4049]
Ryan, re CGI: Maybe try  size-text: none   at the beginning of the 
script ?  That "might" work.
Ryan
18-Jan-2006
[4050x2]
Anton: huge thanks! Brilliant, well, if it works. Perhaps plopping 
it in the user.r, rebol.r, or prefs file.
Henrik: what about using get-col-here as get-col with get-col/at 
to specify pos.
Henrik
18-Jan-2006
[4052]
ryan, that's a possibility
Ryan
18-Jan-2006
[4053]
selected behavior by default. seems nice.
Henrik
18-Jan-2006
[4054x2]
yeah, however there might be a slight confusion: Currently the -HERE 
functions take in account filtering and sorting, so that you always 
edit or retrieve the right row regardless of these settings. the 
other functions get and put directly in DATA. The behaviour would 
either need to change or I'd have to add another refinement
there could be a /direct refinement.
Volker
18-Jan-2006
[4056]
-marked ?
Henrik
18-Jan-2006
[4057x3]
(because I believe that direct editing of data would be rarely used, 
but I'm not entirely sure)
I don't use the term "marking" anywhere...
suggestion:

insert-row - would add a row at the selected position


insert-row/at - would add a row at the position that can be seen 
in the list after filtering and sorting


insert-row/at/direct - would add a row directly in DATA at the position

insert-row/direct - would be ignored? (I don't like that)
Ryan
18-Jan-2006
[4060]
poke-row?
Henrik
18-Jan-2006
[4061]
poke would be like change
Volker
18-Jan-2006
[4062]
/raw ? raw index?
Henrik
18-Jan-2006
[4063x2]
yeah, that would be good
insert-row/raw could be the way
Ryan
18-Jan-2006
[4065]
I dont know, good luck with that guys. Seems to have a whole lot 
of innuendo's. BTW Henrik, this is a very needed control, I commend 
your efforts!
Henrik
18-Jan-2006
[4066x2]
wait a minute... 'at is an existing function. will that work?
ryan, thanks :-)
Ryan
18-Jan-2006
[4068]
sys-at: get in system/words 'at
Volker
18-Jan-2006
[4069]
you must be carefull in that function. and use system/words/at for 
the real one.
Henrik
18-Jan-2006
[4070x2]
I don't think it's good, because I already use 'at in the raw functions
a less elegant option would be to use separate functions: INSERT-ROW, 
INSERT-ROW-AT, INSERT-ROW-RAW
Volker
18-Jan-2006
[4072]
first infunction::
  at-ref: at at: get in system/words 'at
and the rest can stay the same. not elegant, but..
Henrik
18-Jan-2006
[4073]
I don't like it...
Ryan
18-Jan-2006
[4074]
I dont love it
Henrik
18-Jan-2006
[4075x4]
or INSERT-ROW, INSERT-ROW/RAW and INSERT-ROW-AT
/raw and /at wouldn't be used simultaneously anyway
doing it this way, will require a minimum of changes to the code
maybe INSERT-ROW, INSERT-ROW-AT and INSERT-ROW-AT/RAW would fit better...
Volker
18-Jan-2006
[4079]
from the interface i like /at
Henrik
18-Jan-2006
[4080]
I like it too, but I'd hate to code it :-)
Volker
18-Jan-2006
[4081x2]
why?
its one ugly line.
Henrik
18-Jan-2006
[4083]
because of the above indirection
Ryan
18-Jan-2006
[4084x2]
/here maybe just as good for this func...
(coming full circle)
Henrik
18-Jan-2006
[4086]
could be, but DideC would then ask "where?" :-)
Ryan
18-Jan-2006
[4087x2]
Since here is a refienement, it assumes you the specify. selected 
behavior by default.
I you want it to be real slick, I would graph them out, pro and cons, 
etc. If you want it finished, keep up the good work.
Henrik
18-Jan-2006
[4089]
well, thinking about it, /here is a pretty good suggestion. Then 
we'd have INSERT-ROW, INSERT-ROW/HERE, INSERT-ROW/HERE/RAW
Ryan
18-Jan-2006
[4090]
Anybody got a rebol routine for saving gifs? Perhaps the one I wrote 
years ago and happen to lose?
Allen
18-Jan-2006
[4091]
words: [data [new/user-data: second args next args]]
Henrik
20-Jan-2006
[4092]
I sometimes miss a "soft" SHOW, which only shows faces that have 
the SHOW? flag already to be true. Is there an easy way around that?
Ashley
20-Jan-2006
[4093]
soft-show: func [face] [if face/show? [show face]] ;)
Henrik
20-Jan-2006
[4094]
and if I have a large set of faces in a pane?