![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: dialog box widths. Topic Summary: Created On: 2-Sep-2004 15:35 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Text boxes are auto-connected to the left and right sides of the DB. This connection overrides the width. Insert the following after your DBE declaration: driveMapDBE ->"right" ->"unattached". - Louie | |
![]() |
|
I am using Doors v 5.2 and need to generate a field dialog box that is just one character wide.
This is so the user can enter in a single drive letter. the DXL documentation gives the function as:- DBE field(DB box, string label, string initial, int width, [bool readOnly]) I have interpreted this as :- DBE driveMapDBE = field(driveDB,"Project Drive Letter","",1,false) This however produces a dialog box that ist still too wide for a single character. Is there anyway of doing this??? |
|
![]() |
|
![]() |
|
You're right. How silly.
You could use a choice box instead, this doeos get created at the specified width, then the users can select the letter from a pulldown list. const string choices[] = { "a", "b", "c", ... } DB db = create "test" DBE dbeChoice = choice(db, "Drive", choices, sizeof(choices), 0, 1, false) show db ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
Yes I considered this, however the way the drive re-mapping has occurred has ment that I would possibly need to provide a dropdown list with virtualy every letter past d!!
|
|
![]() |
|
![]() |
|
Dave,
I have a script which allows the user to navigate through the drives on their PC to a desired sub-directory. I've cut is down to only show the drives on the current PC - maybe you could adapt it for you own purposes. Roy Bond MTU Aero Engines DB miniExplorer DBE expTree // ---------------------------------------------------------------------------------------------- void getSelectedDrv (DBE expTree) { string selDrv = get expTree print selDrv destroy miniExplorer } // ---------------------------------------------------------------------------------------------- void doKill (DB miniExplorer) { destroy miniExplorer } // ---------------------------------------------------------------------------------------------- miniExplorer = create "Select Drive Letter : " expTree = treeView (miniExplorer,0,300,12) realize (miniExplorer) string drive[] = {"A:/","B:/","C:/","D:/","E:/","F:/","G:/","H:/","I:/","J:/","K:/","L:/","M:/","N:/","O:/","P:/","Q:/","R:/","S:/","T:/","U:/","V:/","W:/","X:/","Y:/","Z:/"} string expDrv[] = {"A:","B:","C:","D:","E:","F:","G:","H:","I:","J:","K:","L:","M:","N:","O:","P:","Q:","R:","S:","T:","U:","V:","W:","X:","Y:","Z:"} int numDrives = sizeof drive bool driveExists = false int x = 0 for x in 0:numDrives-1 do { driveExists = fileExists_ drive[x] if (driveExists) { insert(expTree,expDrv[x],iconFolder,iconFolderOpen) } } set (expTree, getSelectedDrv) show(miniExplorer) |
|
![]() |
|
![]() |
|
Text boxes are auto-connected to the left and right sides of the DB. This connection overrides the width.
Insert the following after your DBE declaration: driveMapDBE ->"right" ->"unattached". - Louie Edited: 3-Sep-2004 at 17:10 by Louie Landale |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
dialog box widths.
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.