Jump to content

UniDbDateTimePicker configuration when using property "kind = tUniDateTime"


awendisch

Recommended Posts

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.

image.png.db776129f45e27e18bc8f18dba80d7b4.png 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?

 

Link to comment
Share on other sites

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;
    

 

  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...