Recent

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

Dibo

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

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;
LCLIntf.ShowSelectItemDialog(FItems);
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;
begin
  Result := False;
end;
I do not know how to interpret it. It is implemented only on android? Can I somehow implement it on linux? (GTK)

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3541
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.