[Gambas-user] Tableview seems to not accept data

Eilert eilert-sprachen at ...221...
Thu Jun 30 08:24:38 CEST 2005


You could provide a hidden text input box and make it visible when the 
user doubleclicks on the Tableview. Just adapt its size to the cell the 
user clicked on and place it right there. When the user presses Tab or 
Enter or Esc, you react accordingly: store the value in the array for 
the Tableview, hide or replace the input box and call refresh for the 
Tableview.

That's what I've done in my current project. Works quite nice!

Rolf


sbungay schrieb:
>   Hmmm.. interesting. I'm looking forward to hacking around with it to 
> get a good feel for what it dies and how it works. I can't really use it 
> in my application though.. I need an editable grid and I don't see one 
> anywhere. Got any suggestions?
>   Thanks again for pointing me in the right direction.
> 
> Steve.
> 
> fabien wrote:
> 
>> Le Mercredi 29 Juin 2005 15:02, sbungay a écrit :
>>
>>>   Thanks fabien! That pointed me in the right direction. Whats causing
>>> the firing of the TableView1_Data event? Were the events queued up when
>>> we populated the column titles?
>>>
>>> Steve.
>>>
>>
>> Tableview _data event is fired when the tableview is drawed and each 
>> time you move scroller and new cells are chown. So at each time it 
>> walk on the result array. Or another global array. In fact, the 
>> TableView is just a viewer for table it don't strore the data anymore. 
>> So it peek the data in an existing array and chow it by row and column !
>>
>> in a first try it's difficult to understand and manage but with 
>> experience... i think it's a good widget and easy to use :). The 
>> better exemple is the database manager.
>>
>> antoher exemple on standart array :
>> http://www.gambasforge.net/code.php?id=31
>>
>>
>> Fabien
>>
>>
>>
>> -------------------------------------------------------
>> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
>> from IBM. Find simple to follow Roadmaps, straightforward articles,
>> informative Webcasts and more! Get everything you need to get up to
>> speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> 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