![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Question on dialog boxes Topic Summary: Created On: 6-Feb-2008 19:48 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Is there any way to add a DBE to a dialog box after it has been displayed?
------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
No.
You have to create all the DBE's up front and use hide() and show(). ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
David,
Perhaps your objectives can be accomplished by using inactive and active functions. |
|
![]() |
|
![]() |
|
Well my objective is to create a generic dialog box program where users can add and remove dialog box elements for attributes at will.
What I'm thinking is to do an array of 100 DBEs declared initially, assign them all to be labels, and hide them. Then when the user wants to add an element, it will reassign the DBE to the new proper type, place it, and show it. It's definitely going to be tricky and take some thought. I just hate having some set limit on the total number of DBEs the user can use. But I figure its doubtful they'll use over 100 attributes in one sitting. And even if they add one, remove it, then want it again, I don't have to use up two different ones, I can reuse the first one. I've already got some of it figured out. ------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
Does that work? I'm not so sure.
Once the dialog box is "realized" you cannot change a DBE to another type of DBE. Also, you cannot change the positioning of the DBEs in the dialog box. You can only change the contents of the DBEs. For example, you can change the choices in a dropdown, or the text in a richText field. But, you cannot change a field DBE to a text DBE, nor can you move that field DBE to another position. As Tony mentions, you can only hide() and show() elements. One thing you may be able to do is have a parent DB that spawns child DBs. So, you could create a parent DB in which the user makes some choices, then clicks a button, and have a child DB generated based on the choices in the parent DB. It would be great if someone created a generic dialog-box-builder tool. I guess that's what you are suggesting. It could all be done in DXL, with a master dialog box in which the user could design a new dialog box, simply by point-and-click rather than having to code it manually with DXL. And, you could potentially even generate and save the new DXL code to a file, which would generate the new DB directly the next time. Although, it wouldn't be trivial to do this. |
|
![]() |
|
![]() |
|
Sorry, hit the "post" button twice.
Edited: 7-Feb-2008 at 18:37 by David Jakad |
|
![]() |
|
![]() |
|
Yeah you're right. Didn't think of that. The master-child idea is good though. Maybe I'll take that approach. This is definitely going to take some work and thought....
------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
Not sure about the parent-child notion, but see no reason why the dialog cannot accept the user's input, remember all the contents of the existing DBEs, hide the current DB and rebuild a new one, using the user's input. If you remember the exact location of the DB then I suspect the user won't notice.
To accomplish that, however, the main 'BuildDialog' function needs to refer to the callback functions, and the callback functions will need to refer to the BuildDialog function. You can accomplish that by pre-defining the BuildDialog, then define the Callbacks, then define the body of BuildDialog; something like attached. - Louie |
|
![]() |
|
![]() |
|
DOH!
I really wish I'd known that DXL allows you to predefine functions.... ------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Question on dialog boxes
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.