Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 19:37

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

Advertisement



Form1 Scrollen?? oder alternativ mit Listbox...

Discussion on Form1 Scrollen?? oder alternativ mit Listbox... within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
RettAss's Avatar
 
elite*gold: 20
Join Date: Jan 2010
Posts: 489
Received Thanks: 1,647
Form1 Scrollen?? oder alternativ mit Listbox...

Guten Morgen,

Hab da mal ne frage und zwar,
wollte ich mein GUI Hauptfenster zum scrollen bringen, denn da solln viele label untereinander drauf, aber das fenster soll dabei kompakt bleiben, dachte mir eig. das is ganz simple einfach mit $WS_VSCROLL und das hat sich, aber das war ja mal zu früh gefreut^^.Wenn ich in Koda das fenster verlängere und ganz unten was einfüge und das fenster anschließent wier kürzer mache, bekomm ich ja auch rechts ne scrollbar, blöd das die nich einfach aufs script übernommen wird. Gibts da wieder extrabefehle für oder muss man an $WS_VSCROLL noch etwas anfügen? Hab in der Hilfe nix brauchbares dazu gefunden und google konnte mir auch mal wieder nicht Helfen.

Hier mal ein beispiel wie ich es meine:

PHP Code:
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
Global $Form1 GUICreate("Form1"354435192124)
Global 
$Label1 GUICtrlCreateLabel("Label1"161603617)
Global 
$Label2 GUICtrlCreateLabel("Label2"8563617)
Global 
$Label3 GUICtrlCreateLabel("Label2"111173617)
Global 
$Label4 GUICtrlCreateLabel("Label2"132233617)
Global 
$Label5 GUICtrlCreateLabel("Label2"142643617)
Global 
$Label6 GUICtrlCreateLabel("Label2"213163617)
Global 
$Label7 GUICtrlCreateLabel("Label2"113873617)
Global 
$Label8 GUICtrlCreateLabel("Label2"194523617)
Global 
$Label9 GUICtrlCreateLabel("Label2"145143617)
Global 
$Label10 GUICtrlCreateLabel("Label2"85843617)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit

    EndSwitch
WEnd 
Die letzten 3 Label sind nun nichtmehr sichtbar im Fenster

Andere möglichkeit:
Ich könnte es natürlich auch in eine Listbox schreiben, die die ganze form ausfüllt, dann hab ich das problem mit dem scrollen nichtmehr, aber dafür das problem das ich nicht weis wie man durch das anklicken der einzelnen listbox items ein neues GUI fenster öffnet, was die label in meinem ersten beispiel tun solln.

Klick auf Listboxeintrag 1 öffnet sich GUI X, Klick auf Listboxeintrag 2 öffnet sich GUI Y, usw....

Beispiel:
PHP Code:
#include <GUIConstantsEx.au3>
#include <GUIListBox.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
Global $Form1 GUICreate("Form1"459255192124)
Global 
$List1 GUICtrlCreateList(""00457,253,BitOR($WS_VSCROLL,$WS_BORDER))
GUICtrlSetData(-1"1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit

    EndSwitch
WEnd 
Welches der Beiden ist nun einfacher zu lösen und/oder leichter umzusetzen?

Danke schonmal für eure hilfe

Mfg
RettAss is offline  
Old 12/24/2010, 02:45   #2
 
ZeraPain's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 360
Received Thanks: 249
stimmt ja, bei google findet man da nichts zu...

ZeraPain is offline  
Old 12/24/2010, 04:01   #3
 
RettAss's Avatar
 
elite*gold: 20
Join Date: Jan 2010
Posts: 489
Received Thanks: 1,647
Hmm gut zu 1. das hat sich erledigt, hatte zwar das suchergebniss auch, hab es auch so umgesetzt, nur hab übersehn das #Include <GUI Scroll.au3> nen zusatz ist und nicht bei autoit dabei ist, deshalb ging es nicht.
RettAss is offline  
Reply


Similar Threads Similar Threads
[UMFRAGE]Seeli in shop oder Alternativ
09/19/2010 - Metin2 Private Server - 3 Replies
Wollte mal eine Umfrage starten ob ich in meinen root server Seeli oder die in _Alternativdropp machen soll.
Form1 Trainer By .El.Barto Patch 20.x
08/18/2010 - S4 League Hacks, Bots, Cheats & Exploits - 13 Replies
a simple trainer basic options I hope they serve select the desired option then click on get started and open s4 league Autoit v.3 º'.,;;,.'º VIRUS TEST: VirusTotal - Free Online Virus, Malware and URL Scanner 3 false positive you decide whether or not to use it
[Frage]VB08 listbox
05/15/2010 - .NET Languages - 3 Replies
Hi, wollte fragen, wie man das aktuell angewählte Item umändert sprich: Listbox1.items = Metin2, WoW, 4 Story jetzt will ich WoW in Runescape verändern ohne das es die 2te Position verlässt! Wie mache ich das?? MfG Bestshocker
[FRAGE] Form2 aus Form1 heraus öffnen
04/14/2010 - AutoIt - 4 Replies
heyho, ja, nach eifrigem googlen yahoohen und Bingen ..xD bin ich dennoch nicht fündig geworden und versuche es dann mal hier :P also mein problem ist folgendes: Ich habe ein GUI mit buttons inputfeldern bla bli blubb so, nun soll ein button ein 2. GUI aufrufen in welchem wieder buttons und inputfelder sind ... läuft aber irgendwie nich so wie ich mir das vorstelle :P meine frage:
[help] c# listbox databinding not updating
07/29/2009 - CO2 Programming - 3 Replies
Hi guys, I'm new to c#... my first time, and hopefully not he last. :D Just having trouble with listbox data-binding atm. For reasons I don't know, when changes are made to the data which the listbox is bounded to, the changes are not reflected inside the listbox. The following is some of the code i'm using. Firstly the intialisation and the bounding of the data to the listbox.



All times are GMT +1. The time now is 19:37.


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.