Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 11:08

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

Advertisement



AutoIt GUI vergrößern

Discussion on AutoIt GUI vergrößern within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1

 
.yorliK's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 1,448
Received Thanks: 1,258
AutoIt GUI vergrößern

Ich möchte mein GUI in der Länge vergrößern lassen wenn ein Button gedrückt wird. Weil ich eine Editbox nur anzeigen lassen will, wenn die auch gebraucht wird.

Ich habe schon einen Code zusammen gebastelt das das GUI vergrößert, aber der Code streckt nur das ganze Programm, somit wird erst gar keine Editbox angezeigt..

PHP Code:
Func _Editbox()
Global 
$F True
Local $size 
WinGetPos("[active]")
If 
$f Then
                GUICtrlSetData
($Button8"Hide")
                For 
$i 345 To 583 Step 5
                    WinMove
($Form1""$size[0], $size[1] , $i190) ; Länge von 345 auf 583 setzen
                    Sleep
(1)
                
Next
            
Else
                
GUICtrlSetData($Button8"Show")
                For 
$i 583 To 345 Step 5
                    WinMove
($Form1""$size[0], $size[1], $i190) ; Länge zurück auf 345 setzen
                    Sleep
(1)
                
Next
            
EndIf
            
$f Not $f
EndFunc 
;==> _Editbox() 
#Jede gute Antwort = Thanks#

MfG
Kilroy.
.yorliK is offline  
Old 05/29/2013, 18:26   #2
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,254
z. B. mit dem befehl GUICtrlSetResizing()..

hier kleines beispiel:
PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Form1"165142190125)
$Input1 GUICtrlCreateInput("Input1"81612121)
GUICtrlSetResizing(-1802)
$Input2 GUICtrlCreateInput("Input2"86412121)
GUICtrlSetResizing(-1802)
$Input3 GUICtrlCreateInput("Input3"811212121)
GUICtrlSetResizing(-1802)
$Button1 GUICtrlCreateButton(">"1441617113$WS_GROUP)
GUICtrlSetResizing(-1802)
$Edit1 GUICtrlCreateEdit(""16816201113)
GUICtrlSetResizing(-1802)
GUICtrlSetData(-1"Edit1")
GUICtrlSetResizing(-1802)
GUICtrlSetState($Edit1, @SW_HIDE)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

Global $bVisible False

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
        Case 
$Button1
            _winmove
()
    EndSwitch
WEnd



Func _winmove
()
Local $size WinGetPos("Form1")
    If 
$bVisible False Then
        WinMove
("Form1"""$size[0], $size[1], 375165)
        
$bVisible Not $bVisible
        GUICtrlSetState
($Edit1, @SW_SHOW)
        
GUICtrlSetData($Button1"<")
    Else
        
WinMove("Form1"""$size[0], $size[1], 175165)
        
$bVisible Not $bVisible
        GUICtrlSetState
($Edit1, @SW_HIDE)
        
GUICtrlSetData($Button1">")
    EndIf
EndFunc 
vllt. gibt es noch eine methode, wo du nicht jedes element einzeln damit ansprechen musst... kannst ja mal googlen.. ^^
omer36 is offline  
Thanks
1 User
Old 05/29/2013, 23:58   #3
 
elite*gold: 0
Join Date: Mar 2009
Posts: 7,260
Received Thanks: 33,147
Code:
AutoItSetOption("GUIResizeMode", 802)
KDeluxe is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[TuT] Inventar vergrößern
06/21/2016 - Flyff PServer Guides & Releases - 33 Replies
Yo Lieschas. Da Boss releast heute mal wie ihr euer Invi vergrößert. Erst ändert ihr im Source den define für das Inventory: Projectcmn.h #define MAX_INVENTORY 42 und: Obj.h #define MAX_INVENTORY 42
Shops Vergrößern!
12/10/2012 - Metin2 Private Server - 7 Replies
Hallo Epvp. Ist es möglich die Shop Fenster zu vergrößern? Also aus 40 Slots zb 90?
[F]Mob's vergrößern?
08/19/2010 - Metin2 Private Server - 0 Replies
Hy, es is ya möglich Items ( Waffen ) zu vergrössern. Was ich mich jz eig. frag is das gleiche mit Mob's möglich? Sollte eig. schon, oder? Grund? Naya, ich find den Zombie-God bisschen klein da er bei mir 'n Boss ist .. aber mit seiner größe schaut er nicht so aus xD Ich kann mir zwar denken wie man die größer macht .. aber ich frag lieber mal Leute die es villt besser wissen / schon taten



All times are GMT +2. The time now is 11:08.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.