Article # 323, added by Geoworks, historical record
| first |
previous |
index |
next |
last |
Finding the screen height and width of the system.
Q. How can I get the screen width and height on any system? A. There is no specific API to get general system metric information. For your specific request to get the screen width and height, you will need to do use MSG_GEN_GUP_CALL_OBJECT_OF_CLASS to send MSG_VIS_GET_BOUNDS to the GenFieldClass. MSG_VIS_GET_BOUNDS returns the current bounds of an object in a variable of type Rectangle. The GenField object is kind of a backdrop that everything else sits on. (Section 28.4 of the Objects 3 book [Objects\OSysObj.txt] describes the GenFieldClass in more detail.)