LAMW - Getting text in jComboExit lazarus / 43-Android ---------------------------------------------------------------------- maurobio · 2023-09-22 11:15 Dear ALL, Is there a way of getting the text string just entered into a jComboEditText? Thanks in advance! Best regards, ---------------------------------------------------------------------- Mongkey · 2023-09-22 11:54 May be this thread could help https://forum.lazarus.freepascal.org/index.php?topic=21951.0 Only need to change the control. ---------------------------------------------------------------------- maurobio · 2023-09-22 11:59 Hi, @Mongkey! Thanks, but that was not helpful. It does not even has to do with LAMW. What I want is quite simple - just a way (if there is one) of getting the text string input in a jComboEdit text. The regular LCL TComboBox has a Text property which is very useful but unfortunately is not available in the LAWM jComboEdit. Best regards, ---------------------------------------------------------------------- Mongkey · 2023-09-22 12:13 You could consider using jtextview change/enter/etc you could fire timer for procedure or direct code execution inside. Thank you ---------------------------------------------------------------------- maurobio · 2023-09-22 12:17 Hi,, @Mongkey! A jTextView is what I already use. But I want to use a jComboEdit! This seems to be yet another of those many features (of lack of!) in which LAWM is just 90% functional and useful... With best regards. ---------------------------------------------------------------------- Mongkey · 2023-09-22 12:43 QuoteThe regular LCL TComboBox has a Text property which is very useful but unfortunately is not available in the LAWM jComboEdit I saw gettext and on enter on jcomboboxedit  , if you cannot accomplish your desired component you could try mimic those component using simple almost similar component also. Satisfying everyone needs seems to be imposible i think  Thank you ---------------------------------------------------------------------- maurobio · 2023-09-22 12:54 Hi, @Mongkey! QuoteSatisfying everyone needs seems to be imposible i think But it would be definitely better for everyone if LAMW could mimic as closely as possible the LCL controls (and their methods and properties). With best regards, ---------------------------------------------------------------------- Mongkey · 2023-09-22 13:09 LAMW only has <5 active maintaner, it is a big framework for free, we have another job to feed our families  , from that point of view, we could conclude how LAMW seems to be on very slow development for many peoples, but for me LAMW has great improvement from time to time  Thank you ---------------------------------------------------------------------- maurobio · 2023-09-22 18:32 Hi, @Mongkey! I am not denying the great achievements of LAMW (otherwise I would not be using it myself). But minor improvements can be much more efficient then larger ones, if well-planned and carefully targeted. This would makes things better for everyone, no matter how many developers are there in the LAMW project. Best regards, ---------------------------------------------------------------------- c4p · 2023-09-22 20:19 Apologies in advance if I am picking this up wrong. You want to get the text that is entered/typed into a jComboEditText? This works for me: First type in text into jComboEditText say 'qwerty'. I have a jButton with this code in the OnClick event to add whatever text is entering into the jComboEditBox1 to the jComboEditBox1 list, of course you will need to save this list to a DB or CSV etc. and reload it back in on next startup, if that's what you want to do. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i jComboEditText1.add(ComboEditText1.getText); Or if you just want to display text on screen: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i showmessage(jComboEditText1.getText); Note: This will do the same thing as GetText. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i jComboEditText1.Text ---------------------------------------------------------------------- maurobio · 2023-09-23 14:15 Hi, @c4p! QuoteApologies in advance if I am picking this up wrong. You want to get the text that is entered/typed into a jComboEditText? You are absolutely right, that is just what I want! The GetText method should do the trick, but I could not find a 'Text' property in jComboEditText (at least in my version of LAMW). Thank you very much! With warmest regards,