argumentum Posted July 5 Posted July 5 1 hour ago, bladem2003 said: "Fixed a potential struct-related lockup in the tab subclass procedure - thanks to argumentum" Can you explain that in more detail? ..ok, I will. Using dot notation works fine, unless it doesn't. So I took the one messing up and changed it to use DllStructGetData() `Func _WinAPI_GetWindowRectAsArray($hWnd)` fixed that. I haven't had the clock up problem after that change. If you still have problems, like always, give us a reproducer script, so we can share your pain WildByDesign and bladem2003 2 Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting
WildByDesign Posted July 5 Author Posted July 5 2 hours ago, bladem2003 said: Can you explain that in more detail? I'm using tabs, and sometimes the entire GUI freezes. I don’t quite understand the DllStruct stuff very much. But I see that argumentum has just responded about it. The GUI freezing was a result of the tab subclass locking up the process. This is fixed in the new version today. 2 hours ago, bladem2003 said: What's strange is that other windows are also affected, for example, the Explorer window is completely black, and the text only appears when you hover the mouse over it. Could this be related to the struct mentioned above? This is my fault. I was briefly trying to use SetSysColors function for the white menubar line. Unfortunately, it affects all running apps and it was a bad decision of mine. In the new version, there are no system wide changes. I went back to painting the white line the original way and found ways to do it more efficiently. So this problem is fixed now too. bladem2003 1
WildByDesign Posted July 6 Author Posted July 6 I have some good news. I have (mostly) figured out how to apply dark mode to Color picker dialogs and Font chooser dialogs. This isn't as easy as we might expect. There are a few rough edges that I need to figure out still but it is almost done. argumentum, ioa747 and bladem2003 3
WildByDesign Posted July 10 Author Posted July 10 GUIDarkTheme 2026.07.10 Added dark theme for ChooseColor and ChooseFont dialog boxes Added "..Color()" and "..Font()" to Demo.au3 GUI example - thanks to argumentum Some areas of the ChooseFont dialog are still light due to CBS_OWNERDRAWFIXED * Updated internal functions: __GUIDarkMenu_WM_WINDOWPOSCHANGED() and __GUIDarkMenu_PaintWhiteLine() Both functions updated for better performance and reliability Passing Parent/Owner handle to _ChooseColor(), _ChooseFont() or MsgBox() will center dialog on GUI Latest download available in the first post of the topic. @argumentum and I did something pretty neat with this release that Microsoft should have done. If you pass the Parent/Owner handle in the parameters, it will center the dialog box on your GUI window instead of the desktop which makes more sense. For example: Quote _ChooseColor(2, 0xFF7700, 2, $Form1) _ChooseFont("Arial", 8, Default, 0, False, False, False, $Form1) MsgBox(BitOR($MB_TOPMOST, $MB_OK), "About", $sMsg, 0, $Form1) If you do not pass the Parent/Owner handle, it would normally do its default positioning. MsgBox is generally centered on desktop. ChooseColor usually shows in the top left corner of the desktop. And ChooseFont seems to show up wherever it wants. But we fixed that too. If Parent/Owner handle is not passed, those dialogs show up perfectly centered based on the desktop size. If you do pass Parent/Owner handle, then the dialogs show up perfectly centered on your GUI based on your GUI size and position. argumentum and bladem2003 2
WildByDesign Posted Saturday at 02:28 PM Author Posted Saturday at 02:28 PM GUIDarkTheme 2026.07.11 Smooth resizing of Demo.au3 GUI Static (label) control color handling improvements Minor improvements to ChooseColor dialog Fixed issue with tab item icons/images not showing Fixed issue where splitbutton dropdown arrow would sometimes disappear Removed the ability to set custom tab control background color Too much complexity and potential performance impact Latest download available in the first post of the topic. Lots of important fixes in this release. Especially for anyone who uses icons/images on the tabs of a tab control. But most importantly, I've added smooth (...like butter!) resizing of the GUI in the Demo.au3 script. Try it. It's quite mesmerizing. The normal AutoIt GUI resizing method absolutely hammers the CPU when you have many controls like this Demo does. So I have reduced that CPU usage during GUI resize down to almost nothing. 🤩 ioa747, argumentum and bladem2003 3
WildByDesign Posted 13 hours ago Author Posted 13 hours ago GUIDarkTheme 2026.07.15 Added missing colors for Slider/TrackBar disabled state Improvements to tab control icon/text alignment Added border to SysMonthCal32 control Added support for standalone Scrollbar window with SBS_SIZEBOX or SBS_SIZEGRIP Control Viewer is an example with sizegrip/sizebox but no actual statusbar Improved the contrast of control borders Improved Edit control style on ChooseColor dialog Improved the way that subclasses are handled during theme changes No more Global array to manage subclass handles Miscellaneous code cleanup Latest download available in the first post of the topic. argumentum 1
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