|
You last visited: Today at 11:47
Advertisement
BitOR & $WS_HSCROLL &$WS_VSCROLL error
Discussion on BitOR & $WS_HSCROLL &$WS_VSCROLL error within the AutoIt forum part of the Coders Den category.
04/02/2012, 15:45
|
#1
|
elite*gold: 0
Join Date: Aug 2010
Posts: 880
Received Thanks: 113
|
BitOR & $WS_HSCROLL &$WS_VSCROLL error
Hi,
ich hab ein Problem mit Koda bzw. mit BitOr und den auto scroll sachen.
Er sagt mir immer wenn ich
PHP Code:
$List1 = GUICtrlCreateList("", 0, 180, 417, 215, BitOR($WS_HSCROLL,$WS_VSCROLL))
mache das ich sie benutze bevor ich sie deklariert habe. Aber ich hab die GUIConstant.au3 schon drinne und die GUIConstantEx.au3 ist es auch nicht. Woran kann das liegen?
|
|
|
04/02/2012, 16:35
|
#2
|
elite*gold: 0
Join Date: Mar 2011
Posts: 8,645
Received Thanks: 3,454
|
$WS_HSCROLL und $WS_VSCROLL gibt es garnicht.
|
|
|
04/02/2012, 16:45
|
#3
|
elite*gold: 1003
Join Date: Feb 2010
Posts: 791
Received Thanks: 709
|
Quote:
Originally Posted by Freddy
$WS_HSCROLL und $WS_VSCROLL gibt es garnicht.
|
Deine Posts waren bis jetzt ja noch nicht sehr hilfreich, eher nur blödsinn... sry
Quote:
Originally Posted by Ludder231
Hi,
ich hab ein Problem mit Koda bzw. mit BitOr und den auto scroll sachen.
Er sagt mir immer wenn ich
PHP Code:
$List1 = GUICtrlCreateList("", 0, 180, 417, 215, BitOR($WS_HSCROLL,$WS_VSCROLL))
mache das ich sie benutze bevor ich sie deklariert habe. Aber ich hab die GUIConstant.au3 schon drinne und die GUIConstantEx.au3 ist es auch nicht. Woran kann das liegen?
|
Du brauchst folgende Includes:
Code:
#include <GUIConstantsEx.au3>
#include <GUIListBox.au3>
#include <WindowsConstants.au3>
|
|
|
04/02/2012, 16:47
|
#4
|
elite*gold: 50
Join Date: Mar 2010
Posts: 1,373
Received Thanks: 521
|
Quote:
Originally Posted by aj1987
Du brauchst folgende Includes:
Code:
#include <GUIListBox.au3>
|
Was hat das mit seinem Problem zu tun?
|
|
|
04/02/2012, 16:51
|
#5
|
elite*gold: 1003
Join Date: Feb 2010
Posts: 791
Received Thanks: 709
|
Quote:
Originally Posted by jacky919
Was hat das mit seinem Problem zu tun?
|
Sein Problem gelesen?
Dann weisst dus...
Aber
Code:
#include <GUIConstantsEx.au3>
#include <GUIListBox.au3>
sin dafür net wirklich nötig...
aber lass dabei...
|
|
|
04/02/2012, 16:53
|
#6
|
elite*gold: 50
Join Date: Mar 2010
Posts: 1,373
Received Thanks: 521
|
Quote:
Originally Posted by aj1987
Sein Problem gelesen?
Dan weisst dus...
Aber
Code:
#include <GUIConstantsEx.au3>
is dafür net wirklich nötig...
aber lass dabei...
|
Ja, habe ich gelesen und gerade das ist der Grund, warum ich frage.
und btw: Warum soll er es dabei lassen?
|
|
|
04/02/2012, 16:58
|
#7
|
elite*gold: 1003
Join Date: Feb 2010
Posts: 791
Received Thanks: 709
|
Quote:
Originally Posted by jacky919
Ja, habe ich gelesen und gerade das ist der Grund, warum ich frage.
und btw: Warum soll er es dabei lassen?
|
Die #include <WindowsConstants.au3> is für seine fehlenden Variablen, $WS_HSCROLL und $WS_VSCROLL verantwortlich...
Generell bei einer GUI mit GUICtrlCreateList verwendet man für weiteres Arbeiten diese 3 Includes...
|
|
|
04/02/2012, 17:06
|
#8
|
elite*gold: 50
Join Date: Mar 2010
Posts: 1,373
Received Thanks: 521
|
Quote:
Originally Posted by aj1987
Die #include <WindowsConstants.au3> is für seine fehlenden Variablen, $WS_HSCROLL und $WS_VSCROLL verantwortlich...
|
Ist mir schon klar, dass er die WindowsConstats.au3 braucht.
btw: Diese Variablen fehlen nicht, sondern sind nicht deklariert.
Quote:
Originally Posted by aj1987
Generell bei einer GUI mit GUICtrlCreateList verwendet man für weiteres Arbeiten diese 3 Includes...
|
Aber dann sag nicht, dass er diese brauchen würde, sondern weise ihn darauf hin, dass diese sich eventuell später als nützlich erweisen könnten.
|
|
|
04/02/2012, 17:09
|
#9
|
elite*gold: 1003
Join Date: Feb 2010
Posts: 791
Received Thanks: 709
|
Quote:
Originally Posted by jacky919
Ist mir schon klar, dass er die WindowsConstats.au3 braucht.
btw: Diese Variablen fehlen nicht, sondern sind nicht deklariert.
Aber dann sag nicht, dass er diese brauchen würde, sondern weise ihn darauf hin, dass diese sich eventuell später als nützlich erweisen könnten.
|
Du verpeilst hier grad das Ziel...
Es geht hier wohl kaum darum wie ich helfe, sondern um die Lösung des problems, und die ist gegeben...
Sry wenn ich nicht sooooo professionell bin -.-'
|
|
|
04/02/2012, 17:13
|
#10
|
elite*gold: 50
Join Date: Mar 2010
Posts: 1,373
Received Thanks: 521
|
Quote:
Originally Posted by aj1987
Sry wenn ich nicht sooooo professionell bin -.-'
|
AutoIt und professionell?
Das stelle ich in Frage und halte es eher für ein Paradoxon.
|
|
|
04/02/2012, 17:20
|
#11
|
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
|
Quote:
Originally Posted by aj1987
Generell bei einer GUI mit GUICtrlCreateList verwendet man für weiteres Arbeiten diese 3 Includes...
|
Generell benötigt man für das arbeiten mit guis überhaupt keine includes...
Die meisten style variablen werden ohnehin nicht öfter als 1-2mal genutzt, und sollten von daher besser komplett weggelassen werden. stattdessen empfielt es sich, direkt den zugehörigen wert zu nutzen.
Jemandem hier empfehlen, einfach so nicht benötigte / vielleicht später brauchbare includes mit ins script einzubauen, ist definitv der falsche weg...
|
|
|
04/02/2012, 17:21
|
#12
|
elite*gold: 0
Join Date: Mar 2011
Posts: 8,645
Received Thanks: 3,454
|
Euch ist aber klar, dass es garnicht um die includes geht sondern dass es einfach keine Variable für autoscroll bei listboxen gibt?
GUI Control Styles Appendix.
Code:
Default/forced $GUI_SS_DEFAULT_LIST see GUICtrlCreateList function.
$LBS_DISABLENOSCROLL 0x1000 Shows a disabled vertical scroll bar for the list box when the box does not contain enough items to scroll. If you do not specify this style, the scroll bar is hidden when the list box does not contain enough items.
$LBS_NOINTEGRALHEIGHT 0x0100 Specifies that the list box will be exactly the size specified by the application when it created the list box.
$LBS_NOSEL 0x4000 Specifies that the user can view list box strings but cannot select them.
$LBS_NOTIFY 0x0001 Notifies the parent window when the user taps or double-taps a string in the list box.
$LBS_SORT 0x0002 Sorts strings in the list box alphabetically.
$LBS_STANDARD 0xA00003 Sorts strings in the list box alphabetically. The parent window receives an input message when the user taps or double-taps a string. The list box has borders on all sides. (LBS_NOTIFY | LBS_SORT | WS_VSCROLL | WS_BORDER)
$LBS_USETABSTOPS 0x0080 Enables a list box to recognize and expand tab characters when drawing its strings. The default tab positions are 32 dialog box units. A dialog box unit is equal to one-fourth of the current dialog box base-width unit.
Extended Style Table
Code:
$WS_EX_ACCEPTFILES 0x00000010 Allow an edit or input control within the created GUI window to receive filenames via drag and drop. The control must have also the $GUI_DROPACCEPTED state set by GUICtrlSetState.
$WS_EX_APPWINDOW 0x00040000 Forces a top-level window onto the taskbar when the window is visible.
$WS_EX_COMPOSITED 0x02000000 Windows XP or above: Paints all descendants of a window in bottom-to-top painting order using double-buffering.
$WS_EX_CLIENTEDGE 0x00000200 Specifies that a window has a border with a sunken edge.
$WS_EX_CONTEXTHELP 0x00000400 Includes a question mark in the title bar of the window. Cannot be used with the WS_MAXIMIZEBOX or WS_MINIMIZEBOX
$WS_EX_DLGMODALFRAME 0x00000001 Creates a window that has a double border; the window can, optionally, be created with a title bar by specifying the WS_CAPTION style in the dwStyle parameter.
$WS_EX_LAYOUTRTL 0x400000 Specifies that a window has a layout from right to left (RTL) instead of the standard left to right (LTR).
$WS_EX_MDICHILD 0x00000040 Create a child window that will be moved with its parent.(simulation of a MDI window maximize/minimize are not simulated).
$WS_EX_OVERLAPPEDWINDOW 0x00000300 Combines the WS_EX_CLIENTEDGE and WS_EX_WINDOWEDGE styles.
$WS_EX_STATICEDGE 0x00020000 Creates a window with a three-dimensional border style intended to be used for items that do not accept user input.
$WS_EX_TOPMOST 0x00000008 Specifies that a window created with this style should be placed above all non-topmost windows and should stay above them, even when the window is deactivated.
$WS_EX_TRANSPARENT 0x00000020 The window appears transparent because the bits of underlying sibling windows have already been painted.
$WS_EX_TOOLWINDOW 0x00000080 Creates a tool window; that is, a window intended to be used as a floating toolbar. A tool window has a title bar that is shorter than a normal title bar, and the window title is drawn using a smaller font. A tool window does not appear in the taskbar or in the dialog box that appears when the user presses ALT+TAB. If a tool window has a system menu, its icon is not displayed on the title bar. However, you can display the system menu by typing ALT+SPACE.
$WS_EX_WINDOWEDGE 0x00000100 Specifies that a window has a border with a raised edge.
$WS_EX_LAYERED 0x00080000 Creates a layered window. Note that this cannot be used for child windows.
$GUI_WS_EX_PARENTDRAG 0x00100000 Allow the label or pic control to be used as the title bar to drag the whole the parent window.
^lolkop
|
|
|
04/02/2012, 17:27
|
#13
|
elite*gold: 0
Join Date: Aug 2010
Posts: 880
Received Thanks: 113
|
Doch leider scrollt er garnciht weiter runter, aber die errors sind weg...
PHP Code:
$List1 = GUICtrlCreateList("", 0, 180, 417, 215, BitOR($WS_HSCROLL,$WS_VSCROLL))
EDIT: Aso, also muss ich da was anderes nehmen? und was z.b?
|
|
|
04/02/2012, 17:47
|
#14
|
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
|
Quote:
Originally Posted by Ludder231
Doch leider scrollt er garnciht weiter runter, aber die errors sind weg...
|
verstehe das problem nicht so ganz.
wenn du die createlist funktion komplett ohne parameter aufrufst, sollte die liste, sobald es nötig ist, aber ohnehin die scrollbars bekommen.
ein einfaches beispiel im dies zu zeigen wäre zb:
Code:
GUICreate('')
GUISetState()
GUICtrlCreateList("", 10, 10, 100, 200)
For $i=97 To 122
GUICtrlSetData(-1, Chr($i))
Next
While GUIGetMsg()<>-3
WEnd
|
|
|
04/02/2012, 17:54
|
#15
|
elite*gold: 0
Join Date: Mar 2011
Posts: 8,645
Received Thanks: 3,454
|
Quote:
Originally Posted by lolkop
verstehe das problem nicht so ganz.
wenn du die createlist funktion komplett ohne parameter aufrufst, sollte die liste, sobald es nötig ist, aber ohnehin die scrollbars bekommen.
ein einfaches beispiel im dies zu zeigen wäre zb:
Code:
GUICreate('')
GUISetState()
GUICtrlCreateList("", 10, 10, 100, 200)
For $i=97 To 122
GUICtrlSetData(-1, Chr($i))
Next
While GUIGetMsg()<>-3
WEnd
|
Er will, dass automatisch mitgescrollt wird also wie bei deinem Beispiel bleibt der Scrollbalken oben und man muss manuell von oben nach unten Scrollen
|
|
|
Similar Threads
|
[Error]Error when using Zero's method/And another Error
09/16/2011 - Shaiya Private Server - 5 Replies
well here is a screeny of my problem. Any assistance is greatly appreciated. I haven't come across this error before nor seen any posts up here about it. Also this is me executing the NpcQuest_cvs.bat and yes i changed python to C:/Python27/Python.exe in the command line.
http://img707.imageshack.us/img707/9997/errorgx.p ng
Ok So my second error involves changing Stat points per lvl here is my screen shots
http://img854.imageshack.us/img854/6412/nosave.pn g
|
All times are GMT +1. The time now is 11:48.
|
|