how to get the overall column width of autocad related gridstyles?

Started by grrrr, January 10, 2010, 06:53:50 AM

Previous topic - Next topic

grrrr

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.

Fred Tomke

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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

grrrr

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.

Fred Tomke

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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

grrrr

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.

owenwengerd

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.
Owen Wengerd (Outside The Box) / ManuSoft

grrrr

hi owen,

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