JMW
Aspiring Addon Developer
Just so I can go:facepalm:!!
Can someone enlighten me how we change the font size/characteristics please in something like:
(Thanks JELAIR)
I've searched things like http://www.orbiter-forum.com/showthread.php?t=15810&highlight=HFONT+font but they're somewhat over my head.
Just a simple example would be great.
Thanks if you can put me out of my misery.
Can someone enlighten me how we change the font size/characteristics please in something like:
Code:
[SIZE=2]{[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]char[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] buffer[150];[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]switch[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (id) [/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]case[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] AID_TIME_LIGHTS:[/SIZE]
[SIZE=2]HDC hDC = oapiGetDC(surf);[/SIZE]
[SIZE=2]sprintf(buffer, [/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"%02.0f : %02.0f : %02.0f"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2], SysTimeHour, SysTimeMinute, SysTimeSecond);[/SIZE]
[SIZE=2]SetBkMode (hDC, TRANSPARENT);[/SIZE]
[SIZE=2]SetTextColor (hDC, RGB(0, 196, 196));[/SIZE]
[SIZE=2]TextOut(hDC, 0, 0, buffer, strlen(buffer));[/SIZE][SIZE=2][COLOR=#008000][SIZE=2][COLOR=#008000]//0, 65,[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2]oapiReleaseDC(surf, hDC);[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]return [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]true[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2];[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2]}[/SIZE]
I've searched things like http://www.orbiter-forum.com/showthread.php?t=15810&highlight=HFONT+font but they're somewhat over my head.
Just a simple example would be great.
Thanks if you can put me out of my misery.
