Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21324

How to move an icon in a grid cell ?

$
0
0
Hell guys,
I develop a project where I use a flexgrid control (VSFlexgrid8) designed to work in a better way with databases.
In some tables of my project I had to includ a small icon (bmp format) so that to point out that a certain header cell is clickable and it allows to display supplementary information. Basicaly, the icon insertion in a cell requires 2 rows :
Code:

fg1.Cell(flexcpPicture, 0, 1) = imgNote
fg1.Cell(flexcpPictureAlignment, 0, 1) = flexPicAlignRightCenter

My issue is the alignment properties of a picture move that picture unproperly, either in right or left side of a cell (almost in the corner) while I would like to find a custom position so that have the icon somewhere in the edge of the header title.
In order to get a better view of my issue I cut an image with my header :
Name:  myIcon.PNG
Views: 49
Size:  2.0 KB
Thank you in advance for any suggestion.
Attached Images
 

Viewing all articles
Browse latest Browse all 21324

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>