Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 00:31

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Button Transparent machen

Discussion on Button Transparent machen within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2010
Posts: 30
Received Thanks: 2
Button Transparent machen

Hallo liebe Community

Ich möchte meinen Button den ich mit Koda erstellt habe 50% transparent machen

Wie geht das ??
Attached Images
File Type: jpg Multistarter.JPG (46.9 KB, 8 views)
xavartar is offline  
Old 05/23/2012, 13:13   #2


 
Lawliet's Avatar
 
elite*gold: 2
Join Date: Jul 2009
Posts: 14,456
Received Thanks: 4,685
GUICtrlSetBkColor ( controlID, $GUI_BKCOLOR_TRANSPARENT)
So ist es ganz Transparent. 50% geht nicht ohne weiteres.
Einfach direkt auf deine GUI dann einen halbtransparenten Button als Bild setzen.
Lawliet is offline  
Old 05/23/2012, 13:22   #3
 
elite*gold: 0
Join Date: Jul 2010
Posts: 30
Received Thanks: 2
ok danke wo kann ich die ControlID auslesen ???
xavartar is offline  
Old 05/23/2012, 13:48   #4
 
elite*gold: 0
Join Date: Mar 2011
Posts: 8,645
Received Thanks: 3,454
Einfach GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) unter den GUICtrlCreateButton
Freddy​ is offline  
Old 05/23/2012, 14:14   #5
 
elite*gold: 0
Join Date: Jul 2010
Posts: 30
Received Thanks: 2
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Multistarter für Julian by Jan", 518, 404, 192, 124)
$Pic1 = GUICtrlCreatePic("C:\Users\Jan\Pictures\pikachu1.j pg", 0, 0, 513, 401)
$Button1 = GUICtrlCreateButton("Battlefield 3", 24, 16, 161, 33)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
$Button2 = GUICtrlCreateButton("TwoWorlds", 24, 56, 161, 33)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
$Button3 = GUICtrlCreateButton("Origin", 24, 96, 161, 33)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
$Button4 = GUICtrlCreateButton("League of Legends", 24, 136, 161, 33)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
$Button5 = GUICtrlCreateButton("Minecraft", 24, 176, 161, 33)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
$Button6 = GUICtrlCreateButton("Google Chrome", 24, 216, 161, 33)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
$Button7 = GUICtrlCreateButton("Sacred 2", 24, 256, 161, 33)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
$Button8 = GUICtrlCreateButton("Amnesia", 24, 296, 161, 33)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
$Button9 = GUICtrlCreateButton("Terraria", 24, 336, 161, 33)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
$Button10 = GUICtrlCreateButton("TS3", 192, 16, 161, 33)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
$Button11 = GUICtrlCreateButton("ICQ", 192, 56, 163, 33)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
$Button12 = GUICtrlCreateButton("Youtube Converter (MP3)", 192, 96, 161, 33)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit

EndSwitch
WEnd

so ungefähr ?
xavartar is offline  
Old 05/23/2012, 14:20   #6
 
elite*gold: 0
Join Date: Mar 2011
Posts: 8,645
Received Thanks: 3,454
Ah du musst GUICtrlSetColor(-1, $GUI_BKCOLOR_TRANSPARENT) benutzen und nicht GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
Freddy​ is offline  
Old 05/23/2012, 14:42   #7
 
elite*gold: 0
Join Date: Jul 2010
Posts: 30
Received Thanks: 2
warum werden die mir dann nicht Transparent angezeigt ??
xavartar is offline  
Old 05/23/2012, 14:51   #8
 
elite*gold: 0
Join Date: Mar 2011
Posts: 8,645
Received Thanks: 3,454
Bei mir werden die das
Freddy​ is offline  
Old 05/23/2012, 15:32   #9


 
Lawliet's Avatar
 
elite*gold: 2
Join Date: Jul 2009
Posts: 14,456
Received Thanks: 4,685
Kommt ein Error?
Lawliet is offline  
Old 05/23/2012, 15:45   #10
 
