News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

How to make a Static control with Vertical Text?

Started by caraveiro, May 25, 2009, 05:28:35 PM

Previous topic - Next topic

caraveiro



Dunno how to rotate 90° Angle a Static Control Text .

Any Clues?
"knowledge is now free at last, everything should be free from now on, enjoy knowledge and life and work for everybody else"
+ORC
http://www.fravia.com

dedndave

you will have to more descriptive
"static control test", "verticle text" - are you trying to display Chinese ?
define what you are trying to do - or, perhaps, show us some code

jj2007

Try something along these lines:

      invoke CreateFont, -12, 0, 900, 900, 0, 0, 0, 0, DEFAULT_CHARSET, 0, 0, 0, 0, 0
      mov hFnt, eax

      invoke CreateWindowEx, NULL, addr ClassStatic, addr txStatic,
         WS_CHILD or WS_VISIBLE or ES_LEFT, sx, sy, swd, sht,
         hWnd, IdStatic, hInstance, NULL
      mov hStatic, eax                  ; static window created
      invoke SendMessage, eax, WM_SETFONT, hFnt, 1   ; give it the vertical font

caraveiro

Quote from: jj2007 on May 25, 2009, 06:10:39 PM
Try something along these lines:

      invoke CreateFont, -12, 0, 900, 900, 0, 0, 0, 0, DEFAULT_CHARSET, 0, 0, 0, 0, 0
      mov hFnt, eax
.
.
.
      invoke SendMessage, eax, WM_SETFONT, hFnt, 1   ; give it the vertical font



That works!

I'd had to manage the size and aling of the control to get it perfet!

Thank you!
"knowledge is now free at last, everything should be free from now on, enjoy knowledge and life and work for everybody else"
+ORC
http://www.fravia.com

dedndave