Sizing for different screen s

Topic Specific Tutorials and Tips.

Moderator: Rathinagiri

Post Reply
Posts: 156
Joined: Wed Sep 28, 2016 3:55 am
DBs Used: DBF
Has thanked: 43 times
Been thanked: 7 times

Sizing for different screen s

Post by bluebird » Mon May 07, 2018 4:14 pm

My dear mentors

I have written a game program that I would like to modify so that it can operate on smaller desktops. Please advise on how to approach generalizing the sizes and placement of objects. Bos Taurus is being used for the graphics.

There is firstly the desktop then a window within that desktop

Then there are images within the window client area that form a background for placement of a labels array.
Finally there is an array of labels within the background image . The labels should remain the same size to make
their contents readable

The program works well with my desktop but on a smaller screen the labels are displaced.

thank you for reading my post.

PS after creating an hDC, does the line nRow:= hDC1.Label1.row make sense? i,e. does the hDC have its own row.col properties?

User avatar
Posts: 5255
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 167 times
Been thanked: 167 times

Post by Rathinagiri » Mon May 07, 2018 4:20 pm

No. HDC doesn't have row col properties.

HDC is handle of Device Context. It may change according to the device context (bitmap, window, printer, screen etc.,) you choose.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

Post Reply