![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: DBE Placement Topic Summary: A checkbox on the left, two buttons on the right Created On: 17-Nov-2006 02:11 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I'm trying to build a dialog box with a few elements on the same line. I'd like to have a checkbox on the left side (as usual), and two buttons opposite it, attached to the right side of the DB. See attached.
Does anybody have any ideas on how to do this? I've tried any number of different ways, with relative placement (using opposite() and such), and with constrained placement. The code shows some of my attempts. I can attach one button to the right side no problem but can't figure a way to get two of them beside each other..... Chris |
|
![]() |
|
![]() |
|
I defined 'cancel' to be opposite of 'icon' and then defined 'insert'. Then I moved 'insert' to have its 'right' boarder next to 'cancel'; thus moving it.
DBE placement is a nightmare. Many DBEs start attached to the sides. Many DBEs react differently to the left and right commands. Some DBEs placement is relative to their label. Even after all these years I've NEVER corriographed a DB correctly. I take a stab at it and just play with the placement commands until it looks right. - Louie |
|
![]() |
|
![]() |
|
In my solution, I eliminate the "opposide" and "beside" calls and use strict placement. I also use a hidden frame to enclose the two buttons and place the frame itself against the right edge of the form.
The result is a dialog box that can be resized, and the insert/cancel buttons are pegged to the right edge of the form. There is one caveat that you need to watch for and that is on some systems, the font size will be different and can cause some spacing issues. Another way to create this box, if this is all that you want to appear, is to use the DBE element apply for your insert button. These always get added to the left of the close button, which is there by default. -Dennis |
|
![]() |
|
![]() |
|
Further to this topic, has anyone any idea how to position the standard buttons (eg ok, apply) on the left side of a message box below the separator ?
I have tried constrained and relative placement both before and after the realize function but to no avail.. As the buttons are defined then they are always added to the right hand side in turn. An example of what I want is the Links -> edit links menu option. I have a sneaking suspicion that it cannot be done using DB and will have to use DBE which can be placed no problem. A rather clumsy workaround has been to use a large dummy button which I then hide ![]() |
|
![]() |
|
![]() |
|
... I even have a large dummy button library function that takes the reasonable number of characters, converts these to pixels, and creates the dummy and hides it.
Nope, DB buttons don't want to move. - Louie |
|
![]() |
|
![]() |
|
I find DBE placement very simple. I never use the below() and such commands though. I use the DBEName -> "right|left|top|bottom" -> <placement> [-> DBE next to] syntax.
But yes. checkbox = <declaration> checkbox -> "left" -> "form" checkbox -> "right" -> "unattached" checkbox -> "top" -> "form" (if you want it at the top. otherwise spaced from the item above it) checkbox -> "bottom" -> "unattached" buttonRightMost = <declaration> buttonRightMost -> "left" -> "unattached" buttonRightMost -> "right" -> "form" buttonRightMost -> "top" -> "form" (or spaced from the item above it) buttonRightMost -> "bottom" -> "unattached" buttonLeftOfRightMost = <declaration> buttonLeftOfRightMost -> "left" -> "unattached" buttonLeftOfRightMost -> "right" -> "spaced" -> buttonRightMost buttonLeftOfRightMost -> "top" -> "form" (or spaced from the item above it) buttonLeftOfRightMost -> "bottom" -> "unattached" ------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
Gordon, the example you mention is the Object Properties dialog.
This has Prev and Next buttons positioned to the left of the dialog at the bottom. This is achieved by using constrained placement of button() DBE elements. This dialog does not contain any apply, ok or close buttons as these cannot be positioned without using dummies as mentioned before. The close botton can be removed by using close(db, false). ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
I have since done some further investigations on this as suggested by David and Tony.
- yes constrained DBE placement was the only answer to this problem - so that the dummies option was not required. I used a frame for the list objects and then attached the DBEs to the frame or the form as appropriate - Three points worthy of note - you can mix and match relative and constrained placement, you have to watch that you check all sides for attachment and it has to all happen before the realize function. ![]() --------------- Gordon gordon.woods@incose.org |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
DBE Placement
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.