Jump to content

uniUniDBDateTimePicker - show pickerfield when click on uniUniDBDateTimePicker


erich.wanker

Recommended Posts

i search a silution like

if  uniUniDBDateTimePicker.onclick -> then show Pickerfield 

The actual situation is: if just Icon of uniUniDBDateTimePicker.onclick -> then show Pickerfield 

PS...if it works with a onFocus -solution - i will take it 😉 

 

Nice greetings

Erich

Link to comment
Share on other sites

36 minutes ago, erich.wanker said:

i search a silution like

if  uniUniDBDateTimePicker.onclick -> then show Pickerfield

Try this approach:

procedure TMainForm.UniFormCreate(Sender: TObject);
begin
  with UniDateTimePicker1 do
  begin
    if Kind in [tUniDate, tUniTime] then
      ClientEvents.ExtEvents.Values['click'] := 'function click(sender, eOpts){sender.getTriggers().picker.onClick()}'
    else
    begin
      ClientEvents.ExtEvents.Values['date.click'] := 'function date.click(sender, eOpts){sender.getTriggers().picker.onClick()}';
      ClientEvents.ExtEvents.Values['time.click'] := 'function time.click(sender, eOpts){sender.getTriggers().picker.onClick()}';
    end;
  end;
end;

 

  • Thanks 1
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...