Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.pascal.delphi.misc > #217
| From | "Stark" <franco.jommi@tin.it> |
|---|---|
| Newsgroups | comp.lang.pascal.delphi.misc |
| References | <4f37e08c$0$1380$4fafbaef@reader2.news.tin.it> <LgSZq.19832$E07.16639@newsfe10.iad> <4f384694$0$1389$4fafbaef@reader2.news.tin.it> <F5_Zq.12679$j%3.9313@newsfe04.iad> |
| Subject | Re: A DBGrid with a clickable button |
| Date | 2012-02-13 14:48 +0100 |
| Message-ID | <4f39149e$0$1385$4fafbaef@reader2.news.tin.it> (permalink) |
| Organization | TIN.IT (http://www.tin.it) |
> > I only assumed you wanted the button to raise as you lifted your mouse > button? Now it seems you want a toggle action? > > If the DataType boolean isn't changing state then how would you > expect it to redraw anything but the same thing, over and over again? > > If infact the DataType value is changing when you click there, then you > need another DrawFrameCOntrol in a raise state when the DataType is > false. I see that you are only drawing one state there and most likely > the form isn't getting a Invalidate to repaint that area otherwise. > > Put a Beep in the event code to see if your clicks are even reaching it > all the time.. It is possible the canvas thinks you don't need to > update there and there for, it does not always get called. > > Jamie > Sorry for my english, but I don't want a toggle action. I just want a clickable button, that is a button that when clicked just blinks and stays as it is. What happens is that when I click the button becomes pushed and stays pushed. If I click a button in another row, this will become pushed, and the previous is raised. It is not what I want. In fact I wanted to give the user a way to choose one of the rows of the DBGrid and push its button to act on that row. I may find another way, for example a single external button; the user can highlight a row and then push this single button. I just wanted what I thought was a more intuitive interface for the user..
Back to comp.lang.pascal.delphi.misc | Previous | Next — Previous in thread | Next 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