Jump to content


Photo

Rows bolding problems


  • Please log in to reply
5 replies to this topic

#1 Lelik

Lelik
  • Members
  • 28 posts
  • Gender:Male

Posted 28 January 2010 - 03:56 AM

Hello! In my form I have TTimer and DBGrid. TTimer makes a field property of selected row to be chaged. Depending on this field value, a row is making bold in DBGrid in CellFormating event.

First all lines are bold, that is correct. When I select some row it should change to unbold. It happenes, but there are some drawing bugs. A row unbolds only for some first letters in first column. It unbolds full when I click to the other row.

See at picture that selected row haven't fully been unbolded. It unbolds only "Testing caption" words. And there are last 2 letters clonning in "caption" word

Attached File  Untitled_1.jpg   92.83KB   10 downloads
Кручу-верчу, ЛариÑ?у Ивановну хочу :)

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 28 January 2010 - 09:27 AM

Hello Lelik,

May you please to send me this small demo project to I add on it what is required.

Thank you,
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 Lelik

Lelik
  • Members
  • 28 posts
  • Gender:Male

Posted 28 January 2010 - 03:50 PM

Something like this, but using NextGrid instead. Just select some row and wait 5 secs

compiled in Delphi 2010Attached File  Demo.rar   365.07KB   3 downloads


Кручу-верчу, ЛариÑ?у Ивановну хочу :)

#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 28 January 2010 - 07:42 PM

Hello Lelik,

Add this line:

CODE
  NextGrid1.RefreshRow(NextGrid1.SelectedRow);


at the end of OnTimer event.

I hope that this helps.

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.

#5 Lelik

Lelik
  • Members
  • 28 posts
  • Gender:Male

Posted 29 January 2010 - 12:55 AM

Thanks.....but it's a bit strange that row don't refresh fully by itself
Кручу-верчу, ЛариÑ?у Ивановну хочу :)

#6 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 29 January 2010 - 09:08 AM

Hello,

Row must be repainted since OnFormatText event doesn't triger any event.

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.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users