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! > >