Textwidth() and font positioning.

BlitzMax Forums/BlitzMax Beginners Area/Textwidth() and font positioning.

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

You can get the device context using something like this...
Import Pub.Win32

Extern "win32"
  Function GetActiveWindow()
End Extern


Graphics 800, 600, 0

hWnd:Int = GetActiveWindow()
hDC:Int = GetDC(hWnd)