Jump to content


Photo

Checkbox in NextDBGrid


  • Please log in to reply
23 replies to this topic

#21 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 24 November 2011 - 04:59 PM

<p>Hi,</p>
<p> </p>
<p>Please replace it by:</p>
<p> </p>
<p> </p>
<div><span>
</span>
<div><span>procedure TNxDBCheckBoxColumnDisplay.Paint;</span></div>
<div><span>var</span></div>
<div><span>  Value: Boolean;</span></div>
<div><span>begin</span></div>
<div><span>  with Column as TNxDBCheckBoxColumn do</span></div>
<div><span>  begin</span></div>
<div><span>    if WideSameText(AsString, ValueChecked) then Value := True</span></div>
<div><span>    else if WideSameText(AsString, ValueUnchecked) then Value := False</span></div>
<div><span>    else Exit;</span></div>
<div><span>    DrawCheckBoxState(Self.ClientRect, Value, False, False);</span></div>
<div><span>  end;</span></div>
<div><span>end;</span></div>
<span>
</span></div>
<div> </div>
<div><span>I hope that now is fine.</span></div>

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.

#22 tarnschaf

tarnschaf
  • Members
  • 14 posts

Posted 24 November 2011 - 05:02 PM

Well, this is exactly what I suggested in my post. But okay, then I guess I did it right.

#23 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 24 November 2011 - 05:18 PM

Hi,

I Agree.

I have only add a WideString compare.
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.

#24 cronchi

cronchi
  • Members
  • 12 posts

Posted 21 April 2012 - 06:22 PM

Where are the examples source mentioned in this topic, download links don't work?




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users