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: Complex Canvases Help
Topic Summary:
Created On: 7-Nov-2003 18:07
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 Bradley Porter, on Monday, November 10, 2003 6:17 PM

Answer:
Bless you Roger! I'm finally able to experiment properly.

Brad Porter
bporter@ball.com
 7-Nov-2003 18:07
User is offline View Users Profile Print this message


Bradley Porter

Posts: 6
Joined: 6-Feb-2003

For years I've seen the complex canvas functions in the DXL reference manual and I've dreamed of different ways to use them for the creation of dialog boxes - BUT I've never been able to get them to work at all. Here's my main problems:

• The callback function for hasInPlace expects an event type argument which carries the following constant values (inPlaceTextFilled or inPlaceTextChange)
• The callback function for hasScrollBars expects an event type argument which carries one of the following constant values (scrollToEnd, scrollToHome, scrollPageUp, scrollPageDown, scrollUp, scrollDown, scrollToPos) and a scrollBar type argument which carries one of the following constant values (vertical or horizontal). The scrollSet function also expects a scrollBar type argument.
• The callback function for hasHeader expects a headerEvent type argument which carries the following constant values (headerResize, headerEdit, headerSelect, headerReorder).
• The inPlaceMove, inPlaceShow, inPlaceCut, inPlaceCopy, inPlacePaste, inPlaceGet, inPlaceSet and inPlaceReset all expect an editor type argument which carries one of the following constant values (inPlaceString, inPlaceText, inPlaceChoice).

How are these expected types captured in the callbacks and functions? In other words, what goes in the blank space in the following example code:

void inPlaceReset(DBE d, ______ editor) {
if (editor == inPlaceString) do Something
}


It doesn't work with int or string and it can't be bool, char, or real, so it must be a derived type. What are the derived types for the following arguments:
• event
• scrollBar
• headerEvent
• editor

Thanks in advance if you can help.

Brad Porter
bporter@ball.com
303-939-4103
Report this to a Moderator Report this to a Moderator
 10-Nov-2003 14:18
User is offline View Users Profile Print this message


Dirk Plaschke

Posts: 103
Joined: 17-Sep-2002



<< [snipp]
...
[snapp]
I'm working on an improved DXL editor which will hopefully include documentation on functions like these.
>>



Hi Roger.

This could be a nice idea, if your editor will be extensible.
I.e. showing tooltips for function parameters (also user defined functions), parameter completion, extensible via Scripting and an implemented interface to DOORS.

I've examining some editors doing that -- or something else -- (jedit, exclipse, AnyEdit, editplus, CRedit, cedit, pfe, ultraedit).
I found, that jedit is the best and full featured of them, but not very fast (JAVA) and not stable enough.

Today, I'am working with editplus, because I mean this editor is fast and stable. But this editor has no rich editor features like scripting and so on.

Wht's about the idea, to customize jedit (www.jedit.org) to edit DOORS DXL Scripts ?
Or much better to customize eclipse (www.eclipse.org), because eclipse will be supported from a various companies like Borland, IBM, Rational (now IBM), and much more.

And, I think, for a perfect coder it should be possible to implement a graphical gui builder for DXL, although I know this is not really need and difficult to develop.
.. and anywhay not to implement from a customer ;-)

As attachment, I've added the file dxl.xml (not sure, but DOORS 5.0 syntax only) for jedit to play with this editor.

(To Edit with the 'correct' buffer, please edit the modes/catalog - file and add the line

<MODE NAME="doors" FILE="dxl.xml"
FILE_NAME_GLOB="*.dxl" />

to this file)

Dirk.

-------------------------
Dirk Plaschke
Report this to a Moderator Report this to a Moderator
 10-Nov-2003 18:17
User is offline View Users Profile Print this message


Bradley Porter

Posts: 6
Joined: 6-Feb-2003

Answer Answer
Bless you Roger! I'm finally able to experiment properly.

Brad Porter
bporter@ball.com
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.