[Gambas-user] Ask About Table View

Stefano Palmeri rospolosco at ...152...
Thu Oct 2 00:19:30 CEST 2008


Il mercoledì 1 ottobre 2008 22:57:51 Leo Sendra ha scritto:
> Hello all... I have a problem in table view programming.
>
> As we know, we can edit table view by using an edit method. When I use this
> method, it take me to a cell in a table view. The
> problem is, when I press an ENTER I want to change setfocus to a
> textbox (suppose that I have 2 components in a form. They are table
> view and textbox). But, the fact, when I press an ENTER, the cursor
> moves to other cell in a table view. How can I change my setfocus to a
> textbox by pressing an ENTER key on my keyboard??  If it's not possible,
> please give me some suggestion how to change a setfocus to textbox??
>
> And
> also, I wonder when I use an edit method like this:
> tableview1.edit(list), I always get an error message. The message is
> "NULL OBJECT".
> Actually, I have declared a "list" as a String[]. And
> I also give a value to this variable. But.. I always get that message.
> So, my question is: How can I use this kind of edit method??
>
> Please help me.... I really need the answer immediately.... Thank you.....
>
>
1st question:

PUBLIC SUB TableView1_KeyPress()
  
  IF Key.Code = Key.Return THEN TextBox1.SetFocus
  IF Key.Code = Key.Enter THEN TextBox1.SetFocus  
  
END

Bye

>      
> ___________________________________________________________________________
> Bergabunglah dengan orang-orang yang berwawasan, di di bidang Anda!
> Kunjungi Yahoo! Answers saat ini juga di http://id.answers.yahoo.com/
> -------------------------------------------------------------------------
> 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
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user






More information about the User mailing list