Register for your free account! | Forgot your password?

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

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

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.

Reply
 
Old   #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.
WieMeinen is offline  
Old 07/02/2010, 13:23   #2
 
bladerofdarknes's Avatar
 
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!
bladerofdarknes is offline  
Old 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.
WieMeinen is offline  
Old 07/02/2010, 14:00   #4
 
bladerofdarknes's Avatar
 
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
bladerofdarknes is offline  
Old 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
WieMeinen is offline  
Old 07/02/2010, 14:09   #6
 
bladerofdarknes's Avatar
 
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! <.<
bladerofdarknes is offline  
Old 07/02/2010, 14:56   #7
 
PenGuin :O's Avatar
 
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> !
PenGuin :O is offline  
Old 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.
WieMeinen is offline  
Old 07/03/2010, 01:04   #9
 
PenGuin :O's Avatar
 
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.
PenGuin :O is offline  
Old 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)
WieMeinen is offline  
Old 07/03/2010, 03:22   #11
 
PenGuin :O's Avatar
 
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.
PenGuin :O is offline  
Old 07/03/2010, 10:04   #12
 
bassbanane's Avatar
 
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"00361225BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUICtrlSetState(-1$gui_disable)
$Pic2 GUICtrlCreatePic("mypic2.jpg"16840161113BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUICtrlSetState(-1$gui_ontop)
$Button1 GUICtrlCreateButton("Button1"24488173$WS_GROUP
bassbanane is offline  
Thanks
1 User
Old 07/03/2010, 10:19   #13
 
bladerofdarknes's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 1,524
Received Thanks: 285
bassbanane sehr nice *-*
bladerofdarknes is offline  
Old 07/03/2010, 11:26   #14
 
Shadow992's Avatar
 
elite*gold: 77
Join Date: May 2008
Posts: 5,430
Received Thanks: 5,878
Quote:
Originally Posted by oOWaYnEOo View Post
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"633448238202)
$Pic1 GUICtrlCreatePic("***"328553321BitOR($SS_NOTIFY,$GUI_DISABLE))
$Pic2 GUICtrlCreatePic("***"6448201225BitOR($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 
Shadow992 is offline  
Old 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",550390, @DesktopWidth 275, @DesktopHeight 195)
$Load_Pic_Launcher GUICtrlCreatePic(@ScriptDir "\data\image\backgroud_launch0.jpg"00548388BitOR($SS_NOTIFY,$GUI_DISABLE))
$Pic1 GUICtrlCreatePic(@ScriptDir "\data\image\haken.jpg"520962020BitOR($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...
WieMeinen is offline  
Reply


Similar Threads 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.


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.