Skysnake Posted May 19, 2015 Posted May 19, 2015 (edited) $ListLHT = GUICtrlCreateList("", 8, 152, 664, 279,BitOR($WS_GROUP,$WS_BORDER,$WS_VSCROLL,$WS_HSCROLL)) Hi, code works, but not documented. Its not in the Help file, but HSCROLL works for List 3.3.12.0If I am wrong, please point me in the right direction.Have a nice day now Edited June 12, 2015 by Skysnake edit: solved Skysnake Why is the snake in the sky?
Moderators Melba23 Posted May 19, 2015 Moderators Posted May 19, 2015 Skysnake,Why would it not work - the style can be applied to any control with the ability to scroll horizontally. And why do you say it is "not documented"? It is not part of the default style AutoIt applies to the control, but there is nothing to say that it cannot be added if the coder so wishes.M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Skysnake Posted May 20, 2015 Author Posted May 20, 2015 (edited) am i being silly?the Help file contains this for GuiCtrlCreateListmk:@MSITStore:C:\Program%20Files\AutoIt3\AutoIt.chm::/html/functions/GUICtrlCreateList.htm [optional] Defines the style of the control. See GUI Control Styles Appendix. default ( -1) : $LBS_SORT, $WS_BORDER, $WS_VSCROLL forced styles : $WS_TABSTOP, $LBS_NOTIFY mk:@MSITStore:C:\Program%20Files\AutoIt3\AutoIt.chm::/html/appendix/GUIStyles.htm#ListBox this section does not contain a reference to HScroll... UndocumentedI was under the impression I could only use Style option defined. If this is not so, which other Style options are available which the Help file does not list? I look at the Help file to see which options are available - HScroll is not listed.Have I expressed myself properly? Edited May 20, 2015 by Skysnake Skysnake Why is the snake in the sky?
jchd Posted May 20, 2015 Posted May 20, 2015 $WS_HSCROLL is in due place in the help file under GUI control styles, just like $WS_VSCROLL. It's also used in a number of GUI examples. This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)
Moderators Melba23 Posted May 20, 2015 Moderators Posted May 20, 2015 Skysnake,Look at the headers of the style constants - the ListBox specific ones begin $LBS_*, while the Scroll styles begin $WS_* which can be applied to any "window". So the styles are documented, but you have to look in the correct place.M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Skysnake Posted May 20, 2015 Author Posted May 20, 2015 Thank you. I did not know that. $WS_HSCROLL0x00100000Creates a window that has a horizontal scroll bar.I did not know that that "window" applies any controls... Made a note. Thank you Skysnake Why is the snake in the sky?
jchd Posted May 20, 2015 Posted May 20, 2015 Yes, that seems surprising at first but that's how MS calls things. This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)
Moderators Melba23 Posted May 20, 2015 Moderators Posted May 20, 2015 (edited) Skysnake,In simple terms everything in Windows is a "window" with a unique handle - only in human parlance are they are called GUIs, dialogs, controls, etc. So you can apply $WS_* styles to practically anything - but I would counsel against getting too adventurous as some styles might well not do what you expect and cause big problems!M23Edit: Bonsoir jchd - je vois que tes doigts sont les plus vites aujourd'hui! Edited May 20, 2015 by Melba23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
jchd Posted May 20, 2015 Posted May 20, 2015 Hi M23,I'm in a bit of a hurry: we just had quadruplets(*) yesterday and they are very demanding! Feed them every 30 minutes for instance (night & day)...* They are wren birds, aged 5 days. argumentum 1 This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now