1. 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

new topic     » topic index » view message » categorize

2. 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

new topic     » goto parent     » topic index » view message » categorize

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu