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.
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
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.
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
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.
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.
hi owen,
thanks for the tip. i will do that in such a way.
regards