|
You last visited: Today at 17:02
Advertisement
[Koda] Bring to Front / to Back
Discussion on [Koda] Bring to Front / to Back within the AutoIt forum part of the Coders Den category.
07/02/2010, 13:03
|
#1
|
elite*gold: 0
Join Date: Jun 2008
Posts: 99
Received Thanks: 19
|
[Koda] Bring to Front / to Back
Hi, ich wollte fragen, wie man einem Pic sagt, es soll hinter einem anderen Element stehen. Also z.B. man hat 2 überlappende Bilder und man will das eins davon vor dem anderen zu sehen ist. Ich habe schon in Koda die Funktion "Bring to Front" und "Send to Back" gesehen, das hat mir allerdings nur in Koda das erwünschte Resultat gebracht.
|
|
|
07/02/2010, 13:23
|
#2
|
elite*gold: 0
Join Date: Mar 2008
Posts: 1,524
Received Thanks: 285
|
ein bild ganz normal anzeigen und das andere wo on top sein soll einfach mit SplashImg anzeigen lassen 
wäre so ziemlich das einfachste!
|
|
|
07/02/2010, 13:42
|
#3
|
elite*gold: 0
Join Date: Jun 2008
Posts: 99
Received Thanks: 19
|
Ja, das erzeugt einfach nur ein neues Fenster.
Ich will eigentlich ein Hintergrundbild, das nicht alles verdeckt. Sondern die anderen Elemente das Bild verdecken.
|
|
|
07/02/2010, 14:00
|
#4
|
elite*gold: 0
Join Date: Mar 2008
Posts: 1,524
Received Thanks: 285
|
hmm sorry hab keine ahnung!
gib das einfach mal so bei google ein wie du es oben beschrieben hast, ich denke du wirst was finden
|
|
|
07/02/2010, 14:05
|
#5
|
elite*gold: 0
Join Date: Jun 2008
Posts: 99
Received Thanks: 19
|
Google findet nix
Hab ich schon benutzt bevor ich hier gepostet hab
|
|
|
07/02/2010, 14:09
|
#6
|
elite*gold: 0
Join Date: Mar 2008
Posts: 1,524
Received Thanks: 285
|
hmm sorry mir fällt dann auch nix ein, bin eh gerade damit beschäftigt ein tool zu erstellen welches mir die hwid in einer msgbox anzeigt, weil ich programme nur für bestimmte pc's freigeben will! <.<
|
|
|
07/02/2010, 14:56
|
#7
|
elite*gold: 2
Join Date: Mar 2008
Posts: 1,778
Received Thanks: 1,222
|
Wenn der Button über dem Bild sein soll, zuerst das Bild erstellen, dann den Button, ansonsten andersrum.
Oder aber mit
Code:
GUICtrlSetOnTop($ControlID, $GUI_ONTOP)
das Control in den Vordergrund holen. (ControlID natürlich anpassen).
$GUI_ONTOP benötigt #include <GUIConstantsEx.au3> !
|
|
|
07/03/2010, 00:22
|
#8
|
elite*gold: 0
Join Date: Jun 2008
Posts: 99
Received Thanks: 19
|
Wenn ich allerdings 2 Bilder mit GUICtrlSetState (Pic6,$GUI_ONTOP) mache, wird das eine Bild nicht in den Vordergrund geschoben.
|
|
|
07/03/2010, 01:04
|
#9
|
elite*gold: 2
Join Date: Mar 2008
Posts: 1,778
Received Thanks: 1,222
|
2 Bilder? Wenn die sich überlappen wird natürlich nur eines in den Vordergrund geholt, nämlich das, wo der befehl angewendet wurde. Man kann nciht 2 in dem Vordergrund haben.
|
|
|
07/03/2010, 01:53
|
#10
|
elite*gold: 0
Join Date: Jun 2008
Posts: 99
Received Thanks: 19
|
Ja, der Befehl funktioniert aber nicht mit 2 Bildern... Jedenfalls nicht mit GUICtrlSetState (Pic6,$GUI_ONTOP)
|
|
|
07/03/2010, 03:22
|
#11
|
elite*gold: 2
Join Date: Mar 2008
Posts: 1,778
Received Thanks: 1,222
|
Dann erstell beide und versteck das, was du nicht brauchst.
Ansonten zeig mal dein Script.
|
|
|
07/03/2010, 10:04
|
#12
|
elite*gold: 116
Join Date: Oct 2007
Posts: 677
Received Thanks: 248
|
Wenn du es nun so machen willst, dass du ein hintergrundbild hast, auf dem ein button und ein 2. bild ist sieht der code in etwa so aus.
(Man muss das hintrgrundbild disabled, damit man den button noch klicken kann)
PHP Code:
$Pic1 = GUICtrlCreatePic("myPic1.jpg", 0, 0, 361, 225, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUICtrlSetState(-1, $gui_disable)
$Pic2 = GUICtrlCreatePic("mypic2.jpg", 168, 40, 161, 113, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUICtrlSetState(-1, $gui_ontop)
$Button1 = GUICtrlCreateButton("Button1", 24, 48, 81, 73, $WS_GROUP)
|
|
|
07/03/2010, 10:19
|
#13
|
elite*gold: 0
Join Date: Mar 2008
Posts: 1,524
Received Thanks: 285
|
bassbanane sehr nice *-*
|
|
|
07/03/2010, 11:26
|
#14
|
elite*gold: 77
Join Date: May 2008
Posts: 5,430
Received Thanks: 5,878
|
Quote:
Originally Posted by oOWaYnEOo
Ja, der Befehl funktioniert aber nicht mit 2 Bildern... Jedenfalls nicht mit GUICtrlSetState (Pic6,$GUI_ONTOP)
|
Nur für dich :
PHP Code:
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 448, 238, 202)
$Pic1 = GUICtrlCreatePic("***", 32, 8, 553, 321, BitOR($SS_NOTIFY,$GUI_DISABLE))
$Pic2 = GUICtrlCreatePic("***", 64, 48, 201, 225, BitOR($SS_NOTIFY,$GUI_DISABLE))
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|
|
|
07/03/2010, 13:59
|
#15
|
elite*gold: 0
Join Date: Jun 2008
Posts: 99
Received Thanks: 19
|
So, was mach ich falsch? Ich habe euch mal einen Teil des Skripts gegeben:
PHP Code:
#include <ButtonConstants.au3> #include <ComboConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <TabConstants.au3> #include <WindowsConstants.au3>
$GUI_Launcher = GUICreate("League of Legends Tools",550, 390, @DesktopWidth / 2 - 275, @DesktopHeight / 2 - 195) $Load_Pic_Launcher = GUICtrlCreatePic(@ScriptDir & "\data\image\backgroud_launch0.jpg", 0, 0, 548, 388, BitOR($SS_NOTIFY,$GUI_DISABLE)) $Pic1 = GUICtrlCreatePic(@ScriptDir & "\data\image\haken.jpg", 520, 96, 20, 20, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS)) GuictrlsetState(-1,$GUI_HIDE)
[...]
GuiCtrlSetState ($Pic1,$GUI_SHOW) GuiCtrlSetState ($Pic1,$GUI_ONTOP)
EDIT: Habs herausgefunden: Kein $WS_GROUP,$WS_CLIPSIBLINGS einbauen...
|
|
|
 |
