Setting the size of a image [Grid control].

Started by zeha · 2007-07-11 09:25 UTC · 7 replies · SMF topic #12

Hi,

How to set the size of a image from a header Grid control.

I use OpenDcl 4.0.1.18

Another question,

How can i get and set the string from the header column Grid control?

Is there a method for set the color for an invidual cell from a Grid control?

Thx

Harrie
I don't think you can change the image size.
I think the max height is 15 pix. & the width can be whatever.
I don't think you can get /set the header text. You'd have to delete the column & add it again... :(
Also no color per cell.
Maybe you can add these to the "wish list".
Also, I know some other users use 3rd. party ActiveX controls like FlexGrid to do this type of stuff, but it cost $$$. :)
author=BazzaCAD link=topic=12.msg41#msg41 date=1184186137 wrote:
I don't think you can change the image size.
I think the max height is 15 pix. & the width can be whatever.
I don't think you can get /set the header text. You'd have to delete the column & add it again... :(
Also no color per cell.
Maybe you can add these to the "wish list".
Also, I know some other users use 3rd. party ActiveX controls like FlexGrid to do this type of stuff, but it cost $$$. :)



Thanks for reply

Question:
How to set the width of a image header Grid control.
Can that be done with a method.

Regards
Harrie

Hello Harrie,

I'm not sure what you mean by 'width of a image header Grid control.'

Can you clarify this ?

The initial width of all columns can be set in properties .. see the pictute attached .

regards
Kerry


[attachment deleted by admin]
author=zeha link=topic=12.msg54#msg54 date=1184309861 wrote:

Thanks for reply

Question:
How to set the width of a image header Grid control.
Can that be done with a method.

Regards
Harrie



It uses the width of the first image you import. If the first one is 16pix. wide, then everything imported after that will be 16pix. wide.
author=BazzaCAD link=topic=12.msg56#msg56 date=1184345487 wrote:
[quote author=zeha link=topic=12.msg54#msg54 date=1184309861]

Thanks for reply

Question:
How to set the width of a image header Grid control.
Can that be done with a method.

Regards
Harrie



It uses the width of the first image you import. If the first one is 16pix. wide, then everything imported after that will be 16pix. wide.


Thanks you very much for reply,

What i want to do is setting the image of a grid column image
It must be set to a very smal size
See attached picture

Regards
Harrie

[attachment deleted by admin]
author=Kerry Brown link=topic=12.msg55#msg55 date=1184312637 wrote:
Hello Harrie,

I'm not sure what you mean by 'width of a image header Grid control.'

Can you clarify this ?

The initial width of all columns can be set in properties .. see the pictute attached .

regards
Kerry


Hello Kerry,

Thanks for reply

I use the image for use to see whitch column is sorted in (like the windows explorer)
See attched picture by post BazzaCAD.


Regards
Harrie
Just to confirm Barrys comment

The No. 0 icon was 24 X 16
When I added the No. 1 image later it was 48 X 48 but came in as 24 X 16



[attachment deleted by admin]