How to autosize monitor-screen?
Posted
#1
(In Topic #1084)
Trainee
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
Posted
Guru

Posted
Trainee
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
Posted
Guru

<IMG src="https://www.cogier.com/gambas/MenuDisplay2.png">
</IMG>
Posted
Trainee
Have a nice weekend 8-)
and many greetings from
GD
1 guest and 0 members have just viewed this.




