CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2001
    Location
    Barcelona-Spain
    Posts
    2

    flexgrid.cellpicture & size

    Hi everybody.
    When I put an 16 x 16 icon in a flexgrid's cell with the CellPicture property, it show me an x-size icon, and the draw (picture) is big and ugly. Anyway it's not what I want to show. How can I do it? Any suggestion?
    Thanks


  2. #2
    Join Date
    Mar 1999
    Location
    Nepal
    Posts
    540

    Re: flexgrid.cellpicture & size

    An immediate solution, if you are not letting the user resize the cells is to use an image whose size equals the cell size, and the cross is on the top left corner.


  3. #3
    Join Date
    May 2001
    Location
    Barcelona-Spain
    Posts
    2

    Re: flexgrid.cellpicture & size

    Thanks !!! I've find the solution. The problem was that I run
    set Flexgrid.CellPicture = Picture1.Picture

    when I must run...
    set Flexgrid.CellPicture = Picture1.Image

    and, perhaps, don't let the user resized the cell
    Thank you very much
    Rosa


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured