![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Sizing Text Box in a Canvas Topic Summary: Created On: 1-Dec-2003 19:15 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Problem1: I still find laying out dialog box elements a bit of a black art. In this case make sure the text box is unattached at right and bottom. I have also changed the width and height parameters. Problem2: the frames are not associated with tabs, so you have to manage the hiding and showing of DBEs yourself. The way I do it is to have a skip list for each frame. This skip list contains all the elements inside that frame as well as the frame itself. When you create a DBE, add it to the appropriate skip list. A "tab skip list" is used to hold the "frame skip lists". This is used by the showSelected() function to hide/show the appropriate elements. I have modified your code and added some new functions. See the attached. Hope this helps. | |
![]() |
|
My main objective is to create a dialog box for entering data which I will add into a module. I am facing two problems .
Problem 1: My text box occupies the whole Frame. I want it to have a width and length of 10 . Problem 2: when I click on other tabs, my text box is still visible in other frames. How are frames associated with Tabs ? Here is my code. Your time and help are most appreciated. const string tabStrings[] = {"Failure", "History", "Notification"} DB box = centered "Example" DBE theTab, Frame1, Frame2, Frame3 , theTextBox void tabCb(DBE clicktab) { int i = get clicktab if (i == 0) { show Frame1 } else { hide Frame1 } if (i == 1) { show Frame2 } else { hide Frame2 } if (i == 2) { show Frame3 } else { hide Frame3 } } theTab = tab(box, tabStrings, 800, 500, tabCb) theTab->"left"->"form" theTab->"right"->"form" theTab->"top"->"form" theTab->"bottom"->"form" Frame1 = frame(box, "Test Case Details", 100, 100) Frame1->"left"->"inside"->theTab Frame1->"right"->"inside"->theTab Frame1->"top"->"inside"->theTab Frame1->"bottom"->"inside"->theTab Frame2 = frame(box, "History", 100, 100) Frame2->"left"->"inside"->theTab Frame2->"right"->"inside"->theTab Frame2->"top"->"inside"->theTab Frame2->"bottom"->"inside"->theTab Frame3 = frame(box, "Notification", 100, 100) Frame3->"left"->"inside"->theTab Frame3->"right"->"inside"->theTab Frame3->"top"->"inside"->theTab Frame3->"bottom"->"inside"->theTab theTextBox = text(box,"Test Case ID:",null,10,10,false) theTextBox->"left"->"inside"->Frame1 theTextBox->"right"->"inside"->Frame1 theTextBox->"top"->"inside"->Frame1 theTextBox->"bottom"->"inside"->Frame1 realize box tabCb theTab show box thanks Srikanth |
|
![]() |
|
![]() |
|
Problem1: I still find laying out dialog box elements a bit of a black art. In this case make sure the text box is unattached at right and bottom. I have also changed the width and height parameters.
Problem2: the frames are not associated with tabs, so you have to manage the hiding and showing of DBEs yourself. The way I do it is to have a skip list for each frame. This skip list contains all the elements inside that frame as well as the frame itself. When you create a DBE, add it to the appropriate skip list. A "tab skip list" is used to hold the "frame skip lists". This is used by the showSelected() function to hide/show the appropriate elements. I have modified your code and added some new functions. See the attached. Hope this helps. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
That helped. Thank you Tony
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Sizing Text Box in a Canvas
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.