TAdvMoneyEdit

Is there any reasonably simple way to completely disable this component's built-in calculator and button? I'm experiencing some strange anomalous behavior that seems to be directly related to a user clicking this edit control's button, and the calculator isn't really necessary for the particular application where it's used.



Thanks for any help and suggestions.

Set EditorEnabled=false

Thank you, Nancy,



I didn't consider that particular property and, unfortunately, I can rarely find specific information about many of the (sometimes) obscure TMS component properties. It's the one thing about TMS's products to which I wish they could devote more resources, although I know how that can go...

Hi again, Nancy,



Any other ideas, by any chance? Setting EditorEnabled to false doesn't just disable the calculator button. It disables all editing in the component. Not good.



TIA

You can use:

  AdvMoneyEdit.Button.Enabled := false;

Thanks, Bruno,



That was the answer, and for this particular app I also set Button.Visible to false to eliminate that bit of confusion.



I'm sure there's a huge number of little things like this that most developers would consider to just be common sense, but for those of us that don't code full-time, I'd like to officially put my vote in for a more complete help system for your components. They're hugely useful, but only so far as I can guess about a lot of the functionality, and the PDF documentation doesn't seem to delve into some of the more obscure controls as for the really major ones. Just a suggestion...



Again, thanks very much for the help.