Recent

Author Topic: static button with procedure  (Read 5213 times)

benohb

  • Full Member
  • ***
  • Posts: 213
static button with procedure
« on: December 05, 2011, 04:47:24 am »
Hello

I want a  static button with procedure ....

Code: [Select]
Button.Enabled:=false; Does not meet my need

To understand more
When you move or choose buttons in (mode edit form )  , buttons do not behave like the (run-time mode)

« Last Edit: December 05, 2011, 04:55:59 am by benohb »

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: static button with procedure
« Reply #1 on: February 05, 2012, 05:12:32 pm »
I haven't understood anything from what you say, try to explain in the following format which is utilized to remove ambiguities:

1> Step-by-step of the steps you are doing
2> The result that you see
3> The result that you expected to have

lainz

  • Guest
Re: static button with procedure
« Reply #2 on: February 05, 2012, 06:06:46 pm »
I think that he want a button with only the 'normal' state, like when editing in the object inspector. And then assign a function to the button.

Using Enable := False doesn't works because the clic event isn't called.

You can use CustomDrawnButton in customdrawn package and create a drawer or use TBGRAButton in BGRAControls package that already has a 'StaticButton' property.

benohb

  • Full Member
  • ***
  • Posts: 213
Re: static button with procedure
« Reply #3 on: August 12, 2012, 09:09:44 am »
CustomDrawn ....solved  problem ... Thanks

 

TinyPortal © 2005-2018