MyEarth Posted May 19, 2015 Share Posted May 19, 2015 Hello, there is a valid "technical reason" behind the choice to make a Color dialog box a blocking function? I can understand for MsgBox but i don't see any reason, except for a techincal one, for make that dialog a blocking function. Is possible to "remove" this limitation from that UDF?Thanks Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 19, 2015 Moderators Share Posted May 19, 2015 MyEarth,The function calls the standard Windows colour chooser dialog using comdlg32.dll and the resulting dialog is blocking. So how do you suggest the "limitation" is removed?And why do you want to keep the dialog visible anyway?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 Link to comment Share on other sites More sharing options...
MyEarth Posted May 19, 2015 Author Share Posted May 19, 2015 (edited) The only thing i'd like is when i call that dialog don't stop the entire main loop until it will be closed, like a normal GUI and not like a MsgBox. If behind there is a technical reason we can do nothing, but if is a choice of the author of the UDF is different for this reason i'm ask if is possible to not make the dialog a blocking one. Edited May 19, 2015 by MyEarth Link to comment Share on other sites More sharing options...
LarsJ Posted May 19, 2015 Share Posted May 19, 2015 I don't think it's blocking if you set $hWndOwnder = 0. Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions Link to comment Share on other sites More sharing options...
MikahS Posted May 19, 2015 Share Posted May 19, 2015 I don't think it's blocking if you set $hWndOwnder = 0.It will still have the same affect. Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ Link to comment Share on other sites More sharing options...
LarsJ Posted May 19, 2015 Share Posted May 19, 2015 MikahS, You are right. I apologize. Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions Link to comment Share on other sites More sharing options...
MikahS Posted May 19, 2015 Share Posted May 19, 2015 (edited) @LarsJ No worries, I think the only way you can truly make it non blocking is if you made the color picker GUI yourself.EDIT: I would think the reason it is made as blocking is that you would want to use the color you chose, before moving on in your script, just like you would wait for a user to make an interaction with a MsgBox, before moving on. So, I'm with @Melba23 on this one. Edited May 19, 2015 by MikahS Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ Link to comment Share on other sites More sharing options...
LarsJ Posted May 21, 2015 Share Posted May 21, 2015 MyEarth, You can find a simulation of a non-blocking Color dialog in Simulating a modeless Choose Color dialog. Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions Link to comment Share on other sites More sharing options...
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