How to add some buttons to selected ListBox item via style?

孤者浪人 提交于 2019-12-25 04:14:08

问题


Is there a way to add some buttons to the selected ListBoxItem by adding these buttons to a style which is being used for the selected item?

I didn't yet find a suitable style FMX uses to display the selected item.

My goal is to have some buttons on the selected item with context based functionality. While I can do this by reparenting a TButton created in code in the OnPaint event of the ListBox, this works for Android but not for Win32 as it is being overpainted by the selection.

Other solutions like doing this in OnItemClick or OnClick are sluggish or only work properly on Win32 but not on Android and would need to be put into a timer fired on click.

来源:https://stackoverflow.com/questions/52311599/how-to-add-some-buttons-to-selected-listbox-item-via-style

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!