[Gambas-user] Help about use table view editing with Return key
Phạm Quang Dương
soleilpqd at ...626...
Mon Sep 20 14:20:32 CEST 2010
OK, thank, I understood. Switch click and dblClick event code.
.zip, bzip, gzip is fine why not 7zip
Alors, prochaine fois j'utilise rar >:)
2010/9/19 Benoît Minisini <gambas at ...1...>
> > Hi,
> >
> > I created a TableView with three columns.
> > First, I wrote code so that when user double-click the cell at third
> column
> > on a row, the cell start the editing. My program worked fine.
> > Then I added code so that when the user click the cell at the first
> column
> > on a row, this row would be removed. The removing worked fine. But with
> the
> > editing, when I pressed Enter (Return) key to finish the editing, some
> rows
> > were removed.
> >
> > I can't find where I'm wrong. Please help, thank you!
>
> The more important question: Why are you using 7zip ? :-)
>
> TableView is designed so that editing is started on click. So, using the
> arrow
> keys or the Enter keys makes the TableView moves the current cell
> automatically and raise Click events.
>
> If you want another behaviour (like editing on double-click but remove on
> click), then I think you should write your own TableView.
>
> Yet again, DblClick is a low-level event, and Click is not, and it is not
> necessarily comes from a low-level mouse event. The name "Click" is badly
> chosen, it comes from Visual Basic.
>
> Regards,
>
> --
> Benoît Minisini
>
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Phạm Quang Dương
Mobile: 01683572206
Email: soleilpqd at ...626... / soleilpqd at ...2488...
More information about the User
mailing list