Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 18:08

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

Advertisement



[Hilfe] Radio

Discussion on [Hilfe] Radio within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
Syc0n's Avatar
 
elite*gold: 20
Join Date: Oct 2008
Posts: 1,835
Received Thanks: 1,638
[Hilfe] Radio

Hey,

ich wollte mal fragen, ob man nen Radio Button "Transparent" machen kann, sodass man zwar den Text sieht, aber diesen weißen Hintergrund nicht.

PHP Code:
$Form1 GUICreate("Form666"499320210215)
$Button1 GUICtrlCreateButton("Start",407213749)
$Radio1 GUICtrlCreateRadio("Radio 1"4016010517)
$Pic1 GUICtrlCreatePic("blub.jpg"00497297BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS)) 
Habs schon mit WS_Transparten und so versucht aber ich kriegs net hin... wär nett, wenn ihr mir helfen könntet.

edit: ok ich machs einfach mit Transparten Label...
edit2: geht auch nich..
PHP Code:
$Label2 GUICtrlCreateLabel("Rabarbar"5618410220)
GUICtrlSetFont(-1104000"MS Sans Serif")
GUICtrlSetBkColor(-1$GUI_BKCOLOR_TRANSPARENT
Wo liget der Fehler?
Syc0n is offline  
Old 05/06/2009, 15:40   #2
 
elite*gold: 20
Join Date: Feb 2007
Posts: 3,080
Received Thanks: 4,294
solln deine radio buttons auf dem bild sein?
kknb is offline  
Old 05/06/2009, 16:05   #3
 
Syc0n's Avatar
 
elite*gold: 20
Join Date: Oct 2008
Posts: 1,835
Received Thanks: 1,638
Also die Buttons sollen auf dem Bild seien und auch den Hintergrund vom Bild haben. Hab auch schon geguckt, aber das hat mir leider auch nicht weitergeholfen...
Syc0n is offline  
Old 05/06/2009, 16:11   #4
 
elite*gold: 20
Join Date: Feb 2007
Posts: 3,080
Received Thanks: 4,294
jo kenne ich, gibt dafür kaum ne brauchbare lösung.

du kannst das evtl so lösen:
Code:
#include <GUIConstantsEx.au3>
#include <ButtonConstants.au3>

GUICreate("My GUI radio", 202, 80)
GUICtrlCreatePic('Bild.jpg', 0, 0, 202, 80, 0)

$radio1 = GUICtrlCreateRadio("Radio1", 10, 10, 75, 22, $BS_PUSHLIKE)
$radio2 = GUICtrlCreateRadio("Radio2", 10, 40, 75, 22, $BS_PUSHLIKE)
GUISetState()

While 1
sleep(100)
WEnd
oder so evtl.

Code:
#include <GUIConstants.au3>
#Include <WinAPI.au3>
#include <GuiConstantsEx.au3>
#include <WindowsConstants.au3>


; Dies ist der erste Streich ...
GUIRegisterMsg ($WM_CTLCOLORSTATIC, 'WM_CTLCOLORSTATIC')

$hWndMain      = GUICreate ("My CheckBox Button with Transparency", 300, 200, _
                                                                   -1, -1, _
                                                                   $WS_OVERLAPPEDWINDOW)

GUISetBkColor (0x00ff00)

$pic           = GUICtrlCreatePic (@SystemDir & '\oobe\images\wpaback.jpg', 0, 0, 300, 200)
GUICtrlSetState (-1, $GUI_DISABLE)

$btnCheckBox   = GUICtrlCreateCheckbox ('Checkbox', 100, 90, 100, 20)
; ... und der zweite folgt sogleich. ;)
DllCall ('UxTheme.dll', 'int', 'SetWindowTheme', 'hwnd', GUICtrlGetHandle (-1), 'wstr', ' ', 'wstr', ' ')

$btnPushButton = GUICtrlCreateButton ('PushButton', 110, 150, 80, 20)

GUISetState ()


