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: dialog box widths.
Topic Summary:
Created On: 2-Sep-2004 15:35
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.
Answer This question was answered by Louie Landale, on Monday, September 6, 2004 7:15 AM

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
 2-Sep-2004 15:35
User is offline View Users Profile Print this message


Dave McMahon

Posts: 22
Joined: 28-Jul-2003

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???
Report this to a Moderator Report this to a Moderator
 2-Sep-2004 15:49
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 2-Sep-2004 15:53
User is offline View Users Profile Print this message


Dave McMahon

Posts: 22
Joined: 28-Jul-2003

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!!
Report this to a Moderator Report this to a Moderator
 3-Sep-2004 12:06
User is offline View Users Profile Print this message


Roy Bond

Posts: 39
Joined: 25-Mar-2003

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)
Report this to a Moderator Report this to a Moderator
 3-Sep-2004 17:09
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Answer 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

Edited: 3-Sep-2004 at 17:10 by Louie Landale
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 0 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 0 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.