Re: WS_BORDER
Bob,
Sure, just put it in the last parameter instead of the "0":
constant aLabel = create(CText,"",MainWin, 10,10,120,20,WS_BORDER)
Here's an example:
--<tested code follows:>
-- demonstrates Centered-text boxes, normal without border, & with border:
include Win32Lib.ew
without warning
constant MainWin = create(Window,"a test",0,0,0,400,400,0),
Label1 = create(CText,"normal centered text",MainWin, 10,10,300,20,0),
Label2 = create(CText,"with border",MainWin, 10,50,200,20,WS_BORDER)
WinMain( MainWin, Normal )
--<code ends>
Dan
----- Original Message -----
From: "bobspringett" <bobspringett at WANADOO.FR>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Sunday, August 20, 2000 11:14 AM
Subject: WS_BORDER
> Can I change one of the attributes in a CText control to give a WS_BORDER
in W32lib. I'm sure it can be done in the API but not sure
> how in Win32lib?
> Regards
> Bob
|
Not Categorized, Please Help
|
|