Recent

Author Topic: working with small monitor  (Read 2968 times)

Weiss

  • Full Member
  • ***
  • Posts: 189
working with small monitor
« on: October 16, 2023, 02:32:53 am »
fellas, if there is a trick, I need to know. How to go about building forms while working on 10" monitor, if end user will be working on 20", sometimes even 50" monitor?


Joanna from IRC

  • Hero Member
  • *****
  • Posts: 1271
Re: working with small monitor
« Reply #1 on: October 16, 2023, 02:59:02 am »
I’m not a fella but I’ll answer your question anyway.  8)

You can use a flowpanel to rearrange your controls depending upon the width of Parent form. You can also scale your font size to form width.
✨ 🙋🏻‍♀️ More Pascal enthusiasts are needed on IRC .. https://libera.chat/guides/ IRC.LIBERA.CHAT  Ports [6667 plaintext ] or [6697 secure] channel #fpc  #pascal Please private Message me if you have any questions or need assistance. 💁🏻‍♀️

Handoko

  • Hero Member
  • *****
  • Posts: 5382
  • My goal: build my own game engine using Lazarus
Re: working with small monitor
« Reply #2 on: October 16, 2023, 09:01:27 am »
The monitor size isn't very important but the resolution is.

My monitor's resolution is 1920x1080 but I always make sure all the forms can be fitted into 800x600 because most monitors can support the resolution. I use anchors, align and panels to make it 'looks good' on larger resolutions. Sometimes, the form's size should be set to auto maximized.

For example buttons that should be always on the bottom of the form, I set its Align := [akLeft, akBottom]; For the objects that can be resized, like grids and memos, I set their Align := [akTop, akLeft, akRight, akBottom]; For some cases, putting the objects into a panel will make the positioning easier.

And yes, TFlowPanel, TForm.Scaled and LCL Scaling can be useful. But I never use them, not much I can say about them.
« Last Edit: October 16, 2023, 09:03:21 am by Handoko »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10662
  • Debugger - SynEdit - and more
    • wiki
Re: working with small monitor
« Reply #3 on: October 16, 2023, 09:11:09 am »
Install package "DockedFormEditor".

Then the designer will be part of the editor window => and it should be scrollable.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11982
  • FPC developer.
Re: working with small monitor
« Reply #4 on: October 16, 2023, 09:49:15 am »
Besides the scrolling in Delphi you can set a design size min/max.  We generally have 1280x1024 monitors in our machines, but a few 1024x768 oldies, so I set the min/max accordingly.

Joanna from IRC

  • Hero Member
  • *****
  • Posts: 1271
Re: working with small monitor
« Reply #5 on: October 17, 2023, 12:50:07 am »
Quote
TForm.Scaled and LCL Scaling can be useful.

I’m not familiar with how to use those things either ..
Does anyone here use them ?

I just make the font size form.width div 100 with User defined minimum and maximum font sizes
« Last Edit: October 17, 2023, 12:51:43 am by Joanna »
✨ 🙋🏻‍♀️ More Pascal enthusiasts are needed on IRC .. https://libera.chat/guides/ IRC.LIBERA.CHAT  Ports [6667 plaintext ] or [6697 secure] channel #fpc  #pascal Please private Message me if you have any questions or need assistance. 💁🏻‍♀️

PascalDragon

  • Hero Member
  • *****
  • Posts: 5796
  • Compiler Developer
Re: working with small monitor
« Reply #6 on: October 18, 2023, 10:10:14 pm »
Install package "DockedFormEditor".

Then the designer will be part of the editor window => and it should be scrollable.

At least on Windows there is/was the problem that the form window could not be larger than the screen size, even in the DockedFormEditor (mentioned here). 🤔

Weiss

  • Full Member
  • ***
  • Posts: 189
Re: working with small monitor
« Reply #7 on: October 19, 2023, 04:49:20 am »
Joanna and Handoko speak about scaling font to form width. Or pick smaller font, which would be naturally bigger on bigger display. I have done all that. I use anchors of course, no problem there.

I think its time I got big laptop.

 

TinyPortal © 2005-2018