elite*gold: 0
Join Date: Mar 2011
Posts: 8,645
Received Thanks: 3,454
Also so geht das bei mir:
PHP Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Multistarter für Julian by Jan"518404192124)
$Pic1 GUICtrlCreatePic("C:\Users\Jan\Pictures\pikachu1.j pg"00513401)
$Button1 GUICtrlCreateButton("Battlefield 3"241616133)
GUICtrlSetColor(-1$GUI_BKCOLOR_TRANSPARENT)
$Button2 GUICtrlCreateButton("TwoWorlds"245616133)
GUICtrlSetColor(-1$GUI_BKCOLOR_TRANSPARENT)
$Button3 GUICtrlCreateButton("Origin"249616133)
GUICtrlSetColor(-1$GUI_BKCOLOR_TRANSPARENT)
$Button4 GUICtrlCreateButton("League of Legends"2413616133)
GUICtrlSetColor(-1$GUI_BKCOLOR_TRANSPARENT)
$Button5 GUICtrlCreateButton("Minecraft"2417616133)
GUICtrlSetColor(-1$GUI_BKCOLOR_TRANSPARENT)
$Button6 GUICtrlCreateButton("Google Chrome"2421616133)
GUICtrlSetColor(-1$GUI_BKCOLOR_TRANSPARENT)
$Button7 GUICtrlCreateButton("Sacred 2"2425616133)
GUICtrlSetColor(-1$GUI_BKCOLOR_TRANSPARENT)
$Button8 GUICtrlCreateButton("Amnesia"2429616133)
GUICtrlSetColor(-1$GUI_BKCOLOR_TRANSPARENT)
$Button9 GUICtrlCreateButton("Terraria"2433616133)
GUICtrlSetColor(-1$GUI_BKCOLOR_TRANSPARENT)
$Button10 GUICtrlCreateButton("TS3"1921616133)
GUICtrlSetColor(-1$GUI_BKCOLOR_TRANSPARENT)
$Button11 GUICtrlCreateButton("ICQ"1925616333)
GUICtrlSetColor(-1$GUI_BKCOLOR_TRANSPARENT)
$Button12 GUICtrlCreateButton("Youtube Converter (MP3)"1929616133)
GUICtrlSetColor(-1$GUI_BKCOLOR_TRANSPARENT)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
   $nMsg 
GUIGetMsg()
   Switch 
$nMsg
      
Case $GUI_EVENT_CLOSE
         
Exit
   EndSwitch
WEnd 
Freddy​ is offline  
Old 05/24/2012, 11:50   #11
 
elite*gold: 0
Join Date: Jul 2010
Posts: 30
Received Thanks: 2
also werde die gar ned durchsichtig ??? sry das ich so ne antwort schreibe doch in bin erst noch ein anfänger sry

also das wenn ich das hintergrund habe das es mit dem hintergrund so ungefähr bündig ist....

weil ich unter transparent es so verstehe das es durchsichtig wird .... oder so ..
xavartar is offline  
Old 05/25/2012, 13:59   #12

 
Njahs's Avatar
 
elite*gold: 574
Join Date: Nov 2010
Posts: 2,498
Received Thanks: 726
Quote:
Originally Posted by xavartar View Post
weil ich unter transparent es so verstehe das es durchsichtig wird .... oder so ..
Code:
GuiCtrlSetState($Control,$GUI_HIDE)
Njahs is offline  
Old 05/25/2012, 15:18   #13
 
elite*gold: 0
Join Date: Jul 2010
Posts: 30
Received Thanks: 2
ok ich glaube ich muss das transparente lassen da ich den text dann nicht mehr da stehen habe oder ich mach es mit einer Checkbox wenn ich das hinbekomme...
weil wenn ich jetzt

GuiCtrlSetState($Control,$GUI_HIDE)

verwende is der ganze button weg + Text da glaub ich wäre eine checkbox besser (schätz ich ma)
xavartar is offline  
Reply


Similar Threads Similar Threads
Photoshop - Hintergrund transparent machen
10/10/2011 - Technical Support - 2 Replies
Hey. Habe eine wichtige Frage im Bezug auf Photoshop. Ich habe nämlich einen Text mit Effekt geschrieben, jedoch möchte ich den weißen Hintergrund später beim Einfügen hier auf ePvP transparent haben. :) Kennt sich da jemand aus? Danke im Voraus!
[Frage] GM Zeichen Transparent machen
05/13/2011 - Metin2 Private Server - 11 Replies
Hey Leute und zwar möchte ich ein GM zeichen transparent machen wenn ich es transparent abspeicher zeigt er mir weißen hintergrund ingame an. Ich weiss das es irgendeinen RGB Farbcode gibt und das ist die farbe die transparent angezeigt wird. Weiß aber nicht welcher Könnt ihr mir helfen? LG Pimmok
Tooltip Transparent machen
02/20/2011 - AutoIt - 7 Replies
kann man der/die/das Tooltip irgendwie Transparent machen OHNE das der Text mit Verschwindet? :o Tooltip("Text",0,0) WinSetTrans("", "", 100) sleep(5000) Der Text verschwindet leider mit dem Hintergrund...
Transparent machen
12/13/2010 - General Art - 1 Replies
--- HAT SICH ERLEDIGT DANKE
Form unsichtbar machen (Transparent)
11/10/2010 - AutoIt - 9 Replies
Hi, Wie schaffe ich es das ich in Koda in meine Form ein bild mache und später nur das Bild ansich gezeigt wird zwr mit allen checkboxen drauf und so aber nicht das Fenster an sich?



All times are GMT +1. The time now is 00:32.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.