473,770 Members | 1,778 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Transparent Buttons

DS
Anyone know of any downsides of using Transparent Buttons with Labels
behind them?
Thanks
DS
Nov 13 '05 #1
4 4705
MA

"DS" <bo******@opton line.net> ha scritto nel messaggio
news:Ec******** *************@n ews4.srv.hcvlny .cv.net...
Anyone know of any downsides of using Transparent Buttons with Labels
behind them?
Thanks
DS


What do you want to obtain?
Don't tell how but what you want
Massimiliano
Nov 13 '05 #2
DS
MA wrote:
"DS" <bo******@opton line.net> ha scritto nel messaggio
news:Ec******** *************@n ews4.srv.hcvlny .cv.net...
Anyone know of any downsides of using Transparent Buttons with Labels
behind them?
Thanks
DS

What do you want to obtain?
Don't tell how but what you want
Massimiliano

I don't like the grey buttons so I'm making the labels underneath to
match the program and being that sometimes the ON Click property doesn't
always work, I put transparent buttons over the labels.
DS
Nov 13 '05 #3
An alternative approach is here:
http://www.lebans.com/cmdbutton.htm
CommandButton.z ip is a database containing functions to allow a user
defined BackColor and Rotated Text for Command Buttons.

NEW - Jan. 26/2000 This version includes 2 functions. One for Form
Design view and one for Form View at Runtime.

1) Use API Color Dialog to select BackColor.

2) User Selectable degrees of rotation for Text in controls Caption.

3) Use in Form Design or Form View at Runtime.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"DS" <bo******@opton line.net> wrote in message
news:XX******** *************@n ews4.srv.hcvlny .cv.net...
MA wrote:
"DS" <bo******@opton line.net> ha scritto nel messaggio
news:Ec******** *************@n ews4.srv.hcvlny .cv.net...
Anyone know of any downsides of using Transparent Buttons with Labelsbehind them?
Thanks
DS

What do you want to obtain?
Don't tell how but what you want
Massimiliano

I don't like the grey buttons so I'm making the labels underneath to
match the program and being that sometimes the ON Click property

doesn't always work, I put transparent buttons over the labels.
DS


Nov 13 '05 #4
DS wrote:
Anyone know of any downsides of using Transparent Buttons with Labels
behind them?
Thanks
DS


One downside is that you cannot see them in design view, to combat this
I leave them opaque then set them to transparent in the Open event of
the form, use some identifier in the tag property to tell the Open event
which buttons to turn transparent.

Of course one cosmetic downside is that you don't see the buttons
depress when you click them, this is OK if you don't have any other
opaque buttons in your application as the effect will be consistent.

Another thing to consider is the fact that a label doesn't look like a
button and therefore won't look like something to click on to perform an
action. However, if you set the HyperLinkSubAdd ress property of the
button to " " or "#" then the mouse cursor turns to a pointing hand when
you hover over it. A side effect of this is that a tooltip appears, to
get around that sinply set the ControlTip property of the button so that
the tooltip displays something meaningful to the user. Another side
effect is that the web toolbar appears the first time you click a button
so this should be turned off as ASAP. In my apps I have a logon screen
for SQL Server, the OK button on that turns off the web toolbar.
Nov 13 '05 #5

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

Similar topics

3
496
by: Martin Reikenkamp | last post by:
I'd like to use a transparent icon in a ms access form. The icon looks good (transparency) when I use the Windows XP-style. But when I switch the preferences of the Windows & Buttons-settings to Windows - classic I see a light gray background behind the icon. What do I have to do when I would like to use the icon in both environments?
1
5884
by: A Ratcliffe | last post by:
Should be simple, but... Wanted to put some nice bitmaps on my First/Previous/Next/Last buttons, so I created four 16-colour bitmaps (as a test), used the traditional magenta colour for the transparent, and added an ImageList to the Form. I added the images to the ImageList, set the Transparent colour to Magenta, used the ImageList for the button images, and..... I still see the magenta on the buttons when I run the form...
1
3010
by: Carsten Klotz | last post by:
Hi, I've set the TransparencyKey of a form to black. That means, all black pixel will be shown transparent within the drawing content of that form. If I set the background to black, I can see the underlying window (ie. Desktop or IE). But when I want to draw with the mouse inside that transparent area, my form/window lost its focus (TopMost=true). Even when I'm just moving the mouse, I can see, that I'm "touching" the underlying content...
0
2628
by: eruess | last post by:
Here's the scenario: I've got a whole bunch (for the sake of argument, let's say thousands) of different little 32x14 .png files that act as buttons all over a very large website. Each button image has 4 transparent pixels; the upper left, upper right, lower left & lower right. This is to help give the otherwise square button graphic a slightly rounded look to it.
1
1749
by: FredC | last post by:
I'm using Visual Studio 2003. I have a form with the following controls on it: - a datagrid - several buttons On the forms property page, I have set the Background to an image. The problem: I observe that the form displays with the datagrid and the buttons transparent down to the desktop for a significant amount of time. On event frmMain_load, it takes a bit of code ( read time) to build up the info for the datagrid. I believe it is...
2
5523
by: =?Utf-8?B?SGFucyAtIERpYUdyYXBoSVQgLQ==?= | last post by:
Hi! I have a windowsform with an imagebox inside a groupbox. The imagebox shows a image of a man with joints (for medical purose - shoulder, ancle, wrist etc.). The user is able to mark the jonts by clicking on the spesific joint. I solved this by using checkbox (with button-appearance) upon each joint. I know wish to further develop my windows-application. How can I make my button-appearance checkboxs to be transparent? I wish to...
8
10176
by: Brian Ward | last post by:
I am looking for a simple way to set the image transparency in a PictureBox. I have a moving PictureBox containing a graphic image .. moving by incrementing its Left property. The background however shows white as the PictureBox moves but I want it to be transparent. The PictureBox BackColor is set to Transparent .. but no affect. I have used PhotoShop to make the image background transparent .. again no affect. If I make the image a...
2
1624
Ali Rizwan
by: Ali Rizwan | last post by:
Hi all, I want to know how I can make form transparent but not the controls on it. If there are buttons then only form will be transparent but not the buttons they should be opaque or non-transparent. Thanks.
1
1974
by: wegomadave | last post by:
Running a very large HMI program for a machine. Opens and closes many forms. For no good reason one of my command buttons become transparent. Just seems to happen. Once it does it stays that way till the program is restarted. The button still works but shows last loaded form even though the form has be unloaded. Tried to set the cmdbutton.visible to false and then in the form load code set it to true but this still does not stop it from...
0
9617
marktang
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...
0
10257
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8931
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, 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...
1
7456
isladogs
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...
0
6710
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();...
0
5354
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...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.