473,405 Members | 2,210 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Overline in label

is there a simple way to add an overline on the text in a
label/checkbox/radiobutton? Any special chars that can do this similar to
how & works with menus?

Thanks,
Jon
Sep 20 '07 #1
3 2262
Jon,

None that I am aware of, unfortunately. You are going to have to draw
this yourself.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Jon Slaughter" <Jo***********@Hotmail.comwrote in message
news:ik*****************@newssvr22.news.prodigy.ne t...
is there a simple way to add an overline on the text in a
label/checkbox/radiobutton? Any special chars that can do this similar to
how & works with menus?

Thanks,
Jon

Sep 20 '07 #2

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote in
message news:O7***************@TK2MSFTNGP06.phx.gbl...
Jon,

None that I am aware of, unfortunately. You are going to have to draw
this yourself.

Is there any way to do this efficiently? I can easily add a paint handler
and draw a line over the whole control but with a radio or check it draws it
over the button part too. Either I need to get the position of the text in
the control or determine the button part's width.

Thanks,
Jon
Sep 21 '07 #3
Jon,

That's the thing, there is no easy way to do this with Windows controls.
The logic of the components and the parts is all self contained. This is
very different from Windows Presentation Foundation, where you can actually
see the different components of composite controls, usually (the radio
button would have a text element, for example).

For windows controls, you are going to have to redraw the whole control
yourself.

The unmanaged thremes API (this is a link to the starting point):

http://msdn2.microsoft.com/en-us/library/ms649785.aspx

Might help you a little bit, in that you can tell it to draw certain
parts of the control in certain states (and it does separate some of the
parts out for windows controls) but it's still going to entail a great deal
of work.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Jon Slaughter" <Jo***********@Hotmail.comwrote in message
news:Pm*******************@newssvr12.news.prodigy. net...
>
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote
in message news:O7***************@TK2MSFTNGP06.phx.gbl...
>Jon,

None that I am aware of, unfortunately. You are going to have to draw
this yourself.


Is there any way to do this efficiently? I can easily add a paint handler
and draw a line over the whole control but with a radio or check it draws
it over the button part too. Either I need to get the position of the
text in the control or determine the button part's width.

Thanks,
Jon

Sep 21 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Xerxes | last post by:
Hi, can you tell me how I can make a <label> hidden? I have hidden the field after the label: var M_Hide = isNS4?'hide':'hidden'; var M_Show = isNS4?'show':'visible'; ..... <label...
3
by: TR | last post by:
Is it possible with CSS to prevent this wrapping alignment with a checkbox with a nested label? This is the label of the checkbox that wraps beneath it I'd prefer it looked like...
4
by: Stuart Norris | last post by:
Dear Readers, I am attempting to draw box around some text using unicode on multiline label. The label is forty characters wide and 12 lines deep. I have been trying to draw a box around text...
31
by: jcrouse | last post by:
Is there a quick and easy way to change the color of a label controls border from the default black to white? Thank you, John
8
by: Arpan | last post by:
Consider the following code snippet (my main intention is to display the current time in a Label control as & when this ASPX page is accessed/refreshed): <script runat="server"> Class Clock...
1
by: Manoj Mittal | last post by:
I have created the Dynamic control in asp.net c# like for (int i = 1; i <= 5; i++) { Label label = new Label(); label.ID = "Label" + i; label.Text = "Label"+i; form1.Controls.Add(label); }
0
by: Kevin McKinley | last post by:
Below i've put the code for a program that i wrote. I need help on lines 384-403. If you run this program you will notice on the first tab when have it produce an answer the $ is surrounded with...
0
by: Guilherme Polo | last post by:
On Wed, Sep 3, 2008 at 8:57 PM, Kevin McKinley <kem1723@yahoo.comwrote: Come on.. "help on lines 384-403", that is not a good way to look for help. You are supposed to post some minimal code that...
9
by: =?Utf-8?B?RnJhbmsgVXJheQ==?= | last post by:
Hi all I have a MDI Container Form, with one label control on the Background of this container form. When I now open a child form, this form is behind the label ... and this looks ugly ... :-))...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.