1. WS_BORDER
- Posted by bobspringett <bobspringett at WANADOO.FR>
Aug 20, 2000
-
Last edited Aug 21, 2000
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
2. Re: WS_BORDER
- Posted by Dan B Moyer <DANMOYER at PRODIGY.NET>
Aug 20, 2000
-
Last edited Aug 21, 2000
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
3. Re: WS_BORDER
Thanks Dan
Regards
Bob
I thought that was a place for hinstance.
----- Original Message -----
From: Dan B Moyer <DANMOYER at PRODIGY.NET>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Monday, August 21, 2000 7:19 AM
Subject: 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