OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: grrrr on January 10, 2010, 06:53:50 AM

Title: how to get the overall column width of autocad related gridstyles?
Post by: grrrr on January 10, 2010, 06:53:50 AM
hi,

some autocad related column styles of a grid contains images.
using dcl_Grid_CalcColumnWidth only the text width is returned.
where can i get the image width of that column or the overall width.
Title: Re: how to get the overall column width of autocad related gridstyles?
Post by: Fred Tomke on January 10, 2010, 11:51:59 AM
Hi, grrr, since you cannot add icons for a grid at runtime, you know all the icons. Save the icon sizes in a list and count them to the result of CalcColumnWidth.

Fred
Title: Re: how to get the overall column width of autocad related gridstyles?
Post by: grrrr on January 10, 2010, 10:48:42 PM
hi fred,

please have a look at a grid with columnstyle linetype.
a graphical part an the labeltext is shown.
the grafical part comes from anywhere opendcl, not from me.
i dont know them. how can i get the width from opendcl.
Title: Re: how to get the overall column width of autocad related gridstyles?
Post by: Fred Tomke on January 10, 2010, 11:34:49 PM
Aah, you mean the linetype preview. Hm. does it have a predefined width? I will have a closer look this evening. I'm just at work.

Fred
Title: Re: how to get the overall column width of autocad related gridstyles?
Post by: grrrr on January 13, 2010, 01:22:59 AM
hi fred,

the graphic parts for layer, linestyle and lineweigth are the width of the
related acui-controls. owen had changed that behaverior in 6.0.019
- now they drop down with that overall width.
thats what i would get: the width of the control if they drop down.
i need them to expand a column to show the label text for
color, linestyle, lineweigth. others i do not use at te moment.
think thats what you need.
Title: Re: how to get the overall column width of autocad related gridstyles?
Post by: owenwengerd on January 13, 2010, 10:41:38 AM
For those column widths, I think you will need to add a constant number of pixels to account for the images. The additional width should be constant, but different depending on the cell style.
Title: Re: how to get the overall column width of autocad related gridstyles?
Post by: grrrr on January 13, 2010, 12:48:15 PM
hi owen,

thanks for the tip. i will do that in such a way.
regards