andyhill Posted May 16, 2018 Share Posted May 16, 2018 I have 4 TitleButtons on a MobileForm. My code below fails (I have tried ButtonID as well), please advise how to change button text at runtime - Thanks case Mode of 0: TitleButtons[1].Caption:= 'Auto'; 1: TitleButtons[1].Caption:= 'Odd'; 2: TitleButtons[1].Caption:= 'Even'; else TitleButtons[1].Caption:= 'Auto'; end; UniSession.Synchronize; Link to comment Share on other sites More sharing options...
Sherzod Posted May 16, 2018 Share Posted May 16, 2018 Hi, Reported to support portal, Try this approach for now: UniSession.AddJS(TitleButtons[0].JSName + '.setText("newCaption")') Link to comment Share on other sites More sharing options...
andyhill Posted May 16, 2018 Author Share Posted May 16, 2018 Thanks however .JSName is an undeclared identifier when it comes to TitleButtons ? Link to comment Share on other sites More sharing options...
Sherzod Posted May 17, 2018 Share Posted May 17, 2018 Sorry, which build are you using? Link to comment Share on other sites More sharing options...
andyhill Posted May 17, 2018 Author Share Posted May 17, 2018 // Sencha Touch Runtime ExtRoot:= UniServerModule.StartPath+'ext-4.2.5.1763\'; UniRoot:= UniServerModule.StartPath+'uni-1.0.0.1423\'; UniMobileRoot:= UniServerModule.StartPath+'unim-1.0.0.1423\'; TouchRoot:= UniServerModule.StartPath+'touch-2.4.2\'; I am hesitant to update because this is a live system (built around touch) and there have been so many new issues introduced with the latest updates. Link to comment Share on other sites More sharing options...
andyhill Posted May 19, 2018 Author Share Posted May 19, 2018 Please show me a work around Link to comment Share on other sites More sharing options...
Sherzod Posted May 19, 2018 Share Posted May 19, 2018 Hi, Please show me a work around Can you try the approach, as in your "post"?: http://forums.unigui.com/index.php?/topic/10009-mobile-form-titlebutton-change-caption-on-form-show-event/&do=findComment&comment=52113 Link to comment Share on other sites More sharing options...
andyhill Posted May 19, 2018 Author Share Posted May 19, 2018 As stated before:- .titlebar.getAt(...).setText Is not a function. UniGUI ver 1423 Link to comment Share on other sites More sharing options...
Sherzod Posted May 19, 2018 Share Posted May 19, 2018 Ok, we will check Link to comment Share on other sites More sharing options...
andyhill Posted May 19, 2018 Author Share Posted May 19, 2018 I have finally updated to 1.10.0.1458 on Delphi 10.2 (Tokyo) Installed in the following order:- Complete Professional Complete Runtime Documentation Theme Pack Ran Delphi and App NOTHING WORKS AS BEFORE I NEED URGENT HELP VIA REMOTE ACCESS PLEASE HELP ASAP Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted May 19, 2018 Administrators Share Posted May 19, 2018 Have you rebuilt unigui packages? Also what do you mean by saying nothing is working? Sent from my SM-N950F using Tapatalk Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted May 19, 2018 Administrators Share Posted May 19, 2018 I have finally updated to 1.10.0.1458 on Delphi 10.2 (Tokyo) Installed in the following order:- Complete Professional Complete Runtime Documentation Theme Pack Ran Delphi and App NOTHING WORKS AS BEFORE I NEED URGENT HELP VIA REMOTE ACCESS PLEASE HELP ASAP If you have jumped directly from 1426 to 1458 then you must analyze your app carefully. Version 1.10.0.1458 is a major update with a whole new version of Ext JS library 6.5. Probably you'll need to start from your MainForm and continue checking all of your other forms one by one. Until you have a stable version of your app with 1458 you must keep your production version with build 1426. Link to comment Share on other sites More sharing options...
andyhill Posted May 20, 2018 Author Share Posted May 20, 2018 I see no Mobile Theme and therefore all mobile components fail to render in mobile on iPhone X ? Grids do not even paint ? Using TouchTheme ios makes absolutely no difference. I chose UniGUI Mobile Touch Professional to develop for mobile touch now mobile touch appears to be gone ? I do not want to jam a desktop layout into a mobile phone via scaling. You cannot say a perfectly working app can go from working great to non functioning on every level due to the update saying my programming is the cause. Link to comment Share on other sites More sharing options...
andyhill Posted May 20, 2018 Author Share Posted May 20, 2018 And for the record C:\Program Files (x86)\FMSoft\Framework\uniGUI\Source\Core\PNGImage will not compile on Tokyo 10.2 a problem I mentioned before but ignored. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted May 20, 2018 Administrators Share Posted May 20, 2018 I see no Mobile Theme and therefore all mobile components fail to render in mobile on iPhone X ? Grids do not even paint ? Using TouchTheme ios makes absolutely no difference. I chose UniGUI Mobile Touch Professional to develop for mobile touch now mobile touch appears to be gone ? I do not want to jam a desktop layout into a mobile phone via scaling. You cannot say a perfectly working app can go from working great to non functioning on every level due to the update saying my programming is the cause. First of all, can you test your setup is working? Can you confirm that uniGUI touch demos work on your dev machine? Link to comment Share on other sites More sharing options...
andyhill Posted May 20, 2018 Author Share Posted May 20, 2018 Farshad, My main problem was a legacy assignment (LayoutConfig.Height) that previously was ignored but now acted on - sorry for my stressed posting. Now with the latest build it is missing the Mobile Sencha Touch Theme that is urgently needed. As stated before it makes the website look like an installed iPhone App and users have become dependent upon it. Your C:\Program Files (x86)\FMSoft\Framework\uniGUI\Source\Core\PNGImage code will not compile on Tokyo 10.2, please provide solution - thank you. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted May 20, 2018 Administrators Share Posted May 20, 2018 Tokyo should not be compiling pngimage library. There must be a misconfiguration on your setup. Pngimage library is only for very old Delphi versions which don't have built-in png support. Sent from my SM-N950F using Tapatalk Link to comment Share on other sites More sharing options...
Recommended Posts