Ask Your Question
4

In Delphi 11.3 FMX, what is the method to modify the background of the Combobox dropdown list to be transparent and, if feasible, rounded?

asked 2022-03-25 11:00:00 +0000

woof gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2021-11-10 12:00:00 +0000

ladyg gravatar image

To modify the background of the Combobox dropdown list to be transparent and rounded in Delphi 11.3 FMX, you can do the following:

  1. Select the Combobox component in the Designer.

  2. Go to the "Style Lookup" property and click the ellipsis button to open the "Combobox Style Lookup" dialog.

  3. In the "Combobox Style Lookup" dialog, select the "ComboBoxStyle" item and click the "Edit..." button to edit the style.

  4. In the editor, expand the "Dropdown" item under the "ComboBoxStyle" item.

  5. Select the "background" item and change its "Fill.Color" property to "Transparent".

  6. Add a new "Rectangle" object as a child of the "Dropdown" item.

  7. Set the "Rectangle" object's "Align" property to "Client" and its "CornerType" property to "Round".

  8. Set the "Fill.Color" property of the "Rectangle" object to the desired color for the dropdown list background.

  9. Save and close the style editor.

The Combobox dropdown list should now have a transparent background with rounded corners.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-03-25 11:00:00 +0000

Seen: 7 times

Last updated: Nov 10 '21