Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

Autoit-gui 101.18 Available


  • Please log in to reply
104 replies to this topic

#1 jpm

jpm

    a Real GUI/debug lover

  • Developers
  • 9,749 posts

Posted 18 April 2004 - 09:50 PM

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 :D







#2 Jon

Jon

    Up all night to get lucky

  • Administrators
  • 10,630 posts

Posted 18 April 2004 - 09:55 PM

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 :D

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.

#3 jpm

jpm

    a Real GUI/debug lover

  • Developers
  • 9,749 posts

Posted 18 April 2004 - 10:04 PM

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  :D

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 :huh2:

#4 CyberSlug

CyberSlug

    Overwhelmed with work....

  • MVPs
  • 3,587 posts

Posted 18 April 2004 - 11:03 PM

YEA! The memory leaks are fixed :D And thanks for increasing the GuiRead/Write max to 65535

But I still have the problem of "Highlight of Combo control during resizing" :huh2:

Edited by CyberSlug, 18 April 2004 - 11:03 PM.

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

#5 Valik

Valik

    Former developer.

  • Active Members
  • PipPipPipPipPipPip
  • 18,879 posts

Posted 19 April 2004 - 01:39 AM

Why is there a limit on GuiRead/Write at all? Why not just allocate the memory at run-time?

#6 CyberSlug

CyberSlug

    Overwhelmed with work....

  • MVPs
  • 3,587 posts

Posted 19 April 2004 - 05:22 AM

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 :D

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:
Plain Text         
; 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!

#7 jpm

jpm

    a Real GUI/debug lover

  • Developers
  • 9,749 posts

Posted 19 April 2004 - 06:26 AM

YEA!  The memory leaks are fixed :D  And thanks for increasing the GuiRead/Write max to 65535

But I still have the problem of "Highlight of Combo control during resizing"  :huh2:

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? :)

#8 jpm

jpm

    a Real GUI/debug lover

  • Developers
  • 9,749 posts

Posted 19 April 2004 - 06:31 AM

Why is there a limit on GuiRead/Write at all?  Why not just allocate the memory at run-time?

lasy approach :D Sometime difficult what the size have to be.
I have double the other AutoIt limit
#define AUT_WINTEXTBUFFER 32767

#9 CyberSlug

CyberSlug

    Overwhelmed with work....

  • MVPs
  • 3,587 posts

Posted 19 April 2004 - 06:43 AM

THe following code for hightlight is working ...
Can you post a bad example? :D

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 by CyberSlug, 19 April 2004 - 06:59 AM.

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

#10 jpm

jpm

    a Real GUI/debug lover

  • Developers
  • 9,749 posts

Posted 19 April 2004 - 07:07 AM

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

Now I hope I can solve it :D

#11 Holger

Holger

    AutoIt Spammer

  • Developers
  • 1,384 posts

Posted 19 April 2004 - 09:14 AM

@jpm: thanks a lot for solving the gdi-resource-problem :D

#12 Valik

Valik

    Former developer.

  • Active Members
  • PipPipPipPipPipPip
  • 18,879 posts

Posted 19 April 2004 - 02:25 PM

lasy approach :D  Sometime difficult what the size have to be.
I have double the other AutoIt limit
#define AUT_WINTEXTBUFFER  32767

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 = "";


#13 jpm

jpm

    a Real GUI/debug lover

  • Developers
  • 9,749 posts

Posted 19 April 2004 - 03:04 PM

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 :D

#14 jpm

jpm

    a Real GUI/debug lover

  • Developers
  • 9,749 posts

Posted 19 April 2004 - 05:07 PM

upload a 102.18A to correct
  • Fixed : Drag&Drop on tab control. (Thanks CyberSlug)
  • Changed: GuiRead no limits size. (Thanks Valik)
  • Fixed : again Highlight of Combo control during resizing. (Thanks CyberSlug).
:D

#15 Holger

Holger

    AutoIt Spammer

  • Developers
  • 1,384 posts

Posted 19 April 2004 - 06:14 PM

@jpm: thanks :huh2: 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! :D

Edited by Holger, 19 April 2004 - 07:09 PM.


#16 CyberSlug

CyberSlug

    Overwhelmed with work....

  • MVPs
  • 3,587 posts

Posted 19 April 2004 - 07:11 PM

Tab Controls work great! :D

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!

#17 jpm

jpm

    a Real GUI/debug lover

  • Developers
  • 9,749 posts

Posted 19 April 2004 - 08:23 PM

Tab Controls work great! :huh2:

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 :D
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 by jpm, 19 April 2004 - 08:27 PM.


#18 jpm

jpm

    a Real GUI/debug lover

  • Developers
  • 9,749 posts

Posted 19 April 2004 - 08:38 PM

@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!  :huh2:

Done :D

#19 CyberSlug

CyberSlug

    Overwhelmed with work....

  • MVPs
  • 3,587 posts

Posted 19 April 2004 - 08:41 PM

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 :D

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!

#20 Holger

Holger

    AutoIt Spammer

  • Developers
  • 1,384 posts

Posted 19 April 2004 - 08:52 PM

@jpm: where? :D there's still the 'old' version...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users