Author Topic: CDComboBox - no menu items on linux  (Read 7965 times)


  • Hero Member
  • *****
  • Posts: 1048
CDComboBox - no menu items on linux
« on: October 01, 2012, 05:14:49 pm »

I'm trying to use TCDComboBox from Custom Drawn. Everything works fine but menu items do not popup on button click. I looked into source, there is:

Code: [Select]
// Call the combobox dialog
LCLIntf.OnShowSelectItemDialogResult := @OnShowSelectItemDialogResult;
But in implementation is:
Code: [Select]
// This routine is only for platforms which need a special combobox dialog, like Android
// It returns true if a dialog was provided for doing this task or false otherwise
// The process is assynchronous, so the result will be given in LCLIntf.OnShowSelectItemDialogResult
function TWidgetSet.ShowSelectItemDialog(const AItems: TStrings): Boolean;
  Result := False;
I do not know how to interpret it. It is implemented only on android? Can I somehow implement it on linux? (GTK)


  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: CDComboBox - no menu items on linux
« Reply #1 on: January 04, 2014, 09:21:27 pm »
Yes, I focused mostly on Android.

For Linux it shouldn't use a GTK implementation but instead simply use the LCL to create a window and inside it put a list of objects to select. It would be a code that can be shared by all desktop backends.


TinyPortal © 2005-2018