Frederick Posted June 10, 2022 Share Posted June 10, 2022 I write applications for the desktop but at times, I want to design a form (using desktop controls) that will fit within a mobile phone's screen, with vertical scrolling only. What is the best way to do this? Are there examples I can look at? -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1560) Link to comment Share on other sites More sharing options...
rencarnacion Posted June 10, 2022 Share Posted June 10, 2022 I suggest you radcore , please check it out Link to comment Share on other sites More sharing options...
Frederick Posted June 10, 2022 Author Share Posted June 10, 2022 5 hours ago, rencarnacion said: I suggest you radcore , please check it out Thanks for your suggestion. I would prefer re-design the form myself because the form is already complete and displays well in a desktop but difficult to see on a mobile phone I have only 3 days to finish the makeover I have no time to learn a third party product as extensive as Radcore Link to comment Share on other sites More sharing options...
Sherzod Posted June 11, 2022 Share Posted June 11, 2022 Hello, 6 hours ago, Frederick said: the form is already complete and displays well in a desktop but difficult to see on a mobile phone Are you using client-side alignment? \FMSoft\Framework\uniGUI\Demos\Desktop\Clientside Alignment - Layout VBox Link to comment Share on other sites More sharing options...
Frederick Posted June 11, 2022 Author Share Posted June 11, 2022 I am currently not doing any type of alignment but just creating the application like what I do in VCL. I will definitely look at the demo. Thanks. Link to comment Share on other sites More sharing options...
Frederick Posted June 12, 2022 Author Share Posted June 12, 2022 I have looked through the demos for layout management and I can't seem to find something that emulates the UniGUI forums when viewed in a web browser. You will see that there is no horizontal scrolling and only vertical scrolling. As the web browser is resized, everything resizes itself to fit into the web browser's viewport. How do I get my application to work like this? Link to comment Share on other sites More sharing options...
Aggie85 Posted July 6, 2022 Share Posted July 6, 2022 Frederick, Did you ever figure out to get vertical scrolling on a UniGui form? I am having the same issue as you are and can't proceed with out it. All the best, Aggie85 Link to comment Share on other sites More sharing options...
Frederick Posted July 7, 2022 Author Share Posted July 7, 2022 Hi Aggie85, I used the following code and it seems to work. MainForm.ClientEvents.ExtEvents -> function window.boxready(sender, width, height, eOpts) { document.getElementsByTagName('head')[0].childNodes.forEach(function(el){if (el.tagName=="STYLE" && el.innerHTML=="body {overflow-y: hidden !important;}") el.innerHTML=""}); Ext.getBody().setStyle('overflow', 'auto'); } Link to comment Share on other sites More sharing options...
Aggie85 Posted July 7, 2022 Share Posted July 7, 2022 Thank you very much for sharing. Link to comment Share on other sites More sharing options...
Frederick Posted July 7, 2022 Author Share Posted July 7, 2022 You are welcome. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now