amin84 Posted December 28, 2013 Share Posted December 28, 2013 (edited) Hello, Here is another strange behavior that I've found and it only happens in Windows XP. I tested it on a virtual Windows XP SP3. Run the code below by either compiling or pressing F5 in SciTE. In the new window called "Test Win" click on the dropdown menu and it works fine. Minimize the window, then restore the window and try clicking the dropdown again. The menu appears as just a 2px black line. Now close "Test Win" and comment out line 28 (GUISetFont(10, 400, 0, "Tahoma")) and try the same thing and the dropdown is fixed and does not transform to 2px black line. expandcollapse popup#NoTrayIcon #include <ButtonConstants.au3> #include <ComboConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <GuiComboBox.au3> #include <StaticConstants.au3> #include <TabConstants.au3> #include <WindowsConstants.au3> #Include <Constants.au3> #include <GuiTab.au3> #include <GuiEdit.au3> #include <ScrollBarConstants.au3> Global $Edit1 Opt("GUICloseOnESC", 0) Func _mainGui() $mainFrm = GUICreate('Test Win', 666, 630, -1, -1, BitOR($GUI_SS_DEFAULT_GUI,$WS_MAXIMIZEBOX,$WS_SIZEBOX,$WS_THICKFRAME,$WS_TABSTOP),$WS_EX_ACCEPTFILES) GUISetFont(10, 400, 0, "Tahoma") $tabs = GUICtrlCreateTab(8, 8, 651, 537) GUICtrlSetResizing(-1, $GUI_DOCKAUTO+$GUI_DOCKLEFT+$GUI_DOCKRIGHT+$GUI_DOCKTOP+$GUI_DOCKBOTTOM) GUICtrlSetState(-1,$GUI_DROPACCEPTED) $editorTab = GUICtrlCreateTabItem("Editor") GUICtrlSetState(-1, $GUI_FOCUS) $sizeDb = GUICtrlCreateCombo("", 16, 37, 217, 25, BitOR($CBS_DROPDOWNLIST, $WS_VSCROLL)) GUICtrlSetData(-1,'8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40','10') GUICtrlSetFont(-1, 9, 400, 0, "Tahoma") GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Exit EndFunc Func _exit() Exit EndFunc _mainGui() Edited December 28, 2013 by leomoon Link to comment Share on other sites More sharing options...
trancexx Posted December 28, 2013 Share Posted December 28, 2013 Where did you get 3.3.10.1 from? ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
amin84 Posted December 28, 2013 Author Share Posted December 28, 2013 Sorry. 3.3.10.0. Not 3.3.10.1 Link to comment Share on other sites More sharing options...
guinness Posted December 28, 2013 Share Posted December 28, 2013 v3.3.10.1 is now available, so is that issue present in that release. UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _BinaryBin() • _CheckMsgBox() • _CmdLineRaw() • _ContextMenu() • _ConvertLHWebColor()/_ConvertSHWebColor() • _DesktopDimensions() • _DisplayPassword() • _DotNet_Load()/_DotNet_Unload() • _Fibonacci() • _FileCompare() • _FileCompareContents() • _FileNameByHandle() • _FilePrefix/SRE() • _FindInFile() • _GetBackgroundColor()/_SetBackgroundColor() • _GetConrolID() • _GetCtrlClass() • _GetDirectoryFormat() • _GetDriveMediaType() • _GetFilename()/_GetFilenameExt() • _GetHardwareID() • _GetIP() • _GetIP_Country() • _GetOSLanguage() • _GetSavedSource() • _GetStringSize() • _GetSystemPaths() • _GetURLImage() • _GIFImage() • _GoogleWeather() • _GUICtrlCreateGroup() • _GUICtrlListBox_CreateArray() • _GUICtrlListView_CreateArray() • _GUICtrlListView_SaveCSV() • _GUICtrlListView_SaveHTML() • _GUICtrlListView_SaveTxt() • _GUICtrlListView_SaveXML() • _GUICtrlMenu_Recent() • _GUICtrlMenu_SetItemImage() • _GUICtrlTreeView_CreateArray() • _GUIDisable() • _GUIImageList_SetIconFromHandle() • _GUIRegisterMsg() • _GUISetIcon() • _Icon_Clear()/_Icon_Set() • _IdleTime() • _InetGet() • _InetGetGUI() • _InetGetProgress() • _IPDetails() • _IsFileOlder() • _IsGUID() • _IsHex() • _IsPalindrome() • _IsRegKey() • _IsStringRegExp() • _IsSystemDrive() • _IsUPX() • _IsValidType() • _IsWebColor() • _Language() • _Log() • _MicrosoftInternetConnectivity() • _MSDNDataType() • _PathFull/GetRelative/Split() • _PathSplitEx() • _PrintFromArray() • _ProgressSetMarquee() • _ReDim() • _RockPaperScissors()/_RockPaperScissorsLizardSpock() • _ScrollingCredits • _SelfDelete() • _SelfRename() • _SelfUpdate() • _SendTo() • _ShellAll() • _ShellFile() • _ShellFolder() • _SingletonHWID() • _SingletonPID() • _Startup() • _StringCompact() • _StringIsValid() • _StringRegExpMetaCharacters() • _StringReplaceWholeWord() • _StringStripChars() • _Temperature() • _TrialPeriod() • _UKToUSDate()/_USToUKDate() • _WinAPI_Create_CTL_CODE() • _WinAPI_CreateGUID() • _WMIDateStringToDate()/_DateToWMIDateString() • Au3 script parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018 Link to comment Share on other sites More sharing options...
Zedna Posted December 29, 2013 Share Posted December 29, 2013 Just for the info: This bug is also in my 3.2.12.1 on WinXP. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Zedna Posted December 29, 2013 Share Posted December 29, 2013 v3.3.10.1 is now available, so is that issue present in that release. Yes. The same behaviour is also with latest release 3.3.10.1 Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
amin84 Posted December 30, 2013 Author Share Posted December 30, 2013 Good that people can replicate it. To fix this temporary, use "GUICtrlSetFont" for every control instead of using just one "GUISetFont". It will make your code longer but at least it won't have this problem in XP. Link to comment Share on other sites More sharing options...
MHz Posted December 30, 2013 Share Posted December 30, 2013 The height parameter seems a bit small. IIRC, the combo height is the sum of the edit height and the drop down list height. I would have set it to Gui height minus top of combo which would result to 593. What the minimize and restore is perhaps doing is refreshing the control and making it comply with the height parameter in which 25 is not large enough. 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