Lazarus

Programming => Widgetset => CustomDrawn => Topic started by: Dibo on October 01, 2012, 05:14:49 pm

Title: CDComboBox - no menu items on linux
Post by: Dibo 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)
Title: Re: CDComboBox - no menu items on linux
Post by: felipemdc 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