TAG in cell of msflexgrid

User avatar
sal21
PlatinumLounger
Posts: 4353
Joined: 26 Apr 2010, 17:36

TAG in cell of msflexgrid

Post by sal21 »

Possible to write into the .tag in a single cell of msflexgrid?

For example in row 7 column 11

In effect i need to add an additional string value in the cell where i insert a picture.

If i add a string value in a textmatrix(x,y) the string value in cell cover the image.

but i thing if i use a tag to insert value dont cover the image...

i hope you understand me....

actually i use:
...

Code: Select all

RIG1 = .RowSel
            RIG = .TextMatrix(RIG1, 0)
            CLM = .Col

            Set .CellPicture = Me.ImageList1.ListImages(1).Picture
            .CellPictureAlignment = flexAlignCenterCenter
            DoEvents
            
            .TextMatrix(RIG1, CLM) = NOMINATIVO & "-" & NUMCELLULARE
            
...

User avatar
SpeakEasy
4StarLounger
Posts: 548
Joined: 27 Jun 2021, 10:46

Re: TAG in cell of msflexgrid

Post by SpeakEasy »

Judicious use of

.CellAlignment = flexAlignLeftCenter 'align text left

and

.CellPictureAlignment = flexAlignRightCenter ' align image right

(or the other way around) should go some of the way to achieving this.