Similar Threads
|
Bring Back KARMA :D +1
10/01/2010 - Off Topic - 32 Replies
Come on i missed the old system who else did 0.0
|
DB PROMOTION BRING IT BACK.!
04/10/2010 - Conquer Online 2 - 1 Replies
title says it all... if u want to bring the db promotion back..
then vote here
Bring back the DB! Recommended - 01/04/10 - Page 32 - ConquerRPG Forum
|
About Bring Back The DB Of Reward Lv 110
04/06/2010 - Conquer Online 2 - 6 Replies
We Knew N Saw That TQ Did With Shit Patch 5226 About Removed DB As Reward For Lv110.
I'm Sure That Almost All Of Us Against That Shit Update.
So Go Vote For That
This Link....Here.... (Into ConquerRPG Forum)
Just Vote...Even If No longer Play it again
We Hope That Will Make The DB Back Again..
|
Bring them back?..
06/02/2008 - MapleStory - 1 Replies
yo hey guys, ok u all remember those good time when maplestory had hacks like super tubi, demi, unlimited attk, etc.. and u would be able to suck up all monsters in 1 stop and use skill to kill them all, and it just does it all over again then after u go pick up everything in like 1 sec. well my question today is... Is it possible to bring those hacks back?
P.s if u can make them, thats fkin awesome, if not,:( oh well but im just asking
|
All times are GMT +1. The time now is 17:03.
|
|