Adding scroll bar to a dialog box

Hello!

I am working on building a dialog box to allow users to display/edit the customized attributes. There are many attributes need to be displayed to the point that the scroll bar is inevitable.

I checked the DXL reference and found this:
 

void scrollSet(DBE da, scrollBar, int maxPos, int view, int pos)

 


However, I keep on getting the argument error when trying to use it.

Can anyone give me an example on how to add the scroll bar to the dialog box?

Thanks in advance for your help!

 


DOORSUser - Thu Aug 02 15:55:46 EDT 2012

Re: Adding scroll bar to a dialog box
Mathias Mamsch - Fri Aug 03 04:21:10 EDT 2012

Unfortunately the scroll bar will probably not help you here. The dialog box drawing area is not scrollable, the only thing that can be done with a scroll bar is to my knowledge, to control the contents of a canvas, but is is tedious and reminds you of old Windows 3.1 programming.

What you want to go for is a tab control where you place the different edit fields on different pages or maybe a listview where you select the attribute to be edited and show the corresponding controls somewhere in the dialog. There is an example of building dialog boxes dynamically here on the forum. Maybe this helps, regards, Mathias

Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS