Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid with images in columns
Message
From
14/11/2002 03:07:17
 
 
To
14/11/2002 01:47:06
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00722524
Message ID:
00722542
Views:
9
Hi!

I think your wish is a good one, but in general - not only for Grid controls. Cetering of images in Image control was always needed, though could be done programmatically.

For what is worse, Image control is not completely supported as a control inside of grid column, because it has no ControlSource.

Your approach to use Container in a grid column is correct. However, the size of container is not changed when column or row resized exactly because the same reason - container control is also not supported completely in grid cell. You require define code for Resized even of the grid. To trap row change by user, remember Grid.RowHeight property in Grid.MouseDown event and compare it with new value in Grid.MouseUp event. If RowHeight is changed during mous click process, fire your code for case grid row height is changed by user.

>Hi,
>
>I tried to use image as CurrentControl in grid's column. All works fine except alignment. Pictures are top-left aligned and there is no way to center them in cells. Or maybe there is a way? All we need, I think, is Alignment property, which allows us control picture position on image control.
>
>(Similar effect I have observer wich labels. There is Alignment prop, but we can control only horizontal alignment. It will be cool, to extend it to control also vertical text position.)
>
>I tried use container instead and programmatically center images in it. Unfortunately, resizing column and/or rows does not fire resize event on that container. Can we consider it as a bug or should I place it on wishlist?
>
>Regards,
>
>Janusz Czudek
>WORD Software
>http://www.wordsoft.com.pl
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform