ein ganz herzliches . . . hallo lieber Xorinator
du hast die lösung getroffen.
hier gleich der korrigierte source
AutoIt
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
$oForm1=GUICreate("Radiobutton_Textfarbe_so_einstellen",360,100,100,100)
$oRadio1=GUICtrlCreateRadio("",10,10,20,20)
$oLabel1=GUICtrlCreateLabel("Radio1",10+20,10+2,80,20)
GUICtrlSetFont($oLabel1,9,400,0,"verdana",5) ;;400=normal 700=fett 5=CLEARTYPE_QUALITY
GUICtrlSetColor($oLabel1,"0xFF0000") ;;<=====ROT
$oRadio2=GUICtrlCreateRadio("",10,40,20,20)
$oLabel2=GUICtrlCreateLabel("Radio2",10+20,42,80,20)
GUICtrlSetFont($oLabel2,9,400,0,"verdana",5) ;;400=normal 700=fett 5=CLEARTYPE_QUALITY
GUICtrlSetColor($oLabel2,"0x0000FF") ;;<=====BLAU
GUICtrlSetState($oRadio2,$GUI_CHECKED)
GUISetState(@SW_SHOW)
While 1
$nMsg=GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
GUIDelete()
Exit
EndSwitch
WEnd
Alles anzeigen
die ganzen teile vom "API" habe ich weggelassen, weil mir die klicksensitivität allein vom punkt genügt
(klicken auf den text ist wirkungslos).
[Blockierte Grafik: http://www.aaoo.info/autoit/radiobutton_textfarbe_so_festlegen.jpg]
einfach die masse von GUICtrlCreateRadio nur so gross machen wie der punkt sein soll und daneben/anschliessend ein GUICtrlCreateLabel platzieren.
damit ist das problem gelöst.
DuG
-