As far as I know if I change the form's opacity, every control on the
form also inherits that opacity. But in many real applications (not
application programs), we see opaque text (100% opacity) on a
traslucent background, for example text messages on TV. Or look at the
title bar text of Aero. Background is translucent but the text is
opaque.
Is it possible to use 100% opaque text on a traslucent form? 3 5013
On Mon, 21 Jul 2008 17:38:10 -0700, Sin Jeong-hun <ty*******@gmai l.com>
wrote:
As far as I know if I change the form's opacity, every control on the
form also inherits that opacity. But in many real applications (not
application programs), we see opaque text (100% opacity) on a
traslucent background, for example text messages on TV. Or look at the
title bar text of Aero. Background is translucent but the text is
opaque.
Is it possible to use 100% opaque text on a traslucent form?
Are you using Forms? WPF?
And, have you tried setting the text opacity explicitly? What happens
when you do?
On Jul 22, 9:41*am, "Peter Duniho" <NpOeStPe...@nn owslpianmk.com>
wrote:
On Mon, 21 Jul 2008 17:38:10 -0700, Sin Jeong-hun <typing...@gmai l.com*
wrote:
As far as I know if I change the form's opacity, every control on the
form also inherits that opacity. But in many real applications (not
application programs), we see opaque text (100% opacity) on a
traslucent background, for example text messages on TV. Or look at the
title bar text of Aero. Background is translucent but the text is
opaque.
Is it possible to use 100% opaque text on a traslucent form?
Are you using Forms? *WPF?
And, have you tried setting the text opacity explicitly? *What happens *
when you do?
C# 2.0 forms. As far as I know Windows controls don't have opacity
property but only form does. If I set a form's opacity to 50%, then
the label text's opacity also becomes 50%. I tried to get the form's
DC, and draw text using GDI operations with a color whose A value is
255, but that also didn't work. That A value seemed to be proportional
to the opacity of the form.
Thanks.
On Mon, 21 Jul 2008 17:52:04 -0700, Sin Jeong-hun <ty*******@gmai l.com>
wrote:
C# 2.0 forms. As far as I know Windows controls don't have opacity
property but only form does. If I set a form's opacity to 50%, then
the label text's opacity also becomes 50%.
Right, as documented in the Form.Opacity property doc page.
I don't know anything off the top of my head that would allow you to
override that. It seems to me that the property is by design always going
to affect the entire contents of the form.
With a lot of work, you could probably reimplement the opacity stuff, but
giving yourself finer control over the opacity of the contents.
It's possible I'm just missing something...may be someone else will have
some better ideas.
Pete This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Lloyd Dupont |
last post by:
In my C# & MC++ app there is some drawing done through GDI (not +, but
win32).
I would like to be able to create a translucent HBRUSH.
the RGB macro create only solid color...
and, anyway, CreateSolidBrush ignore the higher byte.
Any idea?
I though I might do some trick with CreateDIBPatternBrush but I'm not sure
|
by: UJ |
last post by:
I have a WinForm program that has stuff on the form. I want to add something
to it that will have an image over a portion of the window that is
translucent. How can I do this?
Also - I need to have a popup window that is transparent. Is there any way
to do this?
TIA - Jeff.
|
by: yogi |
last post by:
Hi All,
I am into a .net compact framework project wherein i need to build the
translucent panels using c#. I tried building the same and came out
with the solution (using unmanaged code) but i need to extend the panel
class so that all of the functionality of the base class are available
to the user as well.In my current solution i snapshot the rectangular
region from the underlying control (can be picturebox,form etc)
prepares the...
|
by: shachar8 |
last post by:
hi all.
**please excuse my english
i'm looking for a way to make my form translucent, so i wolud set it's background image and the form will not look as a common winform(rectangle) but it will look like the background image, (like a skin...)
maby there is a free control that does the job..
thanks- shachar.
|
by: Ajith Menon |
last post by:
I have created a windows application in which the form needs to be
resized on the MouseMove event. The windows resize function takes a lot
of CPU cycles. And as the resize function is called on the MouseMove,
the form is resized around a 30-100 times in one second. This leads to
a high CPU utilization and all other application comes to a stand
still.
The form does not have any controls i.e. buttons, text boxes etc. It is
completely...
| |
by: tristanlbailey |
last post by:
I have been attempting to solve this problem for a few weeks now, but I'm not having much luck...
I would like to create a seamless fading effect on each form/window in my program; one that, when an image is clicked with a mouse and held, the window fades away by approximately 50% transparency, and when the mouse button is released, fades back to opaque.
I have been able to do this to an extent, with the SetLayeredWindowAttributes...
|
by: scubak1w1 |
last post by:
Hello,
I posted this in the HTML forum, but it was suggested I post it over here as well by a moderator.
I have a form that will not 'fire' in non-IE browsers?? I have poked and poked at the code and can not find why.
The AJAX changes the query button in non-IE browsers, at least in the sense it is not opaque anymore, the 'title' check changes, etc - it just doesn't "fire" when you click the icon/image in Mozilla, etc but DOES in Internet...
|
by: Prisoner at War |
last post by:
On Apr 26, 5:19 pm, Ben C <spams...@spam.eggswrote:
Super!! It will take me a while to digest your idea, though...and in
the meantime, may I ask: how about utilizing any CSS 2.x methods?
And, first of all, really -- is your script or pseudo-code there
JavaScript or CSS or both?? Sorry, I'm really not sure where one
stops and the other begins...they're so hand-in-hand, after all!
Thanks again!!
|
by: Nate Eldredge |
last post by:
Consider the following pseudo-code:
#include <opaque.h>
struct foo {
int a;
opaque_t op;
int b;
};
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| | |