Setting the size of a image [Grid control].

Started by zeha, July 11, 2007, 02:25:46 AM

Previous topic - Next topic

zeha

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

BazzaCAD

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 $$$. :)
a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom

zeha

Quote from: BazzaCAD on July 11, 2007, 01:35:37 PM
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


Kerry

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]
Perfection is not optional.
My other home is TheSwamp

BazzaCAD

Quote from: zeha on July 12, 2007, 11:57:41 PM

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.
a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom

zeha

Quote from: BazzaCAD on July 13, 2007, 09:51:27 AM
Quote from: zeha on July 12, 2007, 11:57:41 PM

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]

zeha

Quote from: Kerry Brown on July 13, 2007, 12:43:57 AM
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

Kerry

#7
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]
Perfection is not optional.
My other home is TheSwamp