Hi there,
since I have not found a solution so far, I would like to share a problem here. I have a small routine running on Gambas 3.12.2 that displays a menu card
with 4 different labels on one monitor. The problem occurs when the monitor resizes and the panels do not fit the new size afterwards. I have not found a
command or routine to solve this problem as there is no viable solution anywhere. Have any of you solved such a problem in the past? Help is needed.
Greetings from GD
How to autosize monitor-screen?
- Gamba_Dance
- Posts: 11
- Joined: Wednesday 30th September 2020 8:43am
How to autosize monitor-screen?
- Attachments
-
- 4-fach-Panel.jpg (288.35 KiB) Viewed 1668 times
If even one line of "Hello World" program code requires an intelligent riginator, how can anyone claim that the human genome with 3,300,000,000 lines f intelligent code could have been created by chance
- cogier
- Site Admin
- Posts: 1127
- Joined: Wednesday 21st September 2016 2:22pm
- Location: Guernsey, Channel Islands
Re: How to autosize monitor-screen?
Does the attached help?
- Gamba_Dance
- Posts: 11
- Joined: Wednesday 30th September 2020 8:43am
Re: How to autosize monitor-screen?
Hi cogier,
thank you and your script shows the final solution, the automatic size of the whole visible frame as it should be. You have used container elements like HBox and Panel.
You split the content into 4 png images. In my solution there is a lot of add-on programming behind the scene, for example each of the 4 labels and red stripes retrieves its own data from a database.
There are also other routines, but they are not important at this point. What I want to say is that I have to change everything that has to do with the output of the data on the screen,
because my used fields can't be converted to container elements only. That doesn't work. Either I program a conversion from the data fields into 4 separate .png as output (which could
work with your solution), or I have to change something in the programming code. Since this is internal company stuff, I can't publish the code.
Greetings GD
thank you and your script shows the final solution, the automatic size of the whole visible frame as it should be. You have used container elements like HBox and Panel.
You split the content into 4 png images. In my solution there is a lot of add-on programming behind the scene, for example each of the 4 labels and red stripes retrieves its own data from a database.
There are also other routines, but they are not important at this point. What I want to say is that I have to change everything that has to do with the output of the data on the screen,
because my used fields can't be converted to container elements only. That doesn't work. Either I program a conversion from the data fields into 4 separate .png as output (which could
work with your solution), or I have to change something in the programming code. Since this is internal company stuff, I can't publish the code.
Greetings GD
If even one line of "Hello World" program code requires an intelligent riginator, how can anyone claim that the human genome with 3,300,000,000 lines f intelligent code could have been created by chance
- cogier
- Site Admin
- Posts: 1127
- Joined: Wednesday 21st September 2016 2:22pm
- Location: Guernsey, Channel Islands
Re: How to autosize monitor-screen?
I think I better understand what you are trying to do. Have a look at this code.
- Gamba_Dance
- Posts: 11
- Joined: Wednesday 30th September 2020 8:43am
Re: How to autosize monitor-screen?
Super! Thanks much, because this solution gets the problem completely out of the way. I can now address the text fields with data from saved content and the size automatically adjusts to different monitor sizes. That's all I wanted. You've additionally added more fields to the panel than I need, but that's not a problem. I only need 2 fields per panel and can customize it that way.
Have a nice weekend
and many greetings from
GD
Have a nice weekend
and many greetings from
GD
If even one line of "Hello World" program code requires an intelligent riginator, how can anyone claim that the human genome with 3,300,000,000 lines f intelligent code could have been created by chance