Dialog box width

djschwarz
Enthusiast
Enthusiast

Dialog box width

djschwarz
Enthusiast
Enthusiast

 

When I edit a label style from the context menu, my dialog box is a standard width as shown in the first screen shot.  My custom names for the label styles are longer than the box.  I can stretch the width of the dialog box as shown below as the stretched width, but when I do the command again, the box is back to a standard width.  I have searched a little in the cui, but have had no luck.  Any help would be appreciated.

Doug

 

 

Standard WidthStandard Width

Standard Width

 

Stretched WidthStretched Width

 

0 Likes
Reply
429 Views
2 Replies
Replies (2)

stevenh0616
Collaborator
Collaborator

From my understanding, the dialog box sizing is either hard coded into the code or it writes out to the registry profile for the version. For instance, here's the Labeling Tool dialog and window position. You would need to figure out the hex code position data in the registry and plug these values in manually as it doesn't seem yours is saving to the registry. Use caution if you get in here to edit anything. It's also possible that that dialog is not saved to this location.

 

Capture.JPG

 

 

Steve Hill, Civil Designer / .NET Developer / AutoCAD and AutoCAD Civil 3D Certified Professional
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

http://redtransitconsultants.com/
Autodesk Exchange Store
Twitter | LinkedIn | YouTube

tyronebk
Collaborator
Collaborator

Steven has led you in the right direction. I think the registry entry you are looking for is:
...\Dialogs\AeccUiDlgGenericScHost

Unfortunately, it appears that the position of this dialog is stored in the registry but the size is not. When that dialog closes it properly writes the window position values (i.e. Left/Top/Bottom/Right) to the registry, but when you open that dialog, it seems only the Top and Left values are pulled from the registry, Right and Bottom, which would define the size, are ignored.

A quick way to tell which registry entries are associated with a dialog is to temporarily rename the Dialogs registry node (e.g. Dialogs1). Now when you open and close a dialog, if the dialog information is stored under the Dialogs node, a new version of the Dialogs node will be created, and only the registry entries needed for that dialog will be created (plus the AllAnavDialogs entries). Delete the newly created Dialogs node, and rename Dialogs1 back to Dialogs to get back to where you started.