Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.pascal.delphi.misc > #216
| From | Hans-Peter Diettrich <DrDiettrich1@aol.com> |
|---|---|
| Newsgroups | comp.lang.pascal.delphi.misc |
| Subject | Re: A DBGrid with a clickable button |
| Date | 2012-02-13 09:50 +0100 |
| Message-ID | <9ps3dkFn2qU1@mid.individual.net> (permalink) |
| References | <4f37e08c$0$1380$4fafbaef@reader2.news.tin.it> <LgSZq.19832$E07.16639@newsfe10.iad> <4f384694$0$1389$4fafbaef@reader2.news.tin.it> |
Stark schrieb: > I am not sure I understand your comments. I'll try to explain what I > did: In a form I have a DBGrid and a Table as Datasource. I want one of > the columns to display a button, rather then its content. So I set > DefaultDrawing to true and paint the button with DrawFrameControl. This IMO is the wrong approach. Such drawings tend to disappear almost immediately. Try to find the properties that make the control behave as you want. > The > DBGrid1 OnDrawColumnCell event is called initially when the DBGrid > associated table is opened and whenever any cell is entered or the grid > scrolled. The button shows correctly. But clicking on it, the button is > repainted pushed and does not raise if clicked again. AFAIR there exists some propery AllowAllUp (or the like). When such buttons are grouped, they can behave like radio buttons (exactly one down), or as independent up/down buttons. That's different behaviour from ordinary push buttons (OK, Cancel...). DoDi
Back to comp.lang.pascal.delphi.misc | Previous | Next — Previous in thread | Find similar
A DBGrid with a clickable button "Stark" <franco.jommi@tin.it> - 2012-02-12 16:54 +0100
Re: A DBGrid with a clickable button Jamie <jamie_ka1lpa_not_valid_after_ka1lpa_@charter.net> - 2012-02-12 12:07 -0500
Re: A DBGrid with a clickable button "Stark" <franco.jommi@tin.it> - 2012-02-13 00:09 +0100
Re: A DBGrid with a clickable button Jamie <jamie_ka1lpa_not_valid_after_ka1lpa_@charter.net> - 2012-02-12 21:01 -0500
Re: A DBGrid with a clickable button "Stark" <franco.jommi@tin.it> - 2012-02-13 14:48 +0100
Re: A DBGrid with a clickable button GS <gs@somewhere.net> - 2012-02-13 10:40 -0500
Re: A DBGrid with a clickable button Jamie <jamie_ka1lpa_not_valid_after_ka1lpa_@charter.net> - 2012-02-13 17:48 -0500
Re: A DBGrid with a clickable button "Stark" <franco.jommi@tin.it> - 2012-02-14 12:11 +0100
Re: A DBGrid with a clickable button Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2012-02-13 09:50 +0100
csiph-web