awendisch Posted January 25, 2023 Share Posted January 25, 2023 Currently I'm using this component (UniDbDateTimePicker) with the property "Kind" set to tUniDateTime to handle TimeStamps fields from my DB, but I'm having trouble to set the width correctly to make both sides rightly ajusted. As you guys can see, the left side has more than sufficient space while the right side doesn't have enough. If I try to increase the width the proportion stand the same and the spare space from the left side increase aswell making my layout look bad. Does anyone know how to set the width from both sides (Date and Time) separately? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 25, 2023 Share Posted January 25, 2023 Hello, 46 minutes ago, awendisch said: but I'm having trouble to set the width correctly to make both sides rightly ajusted. Try this approach: procedure TMainForm.UniFormCreate(Sender: TObject); begin with UniDBDateTimePicker1 do if Kind = tUniDateTime then ClientEvents.UniEvents.Values['time.beforeinit'] := 'function time.beforeInit(sender, config){config.flex=8.5}'; ... end; 2 Quote Link to comment Share on other sites More sharing options...
awendisch Posted January 25, 2023 Author Share Posted January 25, 2023 It Worked, Thanks. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.