Page 1 of 1

Sizing for different screen s

Posted: Mon May 07, 2018 4:14 pm
by bluebird
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?

Re: Sizing for different screen s

Posted: Mon May 07, 2018 4:20 pm
by Rathinagiri
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.