1. Single line RichEdit
- Posted by Isaac Raway <isaac-topica at blueapples.org> Mar 04, 2004
- 633 views
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
2. Re: Single line RichEdit
- Posted by Isaac Raway <isaac-topica at blueapples.org> Mar 04, 2004
- 625 views
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! > >
3. Re: Single line RichEdit
- Posted by Derek Parnell <ddparnell at bigpond.com> Mar 04, 2004
- 618 views
> -----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
4. Re: Single line RichEdit
- Posted by Isaac Raway <isaac-topica at blueapples.org> Mar 04, 2004
- 602 views
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. >