Is there a common way to embed a graphic or icon into a label? I want
to have something like "Press <<IMGBTN1>To Continue" or "Press
<<IMGBTN2>For Help".
Normally I'd just create a graphic for the whole string, but this will
be translated in multiple languages and I want to keep the images
generic and only translate text. 11 2177
"raiderdav" <ra*******@gmail.comwrote:
Is there a common way to embed a graphic or icon into a label?
Normally I'd just create a graphic for the whole string, but this will
be translated in multiple languages and I want to keep the images
generic and only translate text.
You definitely can't do it with a simple label. You could do it with
custom drawing in a Paint event, but you'd have to consider things like
word wrap.
You could also ensure the image falls outside the label, e.g. "To
continue, click: <separate image here>". I suppose every language has a
way of stating this sentence so that the image comes last, but you never
know.
The general recommendation is to keep images totally separate from text
for localisation purposes.
Eq.
On May 12, 10:56*am, raiderdav <raider...@gmail.comwrote:
Is there a common way to embed a graphic or icon into a label? *I want
to have something like "Press <<IMGBTN1>To Continue" or "Press
<<IMGBTN2>For Help".
Normally I'd just create a graphic for the whole string, but this will
be translated in multiple languages and I want to keep the images
generic and only translate text.
Hi,
There is no such a control in the framework, imagine, what if instead
of one you want two images?, or how to indicate the position of the
images?
But it's not difficult to implement, you could create a control that
is compose of two labels and one PictureBox
There is no such a control in the framework, imagine, what if instead
of one you want two images?, or how to indicate the position of the
images?
But it's not difficult to implement, you could create a control that
is compose of two labels and one PictureBox
Thank you both for the comments. It looks like I'll need to create a
Label-Image-Label control for myself.
The icons/images that I need to display are all very simple. I'm also
considering creating a custom font character for each icon, but I
suppose that will be difficult to color properly as fonts are all
single colored, and there is no way to color individual characters
within a single label (or is there?).
Thanks,
dave
Build it using CSS lame-o ;-) but I'm curious why you wouldn't just use an
ImageButton control?
"raiderdav" <ra*******@gmail.comwrote in message
news:d8**********************************@p25g2000 pri.googlegroups.com...
Is there a common way to embed a graphic or icon into a label? I want
to have something like "Press <<IMGBTN1>To Continue" or "Press
<<IMGBTN2>For Help".
Normally I'd just create a graphic for the whole string, but this will
be translated in multiple languages and I want to keep the images
generic and only translate text.
On May 12, 10:44 am, "clintonG" <nob...@nowhere.comwrote:
Build it using CSS lame-o ;-) but I'm curious why you wouldn't just use an
ImageButton control?
Haha - thanks for the tip. Actually, some HTML style tags would be
handy for this.
If I make it an image button, then when it is translated to different
languages I need to have a different image for spanish, french,
german, etc, and call the appropriate image based on the language in
use. This is for a handheld device (Compact Framework) so I need to
minimize the number of images and file sizes.
On May 12, 11:44*am, "clintonG" <nob...@nowhere.comwrote:
Build it using CSS lame-o ;-) but I'm curious why you wouldn't just use an
ImageButton control?
Hi,
Good point, OP: is this a web or a win problem?
Good point, OP: is this a web or a win problem?
It's a win problem - WinCE to be exact. Not a web app.
I see your point --but-- do you know how to use Expression Builders [1] in
ASP.NET? I use the <%= method( ) %all the time with others to dynamically
bind properties to my client-side HTML at runtime and do it all the time.
Check out these examples [2-4] Its like the Response.Write of ASP.NET and
Expression will work for you. Expression Builders will solve your problem
localizing.
I'm just getting into WPF. It supports several new ways to bind properties
to attributes and more dynamic ways to generate the context of the "page" at
runtime.
[1] http://msdn.microsoft.com/en-us/library/d5bd1tad.aspx
[2] ToolTip='<%# "RSS Channel Builder "
+ Eval("Title")
+ " Element Is Selected"%>'
runat="server" />
[3] ToolTip='<%# (Eval("Title") == "Finish Channel")
? "Finish using the RSS Channel Builder"
: "RSS Channel "
+ Eval("Title")
+ " Element" %>'
[4] Text='<%# DataBinder.Eval(Container, "DataItem.Name")%>'
"raiderdav" <ra*******@gmail.comwrote in message
news:d5**********************************@q27g2000 prf.googlegroups.com...
On May 12, 10:44 am, "clintonG" <nob...@nowhere.comwrote:
>Build it using CSS lame-o ;-) but I'm curious why you wouldn't just use an ImageButton control?
Haha - thanks for the tip. Actually, some HTML style tags would be
handy for this.
If I make it an image button, then when it is translated to different
languages I need to have a different image for spanish, french,
german, etc, and call the appropriate image based on the language in
use. This is for a handheld device (Compact Framework) so I need to
minimize the number of images and file sizes.
I have zero experience with Windows applications and replied with comments
regarding Expression Builders. Surely there must be a similar construct in
Windows Forms as we Web Forms guys can't be having all the fun can we?
"raiderdav" <ra*******@gmail.comwrote in message
news:5d**********************************@1g2000pr g.googlegroups.com...
>Good point, OP: is this a web or a win problem?
It's a win problem - WinCE to be exact. Not a web app.
On May 12, 2:17*pm, raiderdav <raider...@gmail.comwrote:
On May 12, 10:44 am, "clintonG" <nob...@nowhere.comwrote:
Build it using CSS lame-o ;-) but I'm curious why you wouldn't just use an
ImageButton control?
Haha - thanks for the tip. *Actually, some HTML style tags would be
handy for this.
If I make it an image button, then when it is translated to different
languages I need to have a different image for spanish, french,
german, etc, and call the appropriate image based on the language in
use. *This is for a handheld device (Compact Framework) so I need to
minimize the number of images and file sizes.
Hi,
In that case consider do not use an image in the first place, unless
it really is needed in your app. In any case you will need to create
it yourself. Nothing complex though, just two labels and a PictureBox
On May 12, 12:41*pm, raiderdav <raider...@gmail.comwrote:
There is no such a control in the framework, imagine, what if instead
of one you want two images?, or how to indicate the position of the
images?
But it's not difficult to implement, you could create a control that
is compose of two labels and one PictureBox
Thank you both for the comments. *It looks like I'll need to create a
Label-Image-Label control for myself.
The icons/images that I need to display are all very simple. *I'm also
considering creating a custom font character for each icon, but I
suppose that will be difficult to color properly as fonts are all
single colored, and there is no way to color individual characters
within a single label (or is there?).
Thanks,
dave
Too complex, just use a Label/PictureBox/Label and move on. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: qumpus |
last post by:
My program right now generates USPS style shipping label using
System.Drawing.Graphics. It works fine except that the printer prints really
slowly. I want to make my program take advantage of true...
|
by: Kyle Blaney |
last post by:
When labels are vertically stacked on top of one another and have
their TextAlign property set to MiddleRight, the text is not properly
right-aligned.
You can reproduce this problem by creating...
|
by: Ned |
last post by:
I'm having difficulty printing on a 4"x3" labels . I set the left margin to
0 but it always prints starting from the middle of the label on the X-axis
(no matter what the margin settings are.) I...
|
by: ooooscar |
last post by:
I'd like to make an application to print labels. I have to print an image
and text, the label size is 10cm x 5 cm. I'm wandering how to do it in c#.
My first thought is to make an acrobat "form"...
|
by: Andy Roxburgh |
last post by:
Hi,
I have an monitoring application that displays various pieces of data,
which are changing, on a tabpage within a form. The data is displayed
in various different colours and the various...
|
by: Peter Stojkovic |
last post by:
I have some windows, which have a lot of Textboxes, labels and buttons.
How can i - in a simple way- make a print out of all these textboxes (
"input" of textboxes of course ), labels and...
|
by: Dean Slindee |
last post by:
It appears that I have two routines that don't play well together! First
routine: a form's background is shaded with a gradient color. Second
routine: then, the background of all labels on the...
|
by: will_456 |
last post by:
I have a form containing many controls which receive their properties at
design time. Trouble is the form displays large transparent squares all
over it while pictures and labels are being filled....
|
by: Mike Borrowdale |
last post by:
--
Hi,
my application simulates a panel of scientific instruments. Digital
readouts are provided by label components embedded in a
TableLayoutPanel with the rows and columns set to...
|
by: Jon Harrop |
last post by:
I am writing a 3D graphing component built upon WPF and would like to have
2D vector graphics (e.g. typeset mathematics) as labels laid out from 3D
coordinates. For example, a tick on an axis has a...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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...
|
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...
|
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...
| |