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

World: r3wp

[View] discuss view related issues

Henrik
29-Dec-2005
[3553]
because text is drawn with AGG
Pekr
29-Dec-2005
[3554]
that is bad then ... should be reported?
Henrik
29-Dec-2005
[3555]
well, it's a known limitation
Pekr
29-Dec-2005
[3556x3]
just a cut-off:
- nubunk definition:

stylize/master [
  my-style: face with [
     size: 100x100
     init: []
   ]
]

view layout [my-style "Hello world!"]
ah, I have shifted my hands on keyboard :-)) nubunk = minimal :-)
simply via stylize/master you get defined your custom style in global 
stylesheet, so you can use it in VID ...
Henrik
29-Dec-2005
[3559x2]
good one.. will experiment with that a bit. thanks
I merely didn't think the face object itself was usable. seems I 
need to write a lot of additional code
Rebolek
29-Dec-2005
[3561]
Pekr: NUBUNK is nice and has only 27 hits on Google. You should use 
it as some product name :))
Volker
29-Dec-2005
[3562x2]
I would start like Pekr suggested, but with a box. Thats the minimal 
do-nothing face.
Hmm, http://www.codeconscious.com/rebsite/vid-ancestry.rsays a box 
is an image.
Henrik
29-Dec-2005
[3564]
ok, I've been experimenting with it a bit, and I must say, it's harder 
than I thought. I think I'll give up on it for now. too many things 
don't fit together...
Volker
29-Dec-2005
[3565]
agg-text: it works i wine.
Graham
29-Dec-2005
[3566]
I've got an area field and am using ^S to send text in my chat client. 

I clear the field with face/line-list: none, and face/text: copy 
""

but the cursor ends up not at the left edge.  How does one fix that?
Volker
29-Dec-2005
[3567]
system/view/caret points to nirvana?
Graham
29-Dec-2005
[3568]
oh, that carrot thing again ..
Anton
29-Dec-2005
[3569x2]
Henrik, Petr posted above the exact example I was going to post. 
It's not as much work as you think to derive from FACE or BLANK-FACE. 
The advantage is that there's not all this unused stuff from the 
derived style left hanging around in the face object.
Mmm. FIELD access functions do not take into account whether the 
face has the focus or not. I think they should check that and set 
the caret to the field's new text facet (if it is new).
Graham
29-Dec-2005
[3571]
focus field fixes the caret.
Henrik
30-Dec-2005
[3572x7]
anton, I read it (great stuff), but I currently have problems with 
which method to correctly group faces in the main pane (header, scroller 
and list), and get each face properly initalized. I know LAYOUT does 
this, but I can't use this with already made faces.
ok, haven't gotten very far yet, but http://hmkdesign.dk/rebol/list-view3.r

my attempt at a list view based on custom faces. more will come during 
the day... basically only fills out values and the sort buttons react 
visibly, but no sorting happens yet.
I will attempt to make it grow to my previously announced specs.
list is now resizable
now using the standard SCROLLER. I'm not sure if this is a good approach 
for RebGUI...
now supports vertical scrolling
some limited support of images too
Pekr
30-Dec-2005
[3579]
its already slow though ... try to drag scroller here or there .....
Henrik
30-Dec-2005
[3580x2]
it's the same routine as I normally use... I might be able to get 
rid of some calculations that are done during draw, when scrolling...
I've turned off the truncate function. did that help?
Pekr
30-Dec-2005
[3582]
not sure ... but concentrate upon engine ... there will be place 
to optimise later ...
Henrik
30-Dec-2005
[3583x2]
got rid of a few calculations during scrolling now.
sorting works now. click the button in the upper right corner to 
reset sorting
Graham
30-Dec-2005
[3585]
Can you get multi-line rows ??
Henrik
30-Dec-2005
[3586x4]
probably :-) each row is a layout that can be defined by the user
but the size of a row isn't adapted to the text contents yet
text filtering works now. by entering a string in the field, the 
string will be searched through all values in all columns and only 
display rows with the string in it. currently only searches all columns.
sorting also works after filtering
Pekr
30-Dec-2005
[3590]
it suffers one typical problem - at first run, the grid is unsorted 
... once you sort it, you can't "desort" it :-)
Henrik
30-Dec-2005
[3591x2]
click the button in the upper right corner
(should be marked a bit clearer, I know)
JaimeVargas
30-Dec-2005
[3593]
There should be at least three states for sort  [ascending, descending 
and unsorted]
Pekr
30-Dec-2005
[3594x2]
Nice! Maybe it would be better to have situation similar to Lotus 
Notes grid? They show thin arrow, if the column is sortable (not 
all are). Then you can sort it up and down and third click deactivates 
sorting. It is kind of natural ...
:-) Jaime was faster :-)
Henrik
30-Dec-2005
[3596x2]
I'll take a look at that
pekr, which kinds of rows can't be sorted?
Pekr
30-Dec-2005
[3598]
well, not in our case. But with some older db systems, like xbase 
in DOS, we just had this facility. Not all columns were indexed. 
Sorting non indexed columns was not allowed ...
Henrik
30-Dec-2005
[3599x3]
ok
tristate sorting now available. can be turned off with the TRI-STATE-SORT 
variable.
I will continue tomorrow... bedtime for me
Graham
30-Dec-2005
[3602]
Is there some gotcha with resizing a scroller ?

Scroller/size: newsize show scroller doesn't work.