|
You last visited: Today at 16:04
Advertisement
Input transperent
Discussion on Input transperent within the AutoIt forum part of the Coders Den category.
05/19/2013, 20:38
|
#1
|
elite*gold: 14
Join Date: Feb 2013
Posts: 129
Received Thanks: 2
|
Input transperent
Ich wollte fragen, ob es möglich ist ein Input hinter einem Bild "zu verstecken".
meinselite
|
|
|
05/19/2013, 20:46
|
#2
|
elite*gold: 50
Join Date: Sep 2012
Posts: 3,841
Received Thanks: 1,462
|
och mensch deine erste frage hast du schön im sammelthread gestellt und jetzt eröffnest du einen neuen thread :/
naja egal 
Input ins bild einbetten oder unsichtbar machen ?
|
|
|
05/19/2013, 21:02
|
#3
|
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
|
irgendwan mal aus einem forum kopiert...
_Transinput.au3
PHP Code:
#include-once Dim $aTransIn[1][3] = [["Ctrl_Input","Ctrl_Lable","Text"]] $DUMMY = GUICreate("DUMMY") AdlibRegister("_TransInput_Update",50) $dll = DllOpen("user32.dll")
Func _TransInput_Create(ByRef $ctrlID,$ifSize=8.5) ;SEuBo $hParent_Wnd = DllCall($dll,"hwnd","GetParent","hwnd", GUICtrlGetHandle($ctrlID)) $hParent_Wnd = $hParent_Wnd[0] $cOldText = ControlGetText($hParent_Wnd,"",$ctrlID) $cPos = ControlGetPos($hParent_Wnd,"",$ctrlID) If Not @error Then $oldGUI = GUISwitch($DUMMY) GUISwitch($oldGUI) $nCtrlID = GUICtrlCreateLabel($cOldText,$cPos[0],$cPos[1],$cPos[2],$cPos[3]) GUICtrlSetBkColor(-1,-2) GUICtrlSetFont(-1,$ifSize) $hwnd_gui = GUICreate("",$cPos[2],$cPos[3],$cPos[0],$cPos[1],0x80000000,BitOR(0x00000040,0x00000008),$hParent_Wnd) GUICtrlDelete($ctrlID) $ctrlID = GUICtrlCreateInput($cOldText,0,0,$cPos[2],$cPos[3]) GUICtrlSetState(-1,2048) GUICtrlSetFont(-1,$ifSize) WinSetTrans($hwnd_gui,"",1) GUISetState(@SW_SHOW,$hwnd_gui) ReDim $aTransIn[UBound($aTransIn)+1][3] $aTransIn[UBound($aTransIn)-1][0] = $nCtrlID $aTransIn[UBound($aTransIn)-1][1] = $ctrlID $aTransIn[UBound($aTransIn)-1][2] = $cOldText GUISwitch($oldGUI) Return $nCtrlID EndIf EndFunc Func _TransInput_Update() For $i = 1 to UBound($aTransIn)-1 If $aTransIn[$i][2] <> GUICtrlRead($aTransIn[$i][1]) Then $aTransIn[$i][2] = GUICtrlRead($aTransIn[$i][1]) GUICtrlSetData($aTransIn[$i][0],$aTransIn[$i][2]) EndIf Next EndFunc
dann so:
PHP Code:
#include <_Transinput.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 625, 443, 192, 124) $label = GUICtrlCreateLabel("schreib hier was hin!", 80, 88, 250, 25) _TransInput_Create($label,12) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ###
While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit
EndSwitch WEnd
halt ein bild anstelle des labels einfügen...
(man sieht aber nicht, wo man schreiben muss, also sollte ein label oder hinweis da sein)
frage ist, ob es auch reichen würde, deine input einfach zu verstecken?
@SW_HIDE
|
|
|
05/19/2013, 21:35
|
#4
|
elite*gold: 14
Join Date: Feb 2013
Posts: 129
Received Thanks: 2
|
Quote:
och mensch deine erste frage hast du schön im sammelthread gestellt und jetzt eröffnest du einen neuen thread :/
naja egal 
Input ins bild einbetten oder unsichtbar machen ?
|
Einbetten, also das man es nicht mehr sieht aber man noch immer schreiben kann
Danke omer, aber ich würde auch noch gerne das |, wie heißt es noch gleich, sehen und auch wenn man etwas markiert
meinselite
|
|
|
 |
Similar Threads
|
input box as an image like php input boxes
03/22/2012 - AutoIt - 2 Replies
is it posible to do that?
like... -> use image -> and put input box as image in gui
so u can enter text in the image but u wont see this crappy input white box :)
as i tryed and searched i dont think but maybe someone has figured it out
|
Icons Transperent
04/10/2011 - Metin2 Private Server - 3 Replies
Abend,
wollte mir ein neues Item erstellen. Habe dazu das richtige Icon, allerdings bleibt das Bild nicht Transperent, wenn ich es als .tga speicher.
Ich benutze PS5, währe nett wenn jemand weiss, wie ich das Format hinbekommen damit die Icons nicht weiß umrandet sind.
THX im voraus!
MfG Googler77
|
GUI Komplett Transperent im Aero Style!
01/31/2010 - AutoIt - 6 Replies
Hallo,
Ich möchte bei Autoit die Gui und die MsgBoxen in Aero machen so wie z.B. hier PerfectSoft - Unicalc , wie kriege ich das hin? Ist sowas überhaubt möglich?
|
hi some input plz?
05/11/2007 - Conquer Online 2 - 0 Replies
i made billions of high lv troj and got used to it, now i played on a new serv and made a lv110 war in 2weeks. however, i am very not used to it cuz cant even ss/fb. i wasthinking of making a new char, or stick with this one rb at 120, or make it 130 130 rb to troj? btw lvling with a sword/blade and shield at lv120 + , would it affect my exp a lot compare to using club shield?
|
All times are GMT +1. The time now is 16:05.
|
|