World: r3wp
[View] discuss view related issues
older newer | first last |
Robert 28-Dec-2005 [3526] | And please, add auto-filter functionality a la Excel to the columns. Very handy for most programs as it frees you from having to develop a query-dialect. |
Henrik 28-Dec-2005 [3527] | robert, explain? The current filter function is a simple one which allows you to only show rows in which at least one cell contains a specific sequence of chars |
Pekr 28-Dec-2005 [3528] | Henrik - auto function - you will add small icon to the header (like there is for sorting). It will be drop-down (combo?) style. You will fill-it-in with unique values for particular columns .... (in your example Gui tools, bug database, HVIT ...., selecting one will show only those related items) ...imo that is what Robert means here .... |
Henrik 28-Dec-2005 [3529x3] | pekr, I could solve that by making the filter function column specific. currently it just searches all columns.... |
already in the bug database actually :-) | |
If I can make it 100% independent on my GUI library, I could try to make a release? It'll require about a days work though. | |
Robert 28-Dec-2005 [3532] | Yep, that's what I meant. Columnwise drop-down box with unique values. For example you can filter just all bugs that have high priority. |
Henrik 28-Dec-2005 [3533] | that's doable once I get filtering to work on specific columns, yes.... |
Anton 28-Dec-2005 [3534x2] | Henrik, I advise building this style from FACE (ie. not an existing style, like LIST). Makes it less dependant on other code, more portable (ie. to RebGUI), and you will be forced to write your own pane function, which you will need to do anyway . :) I based a lot of styles on existing styles, and this is a great way to learn, but I found as existing styles were changed (bugs fixed or ottherwise), my styles would break. Then it's a run-around to do a version-dependant fix for the problems. |
Petr, no it isn't. | |
Henrik 28-Dec-2005 [3536] | anton, I'll see what I can do about it (would also learn a bit about iterated faces), but I'm focusing on getting things to work for now :-) |
Anton 28-Dec-2005 [3537] | As you wish. |
Henrik 29-Dec-2005 [3538] | If I were to create it purely derived from FACE, how do I add it as a style under VID? |
Pekr 29-Dec-2005 [3539] | look at Cyphre's devcon presentation papers .... I think stylize/master is the way ... |
Henrik 29-Dec-2005 [3540x3] | I found the set-style function, which could do the trick, but it's unfortunately not documented (grr) |
just returns an error. might be a context problem, since it's internal | |
>> a: get-style 'button >> set-style 'test a >> view layout [test] ; displays a button but it doesn't work on my own face... | |
Pekr 29-Dec-2005 [3543] | look at source of get-style ... it is only short-hand func to get style out of system/view/vid blabla path ... because - if you probe e.g. button in normal way, you will get nearly endless source output ... hence get-style is handy ... imo |
Henrik 29-Dec-2005 [3544] | it seems the face object in itself isn't enough... I need to make a face through a derived object from one of the standard styles instead. they contain a lot more information |
Pekr 29-Dec-2005 [3545x4] | http://www.colellachiara.com/devcon05/cyphre.html |
look at those slides - imo it is not so difficult to understand how you create your own styles .... | |
help make-face .... | |
or you just can start with 'blank-face instead? | |
Henrik 29-Dec-2005 [3549] | the presentation looks completely screwed up here... |
Pekr 29-Dec-2005 [3550x2] | I just unzipped it, hit enter on .r file, and using View 1.3.2 I got nice, full-screen presentation ... you use right-arrow to move to next slide ... |
worth looking at, really, at least for me ... | |
Henrik 29-Dec-2005 [3552x2] | oh... doesn't run under linux, it seems |
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 [3572x4] | 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 | |
older newer | first last |