[solved] Insert Text at Caret for TComboBox lazarus / 31-LCL ---------------------------------------------------------------------- Mike.Cornflake · 2014-09-29 22:24 This is me being the absolute bog standard definition of lazy :-) Don't suppose anyone has any code for inserting text at the caret for a TComboBox? Sure, I can use SelStart & SelLength, but I never get string manipulation right first time... (excuses) ---------------------------------------------------------------------- taazz · 2014-09-30 04:30 Quote from: Mike.Cornflake on September 30, 2014, 12:24:40 amThis is me being the absolute bog standard definition of lazy :-) Don't suppose anyone has any code for inserting text at the caret for a TComboBox? Sure, I can use SelStart & SelLength, but I never get string manipulation right first time... (excuses) use copy paste (clipbrd.astext), combobox1.paste or something along those lines. ---------------------------------------------------------------------- Mike.Cornflake · 2014-09-30 10:21 Quote from: taazz on September 30, 2014, 06:30:15 amuse copy paste (clipbrd.astext), combobox1.paste or something along those lines. Elegant genius.   And you know what?  Embarrassingly enough, the text I want to insert is *already* on the clipboard, and I never once thought of pasting... Many thanks :-) ---------------------------------------------------------------------- taazz · 2014-09-30 12:36 Quote from: Mike.Cornflake on September 30, 2014, 12:21:23 pmQuote from: taazz on September 30, 2014, 06:30:15 amuse copy paste (clipbrd.astext), combobox1.paste or something along those lines. Elegant genius.   And you know what?  Embarrassingly enough, the text I want to insert is *already* on the clipboard, and I never once thought of pasting... Many thanks :-) It is not coincidence that Archimedes found his "eureka" while taking a bath ---------------------------------------------------------------------- Mike.Cornflake · 2014-09-30 12:45 Quote from: taazz on September 30, 2014, 02:36:54 pmIt is not coincidence that Archimedes found his "eureka" while taking a bath More information than I wanted