Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic is the bounds of the "edit rect" settabl (Read 3867 times)
azany1
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 18
Joined: Jun 14th, 2006
is the bounds of the "edit rect" settabl
Aug 2nd, 2006 at 3:43am
Print Post  
Is there a way to restrict the bounds of the inplace edit box to a sub-rectangle of a box or table's bounds?

Thanks for any info,
-lipp
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3173
Joined: Oct 19th, 2005
Re: is the bounds of the "edit rect" set
Reply #1 - Aug 2nd, 2006 at 6:12am
Print Post  
There is a way to do that - handle the EnterInplaceEditMode event, which gives you access to the TextBox used for editing. You can do whatever you wish with the TextBox, including changing its position, font, selection, etc.

HTH
  
Back to top
 
IP Logged
 
azany1
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 18
Joined: Jun 14th, 2006
Re: is the bounds of the "edit rect" set
Reply #2 - Aug 2nd, 2006 at 6:18am
Print Post  
rock!  completely missed that

thanks again,
-lipp
  
Back to top
 
IP Logged
 
azany1
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 18
Joined: Jun 14th, 2006
Re: is the bounds of the "edit rect" set
Reply #3 - Aug 2nd, 2006 at 6:52am
Print Post  
(Sorry to reply to myself, but...)

Hmm...It looks like Box.BeginInplaceEdit sets things up so that InplaceEditArgs.Item is the (externally) opaque type InplaceEditable.

Is there a way to get to the currently edited node from an EnterInplaceEditMode handler?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3173
Joined: Oct 19th, 2005
Re: is the bounds of the "edit rect" set
Reply #4 - Aug 2nd, 2006 at 7:18am
Print Post  
I see. If you have the source code, add this to InplaceEditArgs:

public Node Node
{
  get
  {
    if (item is NodeInplaceEditable)
     return (item as NodeInplaceEditable).Node;

    if (item is Table.Cell)
     return (item as Table.Cell).table;

    return null;
  }
}

Or send me a message to glavcho@mindfusion.org and I will send you some fresh dlls  Grin
  
Back to top
 
IP Logged
 
azany1
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 18
Joined: Jun 14th, 2006
Re: is the bounds of the "edit rect" set
Reply #5 - Aug 2nd, 2006 at 7:33am
Print Post  
got it; i'll give the patch a try in a bit

thanks,
-lipp
  
Back to top
 
IP Logged
 
azany1
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 18
Joined: Jun 14th, 2006
Re: is the bounds of the "edit rect" set
Reply #6 - Aug 2nd, 2006 at 4:21pm
Print Post  
Ok, next problem: in V4.2 of FlowChart.NET, InplaceEditable doesn't have a field called "item" (or, any fields for that matter).
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3173
Joined: Oct 19th, 2005
Re: is the bounds of the "edit rect" set
Reply #7 - Aug 3rd, 2006 at 6:26am
Print Post  
Add that to InplaceEditArgs and not to InplaceEditable  Roll Eyes
  
Back to top
 
IP Logged
 
azany1
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 18
Joined: Jun 14th, 2006
Re: is the bounds of the "edit rect" set
Reply #8 - Aug 3rd, 2006 at 4:23pm
Print Post  
doh!  that worked; so, this will be in the next release?

thanks again,
-lipp
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3173
Joined: Oct 19th, 2005
Re: is the bounds of the "edit rect" set
Reply #9 - Aug 4th, 2006 at 6:42am
Print Post  
yes, it will be there.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint