LAMW Disabled(grayed) JButton not work lazarus / 43-Android ---------------------------------------------------------------------- freris · 2017-04-28 14:39 Hi ! I try to disable (gray out) a JButton on a simple Android application with  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 JButton1.enabled:=False;  But no luck. I am using LAMW latest version. I wonder, if someone has the same problem. Any help is appreciated. Thanks ---------------------------------------------------------------------- Handoko · 2017-04-28 14:43 As far as I know, lots of properties in LAMW can't be change runtime. For example, the positions and the sizes of the component. I don't know why, perhaps they haven't implemented or maybe we should call a 'refresh' to update the screen. ---------------------------------------------------------------------- jmpessoa · 2017-04-28 16:05 Hello Freris! I will fix it! Thank you! PS. Now, you can try SetVisible(False) ... ---------------------------------------------------------------------- freris · 2017-04-28 16:46 Thanks jmpessoa ! Yes the property Visble is Ok, i know. I will wait for the fix. Thank you ---------------------------------------------------------------------- jmpessoa · 2017-04-30 00:58 Ok! Fixed in "Version 0.7.16 - 29 - April - 2017" Thank you! ---------------------------------------------------------------------- freris · 2017-04-30 07:56 Hi jmpessoa ! Yes it fixed, but no grayed out. And something else, jHttpClient component has no timeout property. I modify myself the code in ..\java\lamwdesigner\jHttpClient.java  all timeouts to meet my needs, but i think is useful to have timeout property. Thank you ---------------------------------------------------------------------- jmpessoa · 2017-04-30 15:40 Hello Freris! In my galaxy s4 - Android 5.01 -  grayed out is Ok! [I will try in others devices....] Please, send me your patched "jHttpClient.java"   ... Hint:  You can use the native Free Pascal  "FPHttpclient", too. Just put this files in your project "jni" folder:               fphttpclient.pp               httpdefs.pp               httpprotocol.pp ---------------------------------------------------------------------- freris · 2017-04-30 17:26 Hi jmpessoa ! Yes you are right. My fault, i have set custom font color.  When change to default - is ok. In jHttpClient.java, only timeout i have change. Look At attachment zip. If we can control all  timeouts from outside such as  "  SetConnetiontimeout" or "SetResponseTimeout", i suppose, that will be useful. Thank you for your suggestion ( FPHttpClient ) . ---------------------------------------------------------------------- jmpessoa · 2017-04-30 17:36 Ok. I will try your suggestion! Thank you! ---------------------------------------------------------------------- jmpessoa · 2017-05-04 05:32 QuoteIf we can control all  timeouts from outside such as   SetConnetiontimeout" or "SetResponseTimeout", i suppose, that will be useful. Done! Thank you! ---------------------------------------------------------------------- freris · 2017-05-05 10:15 Hi jmpessoa, Thanks but i have bad news... When set timeouts and run app, then app crashes. (Both timeout or independent). Can you see what happens ? Thanks again ---------------------------------------------------------------------- jmpessoa · 2017-05-05 19:06 Fixed! Thank you! ---------------------------------------------------------------------- freris · 2017-05-06 13:46 Hi jmpessoa, Yes !!  Fixed.  Thank you very much. Have a nice day.