change size of button in DateTimePicker c++ builder

516 views Asked by At

Good Day. Please Help. How change size of buttons (buttons: up, down, open calendar) in component DateTimePicker. I want to do touch application, but buttons too small. And i have the same trouble with ROWS in component DBGrid.

2

There are 2 answers

0
Yaroslav Vozyka On

There is answear

namespace MyNamespace
{
    class TDBGrid : public Dbgrids::TDBGrid
    {
    public:
        inline __fastcall virtual TDBGrid(Classes::TComponent* AOwner) :
            Dbgrids::TDBGrid(AOwner) {}
        __property DefaultRowHeight; // Now access is public
    };
};
#define TDBGrid MyNamespace::TDBGrid
4
Phil On

Not sure what you can do about the button size of the DateTimePicker other than change the height of the client and make the whole thing bigger. For the DBGrid row you can change this at runtime.

dbGrid1->DefaultRowHeight = 50;

Or whatever size works for you.