Jump to content

Recommended Posts

Posted

hmm, reboot and test again. Not to turn a blind eye to the issue but to troubleshoot it.
Since all this is event driven, you'd have to "activate the child GUI or click on it with the mouse" to create an event.
So, rebooting shows if the OS is resource starved ( to give it a name ) or not.
In either case it could use some rethinking/pondering but the reboot is a good "retry" to look at what is causing the event/"white line" 🤯

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting  image.gif.922e3a93535f431de08b31ee669cc446.gif
autoit_scripter_blue_userbar.png

Posted
5 hours ago, bladem2003 said:

The white line remains until I activate the child GUI or click on it with the mouse.

This usually happens when the child GUI is shown with @SW_SHOWNA.

I have a fix for this now. I will put together a release in this morning.

Posted

GUIDarkTheme 3.1.1

  • Added basic context menu to the Demo
  • Fixed text color and focus rectangle for SysLink controls
  • Fixed issue with menubar painting when GUI has one or more child GUI

Latest download available in the first post of the topic. :)

 

@bladem2003 Please let me know if this resolves your issue with painting of the white line.

Posted
9 hours ago, jpm said:

why the split button disabled have a vertical bar highlighted?

I had a look in the theme resources and this seems to be a Microsoft bug in their theme files. I think that the only way that I can fix that vertical bar highlight issue is by subclassing the splitbutton control. This will take some time but I will see how easy or difficult it is to fix.

9 hours ago, jpm said:

The 3.1.1 need #forceref $iD, $pData and Local $hDC, $hBresh defined before Switch

Thank you for letting me know. I will have this fixed in the next release.

I have added the AutoIt3Wrapper_Au3Check_Parameters back into my testing script so that I do not miss these again.

Posted

@WildByDesign

In versions 3.1.0 and 3.1.1

The "GUICtrlCreateCombo" function: If the parameter "BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL)" is set, the "GUICtrlSetData" function will have the correct value.

The "GUICtrlCreateCombo" function: If the parameter "BitOR($CBS_DROPDOWN, $CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)" is set, the "GUICtrlSetData" function will have the incorrect value.

Please fix this error, thank you.

Please see the details in the following two images.

1.png

2.png

Posted
4 hours ago, xuankhanh1982 said:

The "GUICtrlCreateCombo" function: If the parameter "BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL)" is set, the "GUICtrlSetData" function will have the correct value.

The "GUICtrlCreateCombo" function: If the parameter "BitOR($CBS_DROPDOWN, $CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)" is set, the "GUICtrlSetData" function will have the incorrect value.

Thank you for reporting this bug. :)

I was able to reproduce the bug and found the source of the problem. I will have a fix in the next release.

Posted

GUIDarkTheme 3.2.0

  • MsgBox() function will be hooked/subclassed automatically in dark mode
    • Users can now simply use built-in MsgBox() function
    • _GUIDarkTheme_MsgBox() function is deprecated and will be removed in future release
  • Improved SysLink URL color and size
  • Fixed alignment of text within input/edit controls
  • Fixed alignment of text within HotKey controls
  • Fixed issue when using GUICtrlSetData on ComboBox control

Latest download available in the first post of the topic. :)

Posted
On 6/8/2026 at 10:40 AM, jpm said:

why the split button disabled have a vertical bar highlighted?

image.png.5817914c6e93139238128aea83232cb7.png

I have looked into this issue and would like your opinion, please. :)

The good news is that I can set a custom ImageList and draw our own arrow glyphs which fixes the problem with the arrow glyph.

The bad news is that I have no idea how to target the vertical split to fix that part.

So I have an idea. We can draw our own glyphs to have a nice, consistent arrow dropdown image. My idea for dealing with the vertical split issue (when disabled) is to simply hide the vertical split. This is the only method that I know so far that works.

Screenshot:

splitbutton.png

Please let me know if you think that hiding the vertical split (when disabled only) is an acceptable workaround or not.

Posted

GUIDarkTheme 3.2.1

  • Fixed some visual glitches with BS_SPLITBUTTON controls
    • Most notably, disabled BS_SPLITBUTTON controls were incomplete within MS theme files

