Aggie85 Posted July 5, 2022 Share Posted July 5, 2022 Howdy All! I am developing a registration for a client. The information is orgranized in TUniPanel / TFieldSet controls. On a desktop, I can have them displayed horizontally. On smaller devices, I would like them to be shown vertically. When I developed my last app with IntraWeb, this was EASY with CSS @Media. Can I achieve this with UniGui? If so, how? Thanks in advance, Aggie85 Quote Link to comment Share on other sites More sharing options...
zilav Posted July 5, 2022 Share Posted July 5, 2022 try to find radcore theme on forum Quote Link to comment Share on other sites More sharing options...
Aggie85 Posted July 6, 2022 Author Share Posted July 6, 2022 Unfortunately for me RadCore only works with Delphi and NOT C++ Builder! All the best, Aggie85 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 6, 2022 Share Posted July 6, 2022 11 hours ago, Aggie85 said: On a desktop, I can have them displayed horizontally. On smaller devices, I would like them to be shown vertically. Hello, Also this post may help you: Quote Link to comment Share on other sites More sharing options...
Aggie85 Posted July 6, 2022 Author Share Posted July 6, 2022 Doesn't do me any good since I can't get vertical scrollbars on any combination of VBOX ...how do I get the main form with a layout of VBOX to activate the vertical scrollbar when the content heights are larger than the browser window's height? None of the desktop examples will do this. All the best, Aggie85 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 6, 2022 Share Posted July 6, 2022 5 minutes ago, Aggie85 said: Doesn't do me any good since I can't get vertical scrollbars on any combination of VBOX ...how do I get the main form with a layout of VBOX to activate the vertical scrollbar when the content heights are larger than the browser window's height? None of the desktop examples will do this. Could you please make a simple testcase to check? Quote Link to comment Share on other sites More sharing options...
Aggie85 Posted July 6, 2022 Author Share Posted July 6, 2022 Sherzod, I can't give you an example because I can't get anything to work. I just tried the SIMPLEST as following: 1) Set MainModule's MainFormDisplayMode to mfPage. 2) Set the Layout of the main form to VBOX... 3) Create 3 panels on the main form with a Layout of HBOX... 4) Set the 3 panel's height to 500px each. 5) Build and run app... if I size the browser window to NOT fit the 3 panels in vertical height, the most bottom panel is clipped and there is NO vertical scroll bar. I want to create a vertical main form that can be used for both desktops and mobile devices that will be taller than the browser's view height. How do I do this? None of the desktop examples show this. All the best, Aggie85 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 6, 2022 Share Posted July 6, 2022 7 minutes ago, Aggie85 said: I can't give you an example because I can't get anything to work. Okay. Can you test with this demo? \FMSoft\Framework\uniGUI\Demos\Desktop\Clientside Alignment - Layout VBox 9 minutes ago, Aggie85 said: 1) Set MainModule's MainFormDisplayMode to mfPage. 9 minutes ago, Aggie85 said: 2) Set the Layout of the main form to VBOX... MainForm.Layout = fit UniContainerPanel1.Layout = vbox UniContainerPanel1.AutoScroll = True UniPanel1.LayoutConfig.Flex = 0 UniPanel1.Height = 500 UniPanel2.LayoutConfig.Flex = 0 UniPanel2.Height = 500 UniPanel3.LayoutConfig.Flex = 0 UniPanel3.Height = 500 Quote Link to comment Share on other sites More sharing options...
Aggie85 Posted July 7, 2022 Author Share Posted July 7, 2022 Sherzod - thanks! The issue I was having was I somehow unchecked the AutoScroll! All the best, Aggie85 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.