Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic tab-key in tables (Read 2259 times)
horjan
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Nov 28th, 2008
tab-key in tables
Nov 28th, 2008 at 9:21am
Print Post  
I would enter the next cell if the user is in inplace-editing-mode and enter the tab-key. Where is the right place to create this behavior?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: tab-key in tables
Reply #1 - Nov 28th, 2008 at 10:42am
Print Post  
Handle the EnterInplaceEditMode event to get a reference to the inplace-edit text box. Attach a KeyDown handler to it, and if the pressed key is TAB switch to the next cell using the DiagramView.BeginEdit() method.

I hope that helps,
Stoyan

  
Back to top
 
IP Logged
 
horjan
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Nov 28th, 2008
Re: tab-key in tables
Reply #2 - Dec 2nd, 2008 at 8:47am
Print Post  
Thank you!

I've handled the EnterInplaceEditMode an I've attached a KeyDown handler.

But I can't find a DiagramView.BeginEdit() method, neither in documentation nor in source.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: tab-key in tables
Reply #3 - Dec 2nd, 2008 at 9:35am
Print Post  
If you are using v4.x or older version of the control, there should be something like StartInplaceEdit method in the Cell or Table class.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
horjan
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Nov 28th, 2008
Re: tab-key in tables
Reply #4 - Dec 2nd, 2008 at 9:43am
Print Post  
Thank you - and sorry (I'm a newbie).

Of course you're right. I'm working in an foreign project and the FC-Version is 4.3.1
  
Back to top
 
IP Logged
 
horjan
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Nov 28th, 2008
Re: tab-key in tables
Reply #5 - Dec 3rd, 2008 at 8:14am
Print Post  
Hi,

now I have a table-reference and a cell-reference, I can modify every cell in the table with the BeginInplaceEdit method (I do it in my keyevent). But how can I get out the index of the active cell? I need it to set the right row and column for the next tablecell I would enter if the tab-key pressed.

Horst
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: tab-key in tables
Reply #6 - Dec 3rd, 2008 at 11:13am
Print Post  
Hi,

You receive the column and row indices with the event that starts inplace-editing, e.g. CellDblClicked or CellTextEditing. From then on, you will have to keep these values in members of the form class and update them as necessary when calling BeginInplaceEdit.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint