Jump to content


Photo

Grid background transparent or image


  • Please log in to reply
9 replies to this topic

#1 Oklawa

Oklawa
  • Members
  • 7 posts

Posted 01 December 2008 - 02:01 PM

is it posible change grid background to transparent or draw image on background of grid?

I'm using:
customdrawcel for numbers and names
drag&drop for move shirts

Attached Files



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 01 December 2008 - 04:09 PM

Hello,

Very nice application, but I affraid that it is not possible to have transparent cells.

Tell me if you need more help.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 01 December 2008 - 04:28 PM

Hello,

I have try now to use TImage component and set DisplayMode to dmCustomOnly for columns. Some kind of results I got, but it will be required more testing and trying.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#4 flavsouvou

flavsouvou

    Senior Member

  • Members
  • PipPip
  • 207 posts

Posted 21 January 2010 - 03:07 PM

Hi Boki,


I need to draw a background image for a nextgrid.
How do I do this ?




Thanks

#5 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 22 January 2010 - 06:51 AM

Hello,

Only solution is to use Custom Drawing. Then, inside cells draw image portion by portion.

You may use TBitmap , load it from file and then with using CopyRect draw some region of image in cell.

If I have some time, I will made a demo.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#6 flavsouvou

flavsouvou

    Senior Member

  • Members
  • PipPip
  • 207 posts

Posted 22 January 2010 - 03:28 PM

Hi Boki,

that s what I thought.

Do you think that s heavy for CPU load OR
only the image portion of the visible cells are drawn and that s ok like this ?


Thanks.


#7 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 23 January 2010 - 01:06 AM

Hello,

I don't think that it will be big CPU usage, since bitmap (TBitmap) will be in memory.

Main catch is how to calculate and draw image sqaures inside cells.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#8 flavsouvou

flavsouvou

    Senior Member

  • Members
  • PipPip
  • 207 posts

Posted 01 February 2010 - 04:13 AM

Hi Boki,


I tried to copyrect but it doesnt work. See demo.

Could you help me to get it working ?


Thanks Boki.




Attached Files



#9 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 01 February 2010 - 02:55 PM

Hi,

I will need a day or two to complete it. I hope that I will succeed smile.gif

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#10 flavsouvou

flavsouvou

    Senior Member

  • Members
  • PipPip
  • 207 posts

Posted 01 February 2010 - 03:15 PM

Thanks Boki.

I think that it could be very great for the component itself and I really need this for my project.







1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users