Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

FNCGrid adding picture with StretchMode

 Post Reply Post Reply
Author
Bulut Muhammed Emin View Drop Down
New Member
New Member
Avatar

Joined: 05 Apr 2019
Posts: 3
Post Options Post Options   Quote Bulut Muhammed Emin Quote  Post ReplyReply Direct Link To This Post Topic: FNCGrid adding picture with StretchMode
    Posted: 28 Oct 2019 at 12:39pm
I have problem adding picture to grid because my pictures are png and their sizes bigger than cell sizes. I can put picture into grid with AddBitmap function but its very bad looking. Is TTMSFNCGrid  has any function with strechmode like TAdvStringGrid's AddPicture function
Back to Top
Bulut Muhammed Emin View Drop Down
New Member
New Member
Avatar

Joined: 05 Apr 2019
Posts: 3
Post Options Post Options   Quote Bulut Muhammed Emin Quote  Post ReplyReply Direct Link To This Post Posted: 28 Oct 2019 at 12:40pm
Originally posted by Bulut Muhammed Emin

I have problem adding picture to grid because my pictures are png and their dimensions bigger than cell dimensions . I can put picture into grid with AddBitmap function but its very bad looking. Is TTMSFNCGrid  has any function with strechmode like TAdvStringGrid's AddPicture function
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3392
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 28 Oct 2019 at 2:29pm
Yes, you can use the following code to stretch the bitmap:

  if Cell is TTMSFNCBitmapGridCell then
    (Cell as TTMSFNCBitmapGridCell).ControlStretched := True;
Back to Top
Bulut Muhammed Emin View Drop Down
New Member
New Member
Avatar

Joined: 05 Apr 2019
Posts: 3
Post Options Post Options   Quote Bulut Muhammed Emin Quote  Post ReplyReply Direct Link To This Post Posted: 21 Nov 2019 at 1:51pm
Thanks , İts work :)
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down