Flat edit control
Download the source
This took about 20 minutes to create. I saw Kirk Stowell's CFlatComboBox class and decided it needed a similar Edit control I actually made the code look similar to Kirks to keep things simple if you need to edit the code in both classes for your purpose
Pretty neat looking edit control actually, i wonder why i never saw this sooner
Information
To Use this class :
Create a new class member of type CFlatEdit for an edit control in your dialog Make sure to have #include "FlatEdit.h" at the top of that dialogs .h file Thats It!
NOTE: For best appearance, under the properties for your edit control, deselect 'border' and select 'static edge'
For the CFlatEdit class to appear in the new member variable dialog for an edit control, you must rebuild the class information You can do this by deleting the .clw file in your project directory. When you go into class wizard, it will ask you to rebuild your class info from files.
Select all the c, cpp, and h files in that directory and add them all
You can change the m_bDrawGripper and m_bDrawSeperator values to true to use the seperator and gripper features. You can also set the left edit margin using SetIndent(int)
And one more kewl feature: use m_bFlatStyle to change the style. If its true (default), it will draw the control as a typical flat control. If its false, it will be drawn with a thick black border (Like that around a flat Checkbox)
Last updated: 17 October 1998

Comments
very good but not surport multiline
Posted by Legacy on 05/13/2002 12:00amOriginally posted by: Brick Luo
:(
ReplyExEditors Library
Posted by Legacy on 03/19/2002 12:00amOriginally posted by: Mike Philips
ReplyYour forgot about HScroll and VScroll
Posted by Legacy on 12/12/2001 12:00amOriginally posted by: reversed
On a multiline edit box, the frame of the edit box is created on top of vscroll and/or hscroll.
ReplyI'm working in solution, i'll post when found.
Problem with editview
Posted by Legacy on 01/23/2001 12:00amOriginally posted by: Rajasekhar
Hello Everybody,
I am using eVC 3.0 to develop applications for pocketPC.
I developed one SDI application using DVArchitecture.My main View is CView.It's working fine.Later i included one dialog and using ClassWizard i created a class with CEditView as the base calss. Using CSingleDocTemplate i am including this view as another template.The view is getting displayed perfectly for typing in the edit control,saving. But when i used Open option, after selecting a file, main view is coming up and the edit view is going back.I am not implementing the open and saving dialog boxes.
What might be the reason?How to keep the editview as the top window until i close it?
How to retrieve text from a CEditView in to a string?
Thanking you.
Regards...
Rajasekhar
ReplyHow Can I Have Edit Box With Transparent Layout!
Posted by Legacy on 01/04/2000 12:00amOriginally posted by: Sharifi
Please Help Me.
ReplyHow Can I Have Edit Box With Transparent Layout!
Drawing problem when using with SpinButtonCtrl
Posted by Legacy on 08/02/1999 12:00amOriginally posted by: Subbi Iyer
Very nice control.
But I found a broblem ,when using the FlatEdit control with the SpinButtonCtrl where SpinButtonControl's Buddy Property is set to FlatEdit control. ie, It causes the SpinButton Control to half visible. This is happening even with out Gripper and Separator.
ReplyLetters overwrite the edit control's edges
Posted by Legacy on 05/24/1999 12:00amOriginally posted by: Hector Lasso
ReplyText Fields are the Problem
Posted by Legacy on 04/20/1999 12:00amOriginally posted by: Steve Miller
SQL Text fields (LONGVARCHAR) can be greater than 255. This is where we have encounted the data truncation problem. We created a RFX variation that passes SHRT_MAX (32767) as the maximum. Of course, now users want to enter more than this. Is there a more dynamic way of doing this? I can always bump up my maximum to a larger number, but the memory is locked and what happens when the user exceeds that threshold?
Thanks,
ReplySteve
Change 'com' to 'gov' to email...
Removed flickering not tested extensively though
Posted by Legacy on 10/26/1998 12:00amOriginally posted by: Vytukas
Replycool grippers
Posted by Legacy on 10/22/1998 12:00amOriginally posted by: Jason
This is a cool control. the grippers match my flat toolbar
quit nicely. and even better, you saved me 20 minutes. ;)
Jason.
Reply
Loading, Please Wait ...