jpm Posted April 18, 2004 Share Posted April 18, 2004 Time for fixes only ... Fixed : GuiSetControlData with item length greater than 255 now max 4096.Fixed : GuiSetControlEx repaint control when modified.Added : GuiSetControlEx($tabitem,$GUI_SHOW) will set the first tab to display (for Josbe).Fixed : Highlight of Combo control during resizing. (Thanks CyberSlug).Fixed : GuiCreate/GuiSetControl Doc for Drag&Drop on "input" control. (Thanks Kot)Fixed : White background of label on tab control. I hope (Thanks Kot)Fixed : GDI leaks after hour of run. (Thanks Holger)Added : GuiSetControlEx($nInput, $GUI_ACCEPTFILES)Changed : GuiRead, GuiWrite work with 65535 string length.download as usual from http://www.hiddensoft.com/fileman/users/jpm/AutoIt3-gui/Happy testing Link to comment Share on other sites More sharing options...
Administrators Jon Posted April 18, 2004 Administrators Share Posted April 18, 2004 Is there a version of this I can apply to the unstable source files? I've not touched them in weeks due to fairly all-consuming personal problems Light at the end of the tunnel now though so I will be adding any GUI stuff you send me and some changes from Valik and David too. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
jpm Posted April 18, 2004 Author Share Posted April 18, 2004 Is there a version of this I can apply to the unstable source files? I've not touched them in weeks due to fairly all-consuming personal problems Light at the end of the tunnel now though so I will be adding any GUI stuff you send me and some changes from Valik and David too.I hope your personal problems are really over.I clean the code and I send you Link to comment Share on other sites More sharing options...
CyberSlug Posted April 18, 2004 Share Posted April 18, 2004 (edited) YEA! The memory leaks are fixed And thanks for increasing the GuiRead/Write max to 65535 But I still have the problem of "Highlight of Combo control during resizing" Edited April 18, 2004 by CyberSlug Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Valik Posted April 19, 2004 Share Posted April 19, 2004 Why is there a limit on GuiRead/Write at all? Why not just allocate the memory at run-time? Link to comment Share on other sites More sharing options...
CyberSlug Posted April 19, 2004 Share Posted April 19, 2004 jpm, I looked at GUIAcceptfiles.au3 (and your other examples), but I am having a problem. I cannot make a control inside a tab control accept files 1) If you call GuiSetControlEx(...) on any control inside a tab, then display problems can result!!! For example, new tabs could appear empty! 2) It seems that you cannot set the $WS_EX_ACCEPTFILES or $GUI_ACCEPTFILES style on a tab control. Look especially at lines commented with *** in the following code: expandcollapse popup; Based upon your post <www.hiddensoft.com/forum/index.php?showtopic=2090> ; Tab control messages Global $TCM_SETCURFOCUS = 0x1330 Global $TCM_SETCURSEL = 0x130C Global $WS_EX_ACCEPTFILES = 0x0018 Global $GUI_ACCEPTFILES = 8 Opt("GUINotifyMode", 1) $count = -1 GuiCreate("TitleFoo", 500, 400, 100, 100, -1, $WS_EX_ACCEPTFILES) WinActivate("TitleFoo") $Add = GUISetControl("button", "New tab", 300, 300) $drop = GUISetControl("edit", "This drop works...", 350, 50, 100, 100) GuiSetControlEx($drop, $GUI_ACCEPTFILES) $tab = GUISetControl("tab", "", 0, 0, 300, 300) GuiSetControlEx($tab, $GUI_ACCEPTFILES);;;or should that be WS_EX_;*** AddTab() GuiShow() While 1 sleep(100) $msg = GuiMsg(0) If $count >= 50 Then GuiWrite($Add, 128);disable the button Select Case -3 = $msg Exit Case $Add = $msg AddTab() EndSelect WEnd Exit Func AddTab() GuiSendMsg($tab, $TCM_SETCURSEL, $count, 0) $count = $count + 1 ; Create new tab with Edit box that *should* accept files... Local $tabH = GUISetControl("tabitem", $count, 0, 0) GuiSetControlEx($tabH, $WS_EX_ACCEPTFILES);*** Local $editH = GUISetControl("edit","Edit on tab #" & $count, 40,40,150,150) GuiSetControlEx($editH, $GUI_ACCEPTFILES);*** breaks new tabs GUISetControl("tabitem", "", 0, 0); close tab definition GuiSendMsg($tab, $TCM_SETCURFOCUS, $count, 0) EndFunc Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
jpm Posted April 19, 2004 Author Share Posted April 19, 2004 YEA! The memory leaks are fixed And thanks for increasing the GuiRead/Write max to 65535 But I still have the problem of "Highlight of Combo control during resizing" THe following code for hightlight is working ; Resizable window style borrowed from Windows Notepad GUICreate("title", 400, 400, 50, 10, 0x04CF0000) $combo = GUISetControl ( "combo", "", 0, 0) GUISetControlData( $combo, "one|two|three", "one") $edit = GUISetControl ( "edit", "Resize the Window", 30, 30) GUISetControlEx ($edit, 256);control has focus GUIWaitClose() Can you post a bad example? Link to comment Share on other sites More sharing options...
jpm Posted April 19, 2004 Author Share Posted April 19, 2004 Why is there a limit on GuiRead/Write at all? Why not just allocate the memory at run-time?lasy approach Sometime difficult what the size have to be.I have double the other AutoIt limit #define AUT_WINTEXTBUFFER 32767 Link to comment Share on other sites More sharing options...
CyberSlug Posted April 19, 2004 Share Posted April 19, 2004 (edited) THe following code for hightlight is working ... Can you post a bad example? I get the problem in AutoPad. Edit: Well, I found something, and found another problem... Prob #1: Click the program's taskbar icon 3 times, then resize the window. Prob #2: Click the maximize button twice. The combo box loses it's border and arrow. Opt("GuiNotifyMode",1) ; Resizable window style borrowed from Windows Notepad GUICreate("title", 400, 400, 50, 10, 0x04CF0000) $combo = GUISetControl ( "combo", "", 0, 0) GUISetControlData( $combo, "one|two|three", "one") GUISetControlEx($combo, 0, 768+32+4) $edit = GUISetControl ( "edit", "Resize the Window", 30, 30) GUISetControlEx ($edit, 256);control has focus GUIShow() While 1 sleep(100) If GUIMsg(0) = -3 Then Exit WEnd Edited April 19, 2004 by CyberSlug Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
jpm Posted April 19, 2004 Author Share Posted April 19, 2004 I get the problem in AutoPad. Edit: Well, I found something, and found another problem... Prob #1: Click the program's taskbar icon 3 times, then resize the window. Prob #2: Click the maximize button twice. The combo box loses it's border and arrow. Opt("GuiNotifyMode",1) ; Resizable window style borrowed from Windows Notepad GUICreate("title", 400, 400, 50, 10, 0x04CF0000) $combo = GUISetControl ( "combo", "", 0, 0) GUISetControlData( $combo, "one|two|three", "one") GUISetControlEx($combo, 0, 768+32+4) $edit = GUISetControl ( "edit", "Resize the Window", 30, 30) GUISetControlEx ($edit, 256);control has focus GUIShow() While 1 sleep(100) If GUIMsg(0) = -3 Then Exit WEndNow I hope I can solve it Link to comment Share on other sites More sharing options...
Holger Posted April 19, 2004 Share Posted April 19, 2004 @jpm: thanks a lot for solving the gdi-resource-problem Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView Link to comment Share on other sites More sharing options...
Valik Posted April 19, 2004 Share Posted April 19, 2004 lasy approach Sometime difficult what the size have to be. I have double the other AutoIt limit #define AUT_WINTEXTBUFFER 32767JP, should be easy. In writing, the buffer should come from the variant, so you don't have to worry about memory there, in reading, it could look something like this: char *buffer; uint size; size = SendMessage(hWndControl, WM_GETTEXTLENGTH, 0, 0) if (size) { buffer = new char[size+1]; SendMessage(hWndControl, WM_GETTEXT, (WPARAM)size+1, (LPARAM)buffer) vResult = buffer; delete[] buffer; } else vResult = ""; Link to comment Share on other sites More sharing options...
jpm Posted April 19, 2004 Author Share Posted April 19, 2004 JP, should be easy. In writing, the buffer should come from the variant, so you don't have to worry about memory there, in reading, it could look something like this: char *buffer; uint size; size = SendMessage(hWndControl, WM_GETTEXTLENGTH, 0, 0) if (size) { buffer = new char[size+1]; SendMessage(hWndControl, WM_GETTEXT, (WPARAM)size+1, (LPARAM)buffer) vResult = buffer; delete[] buffer; } else vResult = "";Thanks Valik, I will try to incorporate it Link to comment Share on other sites More sharing options...
jpm Posted April 19, 2004 Author Share Posted April 19, 2004 upload a 102.18A to correctFixed : Drag&Drop on tab control. (Thanks CyberSlug) Changed: GuiRead no limits size. (Thanks Valik) Fixed : again Highlight of Combo control during resizing. (Thanks CyberSlug). Link to comment Share on other sites More sharing options...
Holger Posted April 19, 2004 Share Posted April 19, 2004 (edited) @jpm: thanks please could you upload the Autoitsc.bin too - to compile the scripts or maybe a new zipfile for version 18? Ahhh forgot: your new files still shown version 17! Edited April 19, 2004 by Holger Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView Link to comment Share on other sites More sharing options...
CyberSlug Posted April 19, 2004 Share Posted April 19, 2004 Tab Controls work great! BUT... Combo control is still buggy. - Whenver I resize AutoPad, the combo control always highlights... - In the example posted above, the combo box loses it's border and arrow when you click on the maximize button twice. jpm, I'll look at the source code to see if I can create a patch. Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
jpm Posted April 19, 2004 Author Share Posted April 19, 2004 (edited) Tab Controls work great! BUT... Combo control is still buggy. - Whenver I resize AutoPad, the combo control always highlights... - In the example posted above, the combo box loses it's border and arrow when you click on the maximize button twice. jpm, I'll look at the source code to see if I can create a patch.I cannot reproduce the combo/maximize/resize bug with 102.18A EDITdo you mean if the combo has the focus it loose it when maximize Opt("GuiNotifyMode",1) ; Resizable window style borrowed from Windows Notepad GUICreate("title", 400, 400, 50, 10, 0x04CF0000) $combo = GUISetControl ( "combo", "", 0, 0) GUISetControlData( $combo, "one|two|three", "one") GUISetControlEx($combo, 0, 768+32+4) $edit = GUISetControl ( "edit", "Resize the Window", 30, 30) GUISetControlEx ($edit, 256);control has focus GUIShow() While 1 sleep(100) If GUIMsg(0) = -3 Then Exit WEnd Edited April 19, 2004 by jpm Link to comment Share on other sites More sharing options...
jpm Posted April 19, 2004 Author Share Posted April 19, 2004 @jpm: thanks please could you upload the Autoitsc.bin too - to compile the scripts or maybe a new zipfile for version 18?Ahhh forgot: your new files still shown version 17! Done Link to comment Share on other sites More sharing options...
CyberSlug Posted April 19, 2004 Share Posted April 19, 2004 The main reason I care about the combo box is because your change-log says it is "fixed." Remove the change-log entry and I'll be happy I posted screen shots here. Tested with AutoGUI 102.18A on Windows XP Pro sp1 (but using windows 2000 theme) Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Holger Posted April 19, 2004 Share Posted April 19, 2004 @jpm: where? there's still the 'old' version... Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView 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