Jump to content

TUniDBLookupComboBox - hide unused DropDown button


andyhill

Recommended Posts

I have a TUniDBLookupComboBox and I want to Hide DropDownTriggerButton (keep MagnifierLookUpTriggerButton)

    dblComboBoxSuppliers.ClientEvents.UniEvents.Clear;
    s:= 'beforeInit=function beforeInit(sender, config) '+
        '{ '+
        '  Triggers[0].hide(); '+
        '} ';
    dblComboBoxSuppliers.ClientEvents.Add(s);

Code above executes but does not hide button ?

Link to comment
Share on other sites

    //dblComboBoxSuppliers.HideTrigger:= True;  *** HIDES ALL BUTTONS ***
    dblComboBoxSuppliers.ListSource:= UniMainModule.dsSuppliersLkUp;
    dblComboBoxSuppliers.GridMode:= lgmPostListValue;   // lgmPostListValue, lgmPostKeyValue
    dblComboBoxSuppliers.ListOnlyMode:= lmFollowSource; // lmNoFollow, lmFollowSource (uniDBLookupHelper.pas)
    dblComboBoxSuppliers.ListField:=  'BusinessName';
    dblComboBoxSuppliers.KeyField:=   'BusinessName';
    dblComboBoxSuppliers.EndUpdate;
    UniMainModule.tblSuppliersLkUp.ReadOnly:= True;
    UniMainModule.tblSuppliersLkUp.Open;
 

Link to comment
Share on other sites

21 minutes ago, andyhill said:

but the buttons are already there, I wanted to remove one. I could of course remove all and then add but it is clearly a bug.

Andy, 

Sorry, seems I don't understand your case.

Can you make a simple app to check?

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