Jump to content

Recommended Posts

Posted
39 minutes ago, picyka said:

In the TUniDBComboBox component how do I give an F4 and fire an item from the Triggers

this is preferably on the client side.

Do you want like this?

For example for UniComboBox1:

procedure TMainForm.UniComboBox1KeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
  if Key = VK_F4 then
    UniComboBox1.Expand; //(Sender as TUniComboBox)

end;

 

Posted
9 minutes ago, Sherzod said:

Do you want like this?

For example for UniComboBox1:


procedure TMainForm.UniComboBox1KeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
  if Key = VK_F4 then
    UniComboBox1.Expand; //(Sender as TUniComboBox)

end;

 

procedure TUniDBComboBoxObject._TriggerEvent (Sender: TUniCustomComboBox;
  AButtonId: Integer);
start
  if AButtonId = 0 then
    Self.ExecuteSearch;

  if Assigned (Self.FOldTriggerEvent), then
    Self.FOldTriggerEvent (Sender, AButtonId);
end;

 

OnTriggerEvent := Self._TriggerEvent;

 

I wanted to call a client-side trigger event
with JS

using F4

Posted

procedure TUniDBComboBoxObject._KeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
  if (key = VK_F4) and (Self.Triggers.Count > 0) then
    Self.OnTriggerEvent(Self,0);
end;
 

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...