Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 17:22

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

Advertisement



GUI Transparent Problem

Discussion on GUI Transparent Problem within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1

 
elite*gold: 64
Join Date: May 2011
Posts: 1,229
Received Thanks: 854
Smile GUI Transparent Problem

Ich habe eine kleines Problem.

Wie kann ich ein button auf ein bild packen?
Wenn man es einfach so drauf packt sieht er 4 eckig aus.
Sieht dan nicht mehr so schön aus.
Ich habe auch schon probiert es mit einem Bild-Button
zu machen.
Aber ich finde das blöd mit den bildern.
Ich war auch schon in google.
Aber da war auch immer nur die lösung mit einem bild.

Ich kapier das nicht so mit nem Bild.
Wie kann ich den Button auf dem Bild schön machen ?

Vielleicht weiß ja wer eine lösung bitte um .

Test-Script:
PHP Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#region ### START Koda GUI section ### Form=
$GUI GUICreate("123"357261192124)
$Pic1 GUICtrlCreatePic("Hintergrundbild.jpg"00356260$GUI_DISABLE)
$Label1 GUICtrlCreateLabel("Label1"72486628)
GUICtrlSetBkColor($Label1$GUI_BKCOLOR_TRANSPARENT)
GUICtrlSetBkColor(-1, -2)
GUICtrlSetFont(-1148000"MS Sans Serif")
$Button1 GUICtrlCreateButton("Button1"721287525)
GUISetState(@SW_SHOW)
#endregion ### END Koda GUI section ###
GUICtrlSetState($Button1$GUI_FOCUS)

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

    EndSwitch
WEnd 
Attached Images
File Type: jpg hintergrundbild.jpg (33.9 KB, 6 views)
BladeTiger12 is offline  
Old 04/25/2012, 14:56   #2

 
Njahs's Avatar
 
elite*gold: 574
Join Date: Nov 2010
Posts: 2,498
Received Thanks: 726
Geht nicht,
du musst schon GDI+ - Buttons () benutzen. (Oder das Bild anpassen ^^)
Njahs is offline  
Thanks
1 User
Old 04/25/2012, 17:08   #3
 
Achat's Avatar
 
elite*gold: 528
Join Date: Jan 2012
Posts: 2,127
Received Thanks: 2,403
Du könntest den Button auch in ein neues Fenster machen und dieses dann mit WinSetTrans transparent machen, das wäre aber bei vielen Buttons wahrscheinlich etwas aufwändig.
Achat is offline  
Thanks
1 User
Old 04/25/2012, 17:49   #4

 
elite*gold: 64
Join Date: May 2011
Posts: 1,229
Received Thanks: 854
Danke alle beide
bitte closen.
BladeTiger12 is offline  
Old 04/29/2012, 03:02   #5
 
Mr.Help's Avatar
 
elite*gold: 0
Join Date: Jun 2011
Posts: 217
Received Thanks: 17
Du holst dir ein bild das so Groß ist wie dein button gehst in paint speicherst es als BitDatei ab gehst in Koda klickst auf den knopf links bei den Daten steht eine zeile da steht Picture drin da wählst du dein Bild aus schon hat der Button das bild das du haben willst
Mr.Help is offline  
Old 04/30/2012, 22:58   #6
 
Achat's Avatar
 
elite*gold: 528
Join Date: Jan 2012
Posts: 2,127
Received Thanks: 2,403
Soweit ich weiß, muss das Bild noch in *.ico umgewandelt werden.
Dann einfach
Code:
GUICtrlSetImage(controlID, filename)
MfG
Achat is offline  
Old 05/01/2012, 13:02   #7
 
Mr.Help's Avatar
 
elite*gold: 0
Join Date: Jun 2011
Posts: 217
Received Thanks: 17
Ico. oder bit.
Mr.Help is offline  
Reply


Similar Threads Similar Threads
Looking for transparent Avatars..
07/31/2011 - Main - 0 Replies
I can't find any... I appreciate any help. Thanks in advance
Transparent
06/22/2011 - Nostale - 9 Replies
http://www.fileden.com/files/2011/4/22/3120319//Un titled321.png it happens when my Screens Turns black then goes back to normal then after that nostale has some problems that it turns transparent o-o im using W7 this happens when i play 3D games o-o EDIT1: i can play over 10 mins then that happens o-o
Transparent
08/17/2006 - General Art - 5 Replies
Also ich brauche hilfe gibt auch karma und cookies Also ich hab ein Bild da ist ein kopf drauf von Ragnarok mit hintergrund grün also ein spirit und ich will den transparent machen dass ich nur den kopf habe wie kann ich des am leichtesten machen /hp



All times are GMT +1. The time now is 17:23.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.