[SOLVED] How do I design large web page-like forms in the IDE? lazarus / 31-LCL ---------------------------------------------------------------------- JD · 2014-02-26 17:17 Hi there everyone, I'm trying to design a large form that will be similar to a web page horizontal & vertical scroll bars to access off-screen controls. Though the scrollbars work at runtime, the problem is the scroll bars don't work in designtime. This makes the placing of controls in the off screen region at designtime rather difficult. Is it possible to enable designtime scrolling? Thanks, JD ---------------------------------------------------------------------- JD · 2015-02-21 19:20 I"m back to this problem again as it is the only solution I have for users with different computer screen sizes. Iis is almost like having a responsive Lazarus application where the middle panel stays a constant size & the left & right panels enlarge & shrink depending on the size of the window. I was inspired to try this based on the design of some web sites. Has anyone ever tried this? JD ---------------------------------------------------------------------- zeljko · 2015-02-21 21:12 I don't like scrolled forms. What widgetset do you use ? ---------------------------------------------------------------------- Basile B. · 2015-02-21 22:43 A few years back i had a discussion with someone about this. The trick to be able scroll at design time is to set the scrollbar values in the inspector. If they are not visible then publish them in a sub component and prevent component streaming with a stored false specifier. ---------------------------------------------------------------------- JD · 2015-02-22 08:11 Quote from: zeljko on February 21, 2015, 10:12:34 pmI don't like scrolled forms. What widgetset do you use ?   How then do you use the Internet? They are all over the place. As for the widgetset, I use Windows & GTK2 on Linux. ---------------------------------------------------------------------- JD · 2015-02-22 08:13 Quote from: Basile B. on February 21, 2015, 11:43:40 pmA few years back i had a discussion with someone about this. The trick to be able scroll at design time is to set the scrollbar values in the inspector. If they are not visible then publish them in a sub component and prevent component streaming with a stored false specifier. Do you have an example somewhere I can look at? Thanks. ---------------------------------------------------------------------- Basile B. · 2015-02-22 09:28 No. Too old, i just remember the discussion took place on S.O and (it was about the FMX scrollbox) something like 1 or 2 monthes after XE2 release... But the idea is simple, if the scrollbar positions are published then you can edit them in the inspector. ---------------------------------------------------------------------- Bart · 2015-02-22 10:53 Quote from: JD on February 22, 2015, 09:11:57 amQuote from: zeljko on February 21, 2015, 10:12:34 pmI don't like scrolled forms. What widgetset do you use ? How then do you use the Internet? They are all over the place. As for the widgetset, I use Windows & GTK2 on Linux. That's wrong also. Webdesigners should use an approach called "Liquid Design", where text flows freely inside the viewport of the browser. Horizontal scrollbars (in the absence of wide elements like pictures) are a symptom of "pixel-perfect" WYSIWYG attempts in webdesign. You (the webdesigner in this case) have absolutely no control over what I see on my device with my browser, but you think you have (because you think everybody uses MS Windows with IE >= 11 and a > 21" screen with the same insane high resolution as you). And don't even get me started on catering for the visually impaired or other non-sensical visual "styles" (If I wanted to have my scrollbars screemingly pink, I would have told my OS/WindowManager to do so). As for applications: please, please, pretty please: try to avoid horizontal scrollbars, as long as this can be done in a reasonable way. Try to avoid scrollbars (both horizontal and vertical) in dialogs. Bart ---------------------------------------------------------------------- zeljko · 2015-02-22 12:09 Quote from: JD on February 22, 2015, 09:11:57 amQuote from: zeljko on February 21, 2015, 10:12:34 pmI don't like scrolled forms. What widgetset do you use ?   How then do you use the Internet? They are all over the place. As for the widgetset, I use Windows & GTK2 on Linux. I'm talking about nonweb applications, eg. Lazarus GUI apps. z ---------------------------------------------------------------------- JuhaManninen · 2015-02-22 12:59 There are 2 different issues. One is GUI design standards and one is better design time support for LCL ScrollBars. I remember having that problem with ScrollBars in ScrollBox. Its main purpose is to scroll so yes, the design time support should be better. Do new Delphi versions improve the design time experience? I don't have any recent Delphi now. I have no idea how it should be implemented. Should there be another design time scrollbar drawn somewhere? Where? Would it require ugly hacks in designer code? If somebody wants to work on this issue, I am interested to help. I agree with Bart about web page designs but it is a different issue. For example I have difficulties reading small newspaper text now without glasses. I like to read various articles with iPad because I can zoom the text. There are pages which cannot be zoomed and I just skip them. I will not fetch my glasses only because of some poorly designed pages. They lost at least one reader because of their poor design. ---------------------------------------------------------------------- zeljko · 2015-02-22 13:06 Quote from: JuhaManninen on February 22, 2015, 01:59:29 pmThere are 2 different issues. One is GUI design standards and one is better design time support for LCL ScrollBars. I remember having that problem with ScrollBars in ScrollBox. Its main purpose is to scroll so yes, the design time support should be better. Do new Delphi versions improve the design time experience? I don't have any recent Delphi now. I have no idea how it should be implemented. Should there be another design time scrollbar drawn somewhere? Where? Would it require ugly hacks in designer code? If somebody wants to work on this issue, I am interested to help. IMO, it probably can be fixed at widgetset level. You can change tabs by click during desing time in TPageControl, so scrollbars can be movable too (probably with side effects).... WSWidget.GetDesignInteractive .... in qt you can see in TQtDesignWidget.DesignControlEventFilter. ---------------------------------------------------------------------- JD · 2015-02-27 17:26 I finally solved the problem by using TScrollBox. The application's form looks good on screens of various sizes. I've tested it on Windows & on Linux and I'm satisfied with it. Thanks for all your contributions & your ideas. JD