On 2016-10-18 08:33, Martin Schreiber wrote:
>> I'm getting there! :-) See attached screenshot.
>>
> If you agree I'll try to make a plug-in with the modification later.

Of course. I'll make the code available in my Github repository when I'm
done. I don't mind maintaining my own custom mods for MSEide - I already
have quite a few, but my hope is that you will find it useful enough to
possibly include as standard at some point. ;-) A simple plug-in would
be a useful option too.


> Please set T*grid.DataCols.ColorFocused.

Perfect, thanks again for all your help.


> The items of the "cols" property are the TDataList descendents which hold the 
> column data, so
> "
> <dropdownedit>.dropdown.cols[n].asarray:= <colndata>;

The original list of data that needs to go into the ComboBox is stored
in a TStringList. In fpGUI's Maximus IDE, I could do the following:

  cbObjects.Items.Assign(FObjectStrings);
  cbObjects.FocusItem := cbObjects.Items.IndexOf(SAllString);

I've change the ComboBox widget to TDropdownListEdit and your code
suggestion does work. I can't seem to get the focus item set though.
I use the following code to populate the combobox and set the focus item.

  cbObjects.dropdown.cols.count := 0;
  cbObjects.dropdown.cols.BeginUpdate;
  for i := 0 to FObjectStrings.Count-1 do
    cbObjects.dropdown.cols.addrow([FObjectStrings[i]]);
  cbObjects.dropdown.cols.EndUpdate;
  cbObjects.dropdown.ItemIndex := 0; // SAllString is always the 1st item



> "sourcefo.activepage.filename". "sourcefo.activepage" can be nil.

Nice and simple. Thanks, that worked perfectly.



Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to