Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / November 2006

Tip: Looking for answers? Try searching our database.

[WindowsForms] Horizontal Line

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pocketom - 19 Nov 2006 17:39 GMT
Does anybody know how i can put a horizontal line into my forms? i need one
to create a simple "below the line" to seperate my sumup textbox from the
other input-textboxes (like you know it from common calculations). I tried to
add a label with underlines ________, but doesn't look very pretty.

Anybody an idea?

by the way, i'm using VC++ 2005 Express Edition...
Jean - 21 Nov 2006 03:28 GMT
Here is my suggestion.

Use Window's CharacterMap with the same font as your dialog use.
You could look in your resource file for that purpose.

"MS Dialog" is a good candidate for a unicode dialog.
The character 0xAF looks OK (reverse undersore).
Other characters may be good as well.
Like Arial unicode 0x2550 (Double lines) or 0x2014 (line centered).

TCHAR szLine[BUF_SIZE];

for(int i=0; i < BUF_SIZE; i++)
   szLine[i] = 0xAF;

szLine[BUF_SIZE-1] = 0;

That's it !

> Does anybody know how i can put a horizontal line into my forms? i need one
> to create a simple "below the line" to seperate my sumup textbox from the
[quoted text clipped - 4 lines]
>
> by the way, i'm using VC++ 2005 Express Edition...

____
Jean

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.