[Gambas-user] Tableview question

Fabien Bodard gambas.fr at ...626...
Mon Oct 26 11:55:38 CET 2009


2009/10/24 Werner <wdahn at ...1000...>:
> richard terry wrote:
>> I've need to use the table view to allow user to edit/add new cells
>>
>> Despite reading Doc's and looking at the  examples in the IDe I'm no closer to
>> getting the concept of how the thing works, so I wonder if anyone could
>> explain its use in simple terms and show me a simple sample of how to allow;
>> *user to click on cell > enter > add information > exit > value appearing in
>> the cell, adding new row etc.
>>
>> In the meantime I'll pore over the gambas IDE sourcecode and try again!
>>
>> Regards
>>
>> richard
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>>
> As I have never used a Tableview this is just an idea:
> Would it satisfy your requirements if you treat it like a spreadsheet
> cell so if a user clicks on a tableview cell its contents are copied to
> a text area where it can be edited?
> Afaik all spreadsheets do it that way.
>
> Regards
> Werner

:)... table view already work like that !

TableView.Edit... show a textbox on the current cell... you edit it
and when you validate, an event is raised and in trhis event you
validate the entry value and set the current cell value.


>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>




More information about the User mailing list