Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: hasInPlace
Topic Summary: Complex Canvas creation
Created On: 14-Nov-2005 08:58
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by Tony Goodman, on Monday, November 14, 2005 12:11 PM

Answer:
hasInPlace() registers the callback function and enables the editor.

the callback function should be of the form

void doIt(DBE dbe, InPlaceEditEvent e)
{
}

The manual fails to mention the type InPlaceEditEvent, which can have values inPlaceTextFilled or inPlaceTextChange.

The manual also fails to mention the type used for a handle on an in-place editor as follows:

InPlaceBox__ editor = inPlaceText
 14-Nov-2005 08:58
User is offline View Users Profile Print this message


Paul Howstan

Posts: 2
Joined: 28-Sep-2004

Hi,

I'm trying to implement a complex canvas using the InPlaceEditing functionality, but I can not figure out what type the second parameter in the hasInPlace function should be. The reference manual says that the callback should look like:

void cb(DBE dbe, event) {}

Any ideas?

Thanks in advance,

Paul
Report this to a Moderator Report this to a Moderator
 14-Nov-2005 11:24
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Answer Answer
hasInPlace() registers the callback function and enables the editor.

the callback function should be of the form

void doIt(DBE dbe, InPlaceEditEvent e)
{
}

The manual fails to mention the type InPlaceEditEvent, which can have values inPlaceTextFilled or inPlaceTextChange.

The manual also fails to mention the type used for a handle on an in-place editor as follows:

InPlaceBox__ editor = inPlaceText

-------------------------
Tony Goodman
http://www.smartdxl.com

Edited: 14-Nov-2005 at 11:33 by Tony Goodman
Report this to a Moderator Report this to a Moderator
 14-Nov-2005 12:12
User is offline View Users Profile Print this message


Paul Howstan

Posts: 2
Joined: 28-Sep-2004

Thanks Tony
Report this to a Moderator Report this to a Moderator
 4-Jan-2006 15:16
User is offline View Users Profile Print this message


Oliver Röpke

Posts: 42
Joined: 23-Nov-2005

Hi Tony,

thank you too for the tips. The missing type of variable editor will not effect self written code since it is only missing in function declarations. Right?

I also try to use a canvas with in place editor to implement a kind of password dialog.
But I'm not able to register to the the appropriate cb function. DXL is reporting an error.
Here are the code snippets:

What may I do wrong?
Many thanks in advance for your kind help?



-------------------------
Greetings,<BR>Oliver<BR><BR><BR>Oliver Roepke<BR>Axis Engineering AG, Munich
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.