yep how can i do this ??




[--------------THIS------------]
[--------------IS---------------]
[----------------MY------------]
[-----------BUTTON-----------]
Posted on 2003-06-21 05:03:08 by AceEmbler
I did that with a button, I think i just use 13,10
and a 2nd line.

But I went for bitmap because I could not change the font for each line which would made it look much nicer.
Posted on 2003-06-21 06:02:27 by cmax

I did that with a button, I think i just use 13,10
and a 2nd line.

But I went for bitmap because I could not change the font for each line which would made it look much nicer.


13,10
Not working
Posted on 2003-06-22 05:00:38 by AceEmbler
AceEmbler

You need an OWNERDRAW button in order to do it, and
use DrawText in the WM_DRAWITEM.


Regrards

Guy
Posted on 2003-06-22 07:31:30 by Guy
No, you should just set button style BS_MULTILINE. To separate lines, a LF (0x0A) should suffice.
Posted on 2003-06-22 07:33:56 by japheth
i Dont have BS_MULTILINE in my MSDN !!
Posted on 2003-06-23 03:06:17 by AceEmbler
You'll find it under CreateWindow (not CreateWindowEx) if I remember correctly.
Posted on 2003-06-23 03:23:29 by donkey
BS_MULTILINE equ 2000h
Posted on 2003-06-23 05:28:16 by japheth
It's working :).


I have got MSDN October 2001 it looks like i nead to get newest version.
Posted on 2003-06-23 07:28:44 by AceEmbler
Actually it's in Win32.hlp and in all versions of the SDK and MSDN. The mulit-line button has been around since 16 bit windows.
Posted on 2003-06-23 10:59:53 by donkey
It's there i know that but you cant find it by.
INDEX---->Type in the keyword to find:

there are diffrent BS_ but no of them is BS_MULTILINE.
Posted on 2003-06-23 11:39:35 by AceEmbler
AceEmbler,

I am going to look at what i did in that program to see how I did it. I am sure it was 13 10 ... Whatever i did i will post an example tomorrow anyway.
Posted on 2003-06-27 04:00:47 by cmax

AceEmbler,

I am going to look at what i did in that program to see how I did it. I am sure it was 13 10 ... Whatever i did i will post an example tomorrow anyway.


Yes it was 13 10 but you have to spcify BS_MULTILINE style.
Posted on 2003-06-27 04:25:14 by AceEmbler
So thats why i got lucky and did it.

So latter down the line I think i did something with rgb to draw the text on the button instead of on the dialog.

That may work so that you can change font style.

Than I got fancy and made curbee type text with Text Art program that came with WordPerfect than made a bitmap out of it. Thats why i like ASM. I can use the fat that C++ or Delphi give me and use it for other stuff because ASM programs are so much smaller.
Posted on 2003-06-27 06:48:03 by cmax