1. Single line RichEdit

Heya all,

Is there a way to make a RichEdit single line only? Basically, I want to 
turn off the windows flag "want return" and get rid of that stupid tiny 
little scroll bar (I've always thought that Windows should hid a scroll 
bar unless it needs it, but they've just never fixed that.)

Any thoughts?

~Isaac

new topic     » topic index » view message » categorize

2. Re: Single line RichEdit

Well, I don't know. WS_CLIPPINGCHILD wasn't defined so I changed it to 
WS_CLIPCHILDREN and it gave me this:

Error code 461
Failed to acquire a hWnd when creating a control.

Win32Lib v0.59.1 08-June-2003

Press Enter...

Derek Parnell wrote:

>
>
>Isaac Raway wrote:
>  
>
>>Heya all,
>>
>>Is there a way to make a RichEdit single line only? Basically, I want to 
>>
>>turn off the windows flag "want return" and get rid of that stupid tiny 
>>little scroll bar (I've always thought that Windows should hid a scroll 
>>bar unless it needs it, but they've just never fixed that.)
>>
>>Any thoughts?
>>
>>~Isaac
>>
>>
>Is this okay ...
>
>----------------
>without warning
>include win32lib.ew
>integer MainWin
>integer RE
>
>MainWin = create(Window, "Single Line RichEdit", 0, 100, 100, 300, 300, 
>0)
>RE = create(RichEdit, "This is a single line richedit control.", 
>MainWin, 5, 5, 250, 40, 
>                    { WS_CLIPPINGCHILD,
>	    	          WS_VISIBLE,
>	    	          WS_HSCROLL,
>	    	          ES_AUTOHSCROLL,
>	    	          WS_TABSTOP,
>	    	          ES_SAVESEL,
>	    	          WS_BORDER }
>                    )
>
>WinMain({MainWin,RE}, Normal)
>---------------
>Derek
>
>
>
>TOPICA - Start your own email discussion group. FREE!
>
>

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

3. Re: Single line RichEdit

> -----Original Message-----
> From: Isaac Raway [mailto:isaac-topica at blueapples.org]
> Subject: Re: Single line RichEdit
>
>
> it gave me this:
>
> Error code 461
> Failed to acquire a hWnd when creating a control.
>
> Win32Lib v0.59.1 08-June-2003
>

Okay, that must be new to the the next release. It is just a combination 
of ...

    constant  WS_CLIPPINGCHILD = WS_CHILD + WS_CLIPSIBLINGS

The reason you got a failure with just WS_CLIPCHILDREN is that you need to 
specify WS_CHILD if your control has a parent.

-- 
Derek


-- 

cheers,
Derek Parnell

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

4. Re: Single line RichEdit

Gotcha. Yes, this is perfect. Thank you.

Derek Parnell wrote:

>
>> -----Original Message-----
>> From: Isaac Raway [mailto:isaac-topica at blueapples.org]
>> Sent: Thursday, 4 March 2004 3:27 PM
>> To: EUforum at topica.com
>> Subject: Re: Single line RichEdit
>>
>>
>> it gave me this:
>>
>> Error code 461
>> Failed to acquire a hWnd when creating a control.
>>
>> Win32Lib v0.59.1 08-June-2003
>>
>
> Okay, that must be new to the the next release. It is just a 
> combination of ...
>
>    constant  WS_CLIPPINGCHILD = WS_CHILD + WS_CLIPSIBLINGS
>
> The reason you got a failure with just WS_CLIPCHILDREN is that you 
> need to specify WS_CHILD if your control has a parent.
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu