Hi Cyphre, after playing with it a bit I quickly realized that these customizations could get out of hand. I completely agree a "list configuration" would be what is needed. I've really needed a proper list tool and this is it for sure. I can really see the immense flexibility of this kind of approach, although I see that the installation of "list configurations" could be really interesting. I would be interested in trying to make my modifications into a list config. once you have something to play with.
Keep up the great work. Mike >Hi Mike, > >Nice work ;-) I'm glad you find my list somehow useful. But I don't think >those functions should be in the style(official version) by default. The >style is designed and can be used for very wide range of usage(I'm planning >to write some more demos and tutorials about it when the styles-pack website >will be up and running). So I left intetionally all those tiny but useful >functions (which are handy for custom application) to be written by >developer who is using the style as kind of "customizable low-level grid >engine". >Anyway, this leads me to an idea it would be good to be able >create/store/use some form of "list configuration" so people could make >them and easily share and use different list-setups for diffferent >applications. I'm planning to create simple website for the styles-pack so >It would be a good place for such things. >If you have any comments ideas just let me know either here on ml or >privately. > >regards, > >Cyphre > >----- Original Message ----- >From: "Mike Yaunish" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Tuesday, November 02, 2004 2:20 AM >Subject: [REBOL] Re: Menu in REBOL-View > > > > Hi Cyphre, have found that I am in need of the following and thought I > > would pass along > > what I have cobbled together. > > > > 1.) has-user-data? - Determine if any given face is actually an active > > gadget. Should inactive gadgets > > have a default behaviour that makes them > > check if they are valid before they can do > > anything? > > 2.) update-check - Updates the check box. Maybe this should be built into > > my-list as a default > > behaviour of the check box. Don't know enough > > to make this happen. > > 3.) get-selected-checks - Returns all check boxes that have been defined > > with a 'text field and been > > checked off. > > > > Small sample of what I mean. > > > > ;------------------------- code starts ----------------------------------- > > REBOL [ > > title: "text list style - example" > > author: [EMAIL PROTECTED] > > ] > > > > do http://members.shaw.ca/mike.yaunish/rebol/cyphre-list.r > > > > demo-data: copy [] > > > > for i 1 5 1 [ ;definition of simple data dialect (static for now...) > > insert/only tail demo-data compose/deep [ > > [data (false) type "check" text (i)] > > [ text (i) ] > > [ text (random "The Name of A Company" ) ] > > [data (false) type "check" text (i + 100)] > > ] > > ] > > > > view l: layout [ > > origin 0 > > space 0 > > across > > lst: my-list 640x300 columns [ > > check 55x25 [ ; check box template > > lst/update-check face > > ] > > button 70 [ > > either lst/has-user-data? face [ > > print face/user-data/text > > ][ print "Unassigned button" ] > > > > ] > > txt 100 > > check 35x25 [ ; check box template > > lst/update-check face > > ] > > ] > > data demo-data ;sepcifies the data for the list > > rowbar ["Select" "ID" "Company" "X"] ;rowbar labels for each >column > > line-colors reduce [220.220.220 white] > > rowbar-height 28 > > slider-width 20 > > row-highlight > > > > return > > button 150x24 "get-selected-checks" [ > > print [ "check boxes selected = " mold lst/get-selected-checks ] > > ] > > ] > > ; ------------------ code ends > > -------------------------------------------------------------- > > > > > > > > >Mike, > > > > > >Regarding the [data (false)] case you mentioned. I decided to write a bit > > >The idea of list(or grid) data dialecting is still in alpha stage(and I >have > > >still lot ideas to improve it) so feel free to made any comments. > > > > > > -- > > To unsubscribe from the list, just send an email to rebol-request > > at rebol.com with unsubscribe as the subject. > > > >-- >To unsubscribe from the list, just send an email to rebol-request >at rebol.com with unsubscribe as the subject. -- To unsubscribe from the list, just send an email to rebol-request at rebol.com with unsubscribe as the subject.
