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: add scroll bar to a dialog box
Topic Summary:
Created On: 2-Dec-2004 23:12
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 ron lewis, on Friday, December 10, 2004 9:08 PM

Answer:
Easiest method, is to spawn new dialog box --  do the work and then close the  dialog box to proceed.

Dialog boxS can be made to be independent of each other if you want.

This is not as sophisticated as tabs -- but it can get the desired results.
 2-Dec-2004 23:12
User is offline View Users Profile Print this message


Catherine Yan

Posts: 43
Joined: 4-Aug-2003

Is there a way to add a scroll bar to a huge dialog box?

Thanks!
Catherine
Report this to a Moderator Report this to a Moderator
 3-Dec-2004 10:42
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

You cannot add scroll bars to dialog boxes.

Perhaps using tabs may be a better solution?


-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 6-Dec-2004 22:31
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

I have TABs on one of my dialogs. It was a nightmare. I had to write 4 or so library functions and call each function for each DBE I was using. You couldn't say "this tab is active" and then put your DBEs. You had to put all your DBEs and then remove the top/left/right/bottom connections of each, put it in the correct TAB, then reconnect it up where you want. You then had to define hide/show functions in a tab-callback-function. Yuuuuuck.

Is there a better way?

- Louie
Report this to a Moderator Report this to a Moderator
 7-Dec-2004 10:54
User is offline View Users Profile Print this message


Ross Morgan

Posts: 74
Joined: 15-Apr-2004

there shouldn't be any need to adjust connections to DBEs - you only need to do this once when you create each tab, then use show/hide to display the DBEs you need

there are some helper functions in /utils/tabUtils.inc...
showElements(Skip elementsSkip)
hideElements(Skip elementsSkip)
showSelectedTab(Skip tabSkip,int selection)

if you create a skiplist of skiplists
Skip tabSkip
then create a skiplist for each tab
then, for each tab, create each DBE element, arrange it on the dialog, then add it to the skiplist
then add each skiplist to tabSkip with the tab index as the skiplist index

then you can use the above helper functions to automatically do the hiding/showing

when you define a tabbed dialog, you specify a selection function callback, e.g...
theTabbedDB = tab(parentDB, TabLabels, 500, 400, TabSelectionFn)
void TabSelectionFn(DBE whichTab)
{
int selection = get whichTab
showSelectedTab(tabSkip,selection)
}

all the helper function does is to call "hide" for all elements not in the selected tab and "show" for all elements in the selected tab.

still yuck, but a bit tidier.
Report this to a Moderator Report this to a Moderator
 9-Dec-2004 13:30
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

Answer Answer
Easiest method, is to spawn new dialog box --  do the work and then close the  dialog box to proceed.

Dialog boxS can be made to be independent of each other if you want.

This is not as sophisticated as tabs -- but it can get the desired results.
Report this to a Moderator Report this to a Moderator
 10-Dec-2004 21:07
User is offline View Users Profile Print this message


Catherine Yan

Posts: 43
Joined: 4-Aug-2003

Thanks a lot for all the great feedback. I think I will go with using multiple dialog boxes.

Catherine
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 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 1 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.