Jump to content

TUniDBComboBox


picyka

Recommended Posts

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;

 

Link to comment
Share on other sites

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

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