Le Friday 21 November 2008 10:58:27 charlesg, vous avez écrit :
> Hello,
>
> I need more control of cell entry than can be provided by tableview. I have
> laboriously placed textboxes over (and under) gridview cells in much the
> same way I imagine that tableview itself is constructed. It works.
>
> Not knowing much about OOP it strikes me that there must be an easier
> solution. Can I create say forty textboxes programmatically and then move
> from one to the other also under program control? I suppose what I am
> looking for is textbox[] :-D. If that were possible then the following
> could be reduced to one sub.
>
> ' Gambas class file
> PUBLIC SUB txt1_KeyPress()
>   IF Key.code = Key.right THEN
>     {dosomething with the entry then}
>     txt2.SetFocus
>   ENDIF
> END
>
> PUBLIC SUB txt2_KeyPress()
>   IF Key.code = Key.right THEN
>     {dosomething with the entry then}
>     txt3.SetFocus
>   ENDIF
> END
>
> PUBLIC SUB txt3_KeyPress()
>   IF Key.code = Key.right THEN
>     {dosomething with the entry then}
>     txt4.SetFocus
>   ENDIF
> END
>
> PUBLIC SUB txt4_KeyPress()
>   IF Key.code = Key.right THEN
>     {dosomething with the entry then}
>     txt1.SetFocus
>   ENDIF
> END

Salut 

This is an example i have made for my program. I hope it is that you want ?

Jacky

Attachment: Test_tableview.tar.gz
Description: application/tgz

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to