While True

    Switch GUIGetMsg ()
        Case -3
            Exit
    EndSwitch

WEnd


;========================================================================================
;        WM_CTLCOLORSTATIC ($hDC, $hCtrl)
;========================================================================================
Func WM_CTLCOLORSTATIC ($hWnd, $Msg, $wParam, $lParam)

    Local $hDC = $wParam

    SetBkMode ($hDC, $TRANSPARENT)
    Return _WinAPI_GetStockObject (5) ; 5 = NULL_BRUSH/HOLLOW_BRUSH

EndFunc

;========================================================================================
;        Func SetBkMode ()
;========================================================================================
Func SetBkMode ($hDC, $flag = 0)

    If  ($flag < 0 Or $flag > 1) Then Return SetError (1)

    DllCall ('gdi32.dll', 'int', 'SetBkMode', _
                                'hwnd', $hDC, _    ; handle to Decive Context
                                'int', $flag)      ; $flag: 1 = TRANSPARENT, 0 = OPAQUE

EndFunc
hab ich irgendwo ausm autoit forum.
kknb is offline  
Old 05/06/2009, 16:49   #5
 
Syc0n's Avatar
 
elite*gold: 20
Join Date: Oct 2008
Posts: 1,835
Received Thanks: 1,638
Schade, funktioniert leider beides bei mir nicht...
Syc0n is offline  
Old 05/06/2009, 17:00   #6
 
elite*gold: 20
Join Date: Feb 2007
Posts: 3,080
Received Thanks: 4,294
naja funktionieren tuts sicher, sind nur leider dann keine richtigen radioboxen mehr. ist halt nur ne alternativlösung das man keine hässlichen ränder hat.
kknb is offline  
Old 05/06/2009, 17:03   #7
 
Syc0n's Avatar
 
elite*gold: 20
Join Date: Oct 2008
Posts: 1,835
Received Thanks: 1,638
Weiß denn einer wie man ganz normale Labels Transparent auf en pic setzt?
edit: Habs
PHP Code:
GUICtrlCreatePic($picture00320240)
GUICtrlSetState(Default, $GUI_DISABLE
Label
PHP Code:
GUICtrlSetBkColor(Default, $GUI_BKCOLOR_TRANSPARENT)
GUICtrlSetColor(Default, 0xFFFFFF
Wichtig dabei war erst das Pic zu machen und dann das Label
Syc0n is offline  
Reply


Similar Threads Similar Threads
[AutoIt] $Radio hilfe
04/11/2010 - AutoIt - 1 Replies
hat sich erledigt hab es selbst herausgefunden :D
group/radio hilfe.
10/18/2009 - AutoIt - 4 Replies
hey leute. hab totales blackout grade und daher folgende frage: wie stell ich es ein,wenn ich 2 groupboxen mit jeweils 2 radios drin hab, sodass bei beidem jeweils eins ausgelesen werden kann script: thanks guys. //so nochmal bis jetzt mein script.
[Radio]Dirty south radio online
08/08/2009 - Video Art - 0 Replies
http://img44.imageshack.us/img44/7157/dramajpg.jpg Enjoy Dirty south radio online .com! It´s an american internet radio! They only play dirty music man ^^ Just open the Link( dirtysouthradioonline.com to listen them or download desktop dsr player http://www.dirtysouthradioonline.com/espscripts/Ds rRadioPlayer.exe
[AutoIt] $Radio hilfe
05/03/2009 - AutoIt - 6 Replies
Huhu leute , bin noch neu in der au3 szene und hab ma was zum üben gemacht doch komme schon am anfang nicht mehr weiter , da ich nicht weiß wie man auslesen kann welche Radiobox gerade benuzt wurde und dies dann mit dem Klickbutton verbindet...(wie gesagt ist nur was um zu üben hat keinen tieferen sinn der spaß :P) Habe das ganze schon ohne Race-choose hinbekommen wollte es nun aber bissl erweitern. //Google hat auch keine informativen Threads herausgegeben



All times are GMT +1. The time now is 18:08.


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.