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: Problem with alignment of Text DBE's
Topic Summary:
Created On: 11-Feb-2008 06:16
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.
 11-Feb-2008 06:16
User is offline View Users Profile Print this message


Paul Miller

Posts: 376
Joined: 2-Oct-2002

Has anyone else seen this crazy problem when using constrained placement to align multiple text type DBE's side by side (see attached screen grab)?

The text type DBE's to the left of the tight most text DBE only show their labels and not their contents.




-------------------------
Paul Miller
Specification Practices Specialist,
EuroCyber,
Melbourne, Australia.
Mobile: +61 (0)418 135 103
Web Site: http://www.eurocyber.biz
E-mail: miller@eurocyber.biz">pmiller@eurocyber.biz
Report this to a Moderator Report this to a Moderator
 11-Feb-2008 13:30
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Can we see the code of the declaration for the DBEs?

Also take a look at the simple constrained placement include file I wrote.

Simple Constrained Placement

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 11-Feb-2008 16:46
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

I'm having an issue with DB placement as well.....

As you can see from the attached picture, my buttons are all hidden. Any idea why?

Code is below:

Dialog.bmp
Dialog.bmp  (707 KB)



-------------------------
Scott Boisvert
Engineering Tools Administrator
L-3 Communications - Avionics Systems
scott.boisvert@l-3com.com
Report this to a Moderator Report this to a Moderator
 11-Feb-2008 18:10
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Scott your problem is that you're defining everything first, then setting the placement. So things are getting pushed down. Resize your dialog a little bigger and you'll see your buttons. But you need to set all sides of placement to get it where you truly want it.

I always define placement for an item right after I declare it.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 11-Feb-2008 20:28
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

Thanks David,

That worked.

Figured it was something stupid like that.

Another question, though when I maximize the DB it expands the DBEs horizontally to fill the DB, but not vertically.

Any idea on how to make it fill the DB vertically as well. Just as an example of what I'm trying to do, open the properties of an object, select the History tab, and the a history record of a modification to the object text. Then maximize the properties window. Notice how the DBE's expand to fill the DB?

-------------------------
Scott Boisvert
Engineering Tools Administrator
L-3 Communications - Avionics Systems
scott.boisvert@l-3com.com
Report this to a Moderator Report this to a Moderator
 12-Feb-2008 03:36
User is offline View Users Profile Print this message


Paul Miller

Posts: 376
Joined: 2-Oct-2002

Originally posted by: David Pechacek

....Can we see the code of the declaration for the DBEs? ....




Hi David - copy of problem code is shown below.

-------------------------
Paul Miller
Specification Practices Specialist,
EuroCyber,
Melbourne, Australia.
Mobile: +61 (0)418 135 103
Web Site: http://www.eurocyber.biz
E-mail: miller@eurocyber.biz">pmiller@eurocyber.biz
Report this to a Moderator Report this to a Moderator
 12-Feb-2008 08:12
User is offline View Users Profile Print this message


Peter Albert

Posts: 232
Joined: 30-Dec-2005

Scott,

just place an

setExtraHeightShare(historyRecs, 1.0)

right below the 'realize (objectHistory)' (line 165 in your original code). This will make the DBE fill the DB vertically, too.

Cheers,

Peter
Report this to a Moderator Report this to a Moderator
 12-Feb-2008 08:45
User is offline View Users Profile Print this message


Peter Albert

Posts: 232
Joined: 30-Dec-2005

Hi Paul,

the attached works. Note that I am using David's 'attch' routine for the placement.

Effects like this are usually a problem of not specifying all four directions for constrained placement. A nice side-effect of the attach function is that it forces you to specify all of them.

Cheers,

Peter

Edited: 12-Feb-2008 at 08:45 by Peter Albert
Report this to a Moderator Report this to a Moderator
 12-Feb-2008 12:49
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

Originally posted by: Peter Albert

Scott,



just place an



setExtraHeightShare(historyRecs, 1.0)



right below the 'realize (objectHistory)' (line 165 in your original code). This will make the DBE fill the DB vertically, too.



Cheers,



Peter



Thanks Peter, that was exactly what I was looking for.

-------------------------
Scott Boisvert
Engineering Tools Administrator
L-3 Communications - Avionics Systems
scott.boisvert@l-3com.com
Report this to a Moderator Report this to a Moderator
 12-Feb-2008 13:34
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

I'm glad to see that that Attach.inc library is coming in handy for some.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 12-Feb-2008 21:54
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

Hmmm...

This is an interesting one. I have my dialog box set up to expand when maximized and then it returns to its original size when restored. Works great, except for one little issue.

After restoring the DB (double window button in the upper right corner), the label for one of the richText boxes and one of my checkboxes disappears. If I click where the check box is supposed to be, both the label and the checkbox reappear. As can be seen in the attached screen shot series.

The weird part is that this only happens when running DOORS on Windows Server 2003 (through a terminal server connection). I tested on Windows XP and didn't have a problem.

Any ideas or anyone else experience something similar?

HistoryDB.JPG
HistoryDB.JPG  (344 KB)



-------------------------
Scott Boisvert
Engineering Tools Administrator
L-3 Communications - Avionics Systems
scott.boisvert@l-3com.com
Report this to a Moderator Report this to a Moderator
 13-Feb-2008 14:15
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Sounds like it could just be a display issue with Server 2003. It's worth submitting a support case on.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.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.