Latest download available in the first post of the topic. :)

 

@jpm This release should fix the issue that you mentioned with disabled BS_SPLITBUTTON control having visual glitches. The reason is because Microsoft did not complete the BS_SPLITBUTTON resources for disabled state.

So I fixed that disabled state issue and made it better overall, including light mode too.

Posted
22 hours ago, jpm said:

You still need to fix unused var warnings (#forceref ...)

also need tidies

Thanks. I have fixed this locally and will be all resolved in next release. :)

Posted (edited)

GUIDarkTheme 3.3.0

  • Added custom button colors, borders and corner radius
  • Created custom subclass procedure for WM_NOTIFY: __GUIDarkTheme_NotifyProc
    • This frees up WM_NOTIFY in case user script needs GUIRegisterMsg
  • Created custom subclass procedure for menubar: __GUIDarkMenu_MenuProc
    • This frees up WM_WINDOWPOSCHANGED, WM_ACTIVATE, WM_MEASUREITEM and WM_DRAWITEM
  • Added AutoIt3Wrapper_Au3Check_Parameters to Demo.au3
    • Cleaned up all warnings from Au3Check
  • Ran Tidy on all included .au3 files

Latest download available in the first post of the topic. :)

 

Regarding custom buttons. It only works for regular buttons (not splitbutton, etc.). You can change the fill color and border color for all five states and you can also change the corner radius to make them as round as you want or squared.

You would need to enable the custom buttons first:

$__DM_g_bCustomButtonsEnable = True
$__DM_g_iCustomButtonRadius = 6

And here are the colors for all button states (current matches DarkMode_Explorer theme colors):

Global $__DM_g_iBtnBkColorDef,      $__DM_g_iBtnBkColorDefDark  = 0x333333,     $__DM_g_iBtnBkColorDefLight  = 0xF4F4F4
Global $__DM_g_iBtnBkColorHov,      $__DM_g_iBtnBkColorHovDark  = 0x454545,     $__DM_g_iBtnBkColorHovLight  = 0xE0EFF9
Global $__DM_g_iBtnBkColorSel,      $__DM_g_iBtnBkColorSelDark  = 0x666666,     $__DM_g_iBtnBkColorSelLight  = 0xCCE4F7
Global $__DM_g_iBtnBkColorFoc,      $__DM_g_iBtnBkColorFocDark  = 0x333333,     $__DM_g_iBtnBkColorFocLight  = 0xF4F4F4
Global $__DM_g_iBtnBkColorDis,      $__DM_g_iBtnBkColorDisDark  = 0x333333,     $__DM_g_iBtnBkColorDisLight  = 0xF4F4F4
Global $__DM_g_iBtnBorderDef,       $__DM_g_iBtnBorderDefDark   = 0x9B9B9B,     $__DM_g_iBtnBorderDefLight   = 0xBCBCBC
Global $__DM_g_iBtnBorderHov,       $__DM_g_iBtnBorderHovDark   = 0x9B9B9B,     $__DM_g_iBtnBorderHovLight   = 0xBCBCBC
Global $__DM_g_iBtnBorderSel,       $__DM_g_iBtnBorderSelDark   = 0x9B9B9B,     $__DM_g_iBtnBorderSelLight   = 0xBCBCBC
Global $__DM_g_iBtnBorderFoc,       $__DM_g_iBtnBorderFocDark   = 0xFFFFFF,     $__DM_g_iBtnBorderFocLight   = 0xBCBCBC
Global $__DM_g_iBtnBorderDis,       $__DM_g_iBtnBorderDisDark   = 0x404040,     $__DM_g_iBtnBorderDisLight   = 0xBCBCBC

 

Edited by WildByDesign
Posted

GUIDarkTheme 3.4.0

  • Brand new ownerdrawn Statusbar for dark mode
  • Added AutoIt version to statusbar
  • Added SysLink URL hover to statusbar
  • Added GUIDarkTheme UDF version to statusbar
  • Updated __WinAPI_DefSubclassProc() - thanks to argumentum
  • Fixed rare subclass timing lockup regarding ComboBox - thanks to argumentum

Latest download available in the first post of the topic. :)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...