Jump to content



Photo

Gui Management UDFs


  • This topic is locked This topic is locked
23 replies to this topic

Poll: Would want the UDFs to work with non-AutoIt controls? (47 member(s) have cast votes)

Would want the UDFs to work with non-AutoIt controls?

  1. Yes (46 votes [97.87%])

    Percentage of vote: 97.87%

  2. No (1 votes [2.13%])

    Percentage of vote: 2.13%

Vote

#1 GaryFrost

GaryFrost

    I don't need your attitude. I have one of my own

  • Developers
  • 7,854 posts

Posted 13 September 2005 - 01:37 AM

Looking at making the Gui Management UDFs, GuiComb, GuiList, etc... work with non-AutoIt controls, this would require adding a couple of optional params to most if not all functions.

This would take some time but I think it would be worth the work, it would make the Functions a little more versitile.

Gary

SciTE for AutoItDirections for Submitting Standard UDFs

Don't argue with an idiot; people watching may not be able to tell the difference.








#2 quaizywabbit

quaizywabbit

    picked the wrong day to quit sniffin' glue

  • Active Members
  • PipPipPipPipPipPip
  • 494 posts

Posted 13 September 2005 - 02:25 AM

looks like it would require switching over from the Autoit GUICtrlSendMsg() to using the "SendMessage" DllCall using a handle instead of a ControlId. or have the functions accept either one...

LRESULT SendMessage(          HWND hWnd,     UINT Msg,     WPARAM wParam,     LPARAM lParam );

Do more with pre-existing apps!ANYGUIv2.8

#3 GaryFrost

GaryFrost

    I don't need your attitude. I have one of my own

  • Developers
  • 7,854 posts

Posted 13 September 2005 - 03:09 AM

looks like it would require switching over from the Autoit GUICtrlSendMsg() to using the "SendMessage" DllCall using a handle instead of a ControlId. or have the functions accept either one...

LRESULT SendMessage(          HWND hWnd,     UINT Msg,     WPARAM wParam,     LPARAM lParam );

<{POST_SNAPBACK}>

Yep that would be the plan, for example:

Func _GUICtrlComboAddString($h_combobox, $s_text)     Return GUICtrlSendMsg($h_combobox, $CB_ADDSTRING, 0, $s_text) EndFunc  ;==>_GUICtrlComboAddString


would become:

Func _GUICtrlComboAddString($h_combobox, $s_text)     If IsHWnd($h_combobox) Then         Local $a_ret = DllCall("user32.dll", "int", "SendMessage", "hwnd", $h_combobox, "int", $CB_ADDSTRING, "int", 0, "str", $s_text)         Return $a_ret[0]     Else         Return GUICtrlSendMsg($h_combobox, $CB_ADDSTRING, 0, $s_text)     EndIf EndFunc  ;==>_GUICtrlComboAddString


More code involved but it works both ways.

Gary

Edited by gafrost, 13 September 2005 - 03:22 AM.

SciTE for AutoItDirections for Submitting Standard UDFs

Don't argue with an idiot; people watching may not be able to tell the difference.


#4 GaryFrost

GaryFrost

    I don't need your attitude. I have one of my own

  • Developers
  • 7,854 posts

Posted 13 September 2005 - 01:25 PM

Changed how I am changing the functions, most won't need params added

If anyone is interested in helping test the functions here's what I have so far.

feedback/comments welcome.

Gary

Edit: added GuiList
Edit: added GuiMonthCal
Edit: added GuiTab

Edit: Removed Attachments

Edited by gafrost, 02 December 2005 - 02:35 PM.

SciTE for AutoItDirections for Submitting Standard UDFs

Don't argue with an idiot; people watching may not be able to tell the difference.


#5 GaryFrost

GaryFrost

    I don't need your attitude. I have one of my own

  • Developers
  • 7,854 posts

Posted 14 September 2005 - 03:13 PM

Took a little longer but here is the GuiListView

Edited by gafrost, 19 September 2005 - 01:17 AM.

SciTE for AutoItDirections for Submitting Standard UDFs

Don't argue with an idiot; people watching may not be able to tell the difference.


#6 GaryFrost

GaryFrost

    I don't need your attitude. I have one of my own

  • Developers
  • 7,854 posts

Posted 19 September 2005 - 01:19 AM

Possible memory leak and code corrections.

Edit: code correction for Delete all items (GuiListView.au3)


Edit: Removed Attachments

Edited by gafrost, 02 December 2005 - 02:36 PM.

SciTE for AutoItDirections for Submitting Standard UDFs

Don't argue with an idiot; people watching may not be able to tell the difference.


#7 layer

layer

    i love skateboarding

  • Active Members
  • PipPipPipPipPipPip
  • 2,470 posts

Posted 19 September 2005 - 01:54 AM

I wanted to vote yes, but it wouldn't let me.

Great work Garry!!! ;)
FootbaG

#8 Valuater

Valuater

    www.PayFreeWireless.com

  • MVPs
  • 11,078 posts

Posted 25 September 2005 - 06:27 PM

nice stuff....... mr. wizard

8)

Posted Image

Clic The Pic!!!


#9 LxP

LxP

    Real satisfaction in every glass.

  • Active Members
  • PipPipPipPipPipPip
  • 1,621 posts

Posted 01 November 2005 - 10:15 AM

Thanks Gary -- fantastic work! B)

Is there any way to easily select an item in a single-selection list box by index?

Potentially relevant functions offered by GUIList.au3:
  • _GUICtrlListSelItemRange
  • _GUICtrlListSelItemRangeEx
  • _GUICtrlListSetTopIndex
_GUICtrlListSetTopIndex() didn't do the job. _GUICtrlListSelItemRange() and _GUICtrlListSelItemRangeEx() 'DOES NOT WORK WITH SINGLE-SELECTION LIST BOXES'. I can use _GUICtrlListSelectString() but this approach requires reading the string with _GUICtrlListGetText() first, and surely there's a way around that.

Edited by LxP, 01 November 2005 - 11:26 AM.


#10 GaryFrost

GaryFrost

    I don't need your attitude. I have one of my own

  • Developers
  • 7,854 posts

Posted 01 November 2005 - 11:59 AM

Thanks Gary -- fantastic work! B)

Is there any way to easily select an item in a single-selection list box by index?

Potentially relevant functions offered by GUIList.au3:

  • <li>_GUICtrlListSelItemRange
  • _GUICtrlListSelItemRangeEx
  • _GUICtrlListSetTopIndex
_GUICtrlListSetTopIndex() didn't do the job. _GUICtrlListSelItemRange() and _GUICtrlListSelItemRangeEx() 'DOES NOT WORK WITH SINGLE-SELECTION LIST BOXES'. I can use _GUICtrlListSelectString() but this approach requires reading the string with _GUICtrlListGetText() first, and surely there's a way around that.



_GUICtrlListSelectIndex

SciTE for AutoItDirections for Submitting Standard UDFs

Don't argue with an idiot; people watching may not be able to tell the difference.


#11 LxP

LxP

    Real satisfaction in every glass.

  • Active Members
  • PipPipPipPipPipPip
  • 1,621 posts

Posted 01 November 2005 - 12:14 PM

Call me crazy but there doesn't seem to be a _GUICtrlListSelectIndex() in that file...

Edit: I'm using the GUIList.au3 offered via this post.

Edited by LxP, 01 November 2005 - 12:15 PM.


#12 GaryFrost

GaryFrost

    I don't need your attitude. I have one of my own

  • Developers
  • 7,854 posts

Posted 01 November 2005 - 12:26 PM

Call me crazy but there doesn't seem to be a _GUICtrlListSelectIndex() in that file...

Edit: I'm using the GUIList.au3 offered via this post.



Hadn't added that one to this file yet:

Plain Text         
;=============================================================================== ; ; Description:            _GUICtrlListSelectIndex ; Parameter(s):        $h_listbox - controlID ;                            $i_index - Specifies the zero-based index of the list box item ; Requirement:             ; Return Value(s):    If an error occurs, the return value is $LB_ERR. ;                            If the $i_index parameter is –1, the return value is $LB_ERR even though no error occurred. ; User CallTip:        _GUICtrlListSelectIndex($h_listbox, $i_index) Select a string and scroll it into view, if necessary (required: <GuiList.au3>) ; Author(s):            Sokko, Documented and Added To UDFs (Gary Frost (custompcs@charter.net)) ; Note(s):                Use this message only with single-selection list boxes. ;                            You cannot use it to set or remove a selection in a multiple-selection list box. ; ;=============================================================================== Func _GUICtrlListSelectIndex($h_listbox, $i_index)     If IsHWnd($h_listbox) Then         Local $a_ret = DllCall("user32.dll", "int", "SendMessage", "hwnd", $h_listbox, "int", $LB_SETCURSEL, "int", $i_index, "int", 0)         Return $a_ret[0]     Else         Return GUICtrlSendMsg($h_listbox, $LB_SETCURSEL, $i_index, 0)     EndIf EndFunc;==>_GUICtrlListSelectIndex


Updated the include in above post.

Edited by gafrost, 01 November 2005 - 01:01 PM.

SciTE for AutoItDirections for Submitting Standard UDFs

Don't argue with an idiot; people watching may not be able to tell the difference.


#13 LxP

LxP

    Real satisfaction in every glass.

  • Active Members
  • PipPipPipPipPipPip
  • 1,621 posts

Posted 01 November 2005 - 10:52 PM

Thanks Gary!

#14 MikeOsdx

MikeOsdx

    Never trust a Monkey

  • Active Members
  • PipPipPipPipPipPip
  • 543 posts

Posted 29 November 2005 - 07:32 PM

Thank you, Thank you, Thank you, Gafrost

So when are these going to be replacing the UDF's in the Beta release?

Mike
Posted Image

#15 GaryFrost

GaryFrost

    I don't need your attitude. I have one of my own

  • Developers
  • 7,854 posts

Posted 29 November 2005 - 07:41 PM

Thank you, Thank you, Thank you, Gafrost

So when are these going to be replacing the UDF's in the Beta release?

Mike



Been waiting on some treeview stuff, but might be a while.

SciTE for AutoItDirections for Submitting Standard UDFs

Don't argue with an idiot; people watching may not be able to tell the difference.


#16 GaryFrost

GaryFrost

    I don't need your attitude. I have one of my own

  • Developers
  • 7,854 posts

Posted 02 December 2005 - 02:38 PM

Submitted to be Updated in UDF includes:
  • GuiCombo
  • GuiEdit
  • GuiList
  • GuiListView
  • GuiMonthCal
  • GuiTab
Gary

Edited by gafrost, 02 December 2005 - 02:38 PM.

SciTE for AutoItDirections for Submitting Standard UDFs

Don't argue with an idiot; people watching may not be able to tell the difference.


#17 PartyPooper

PartyPooper

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 676 posts

Posted 02 December 2005 - 09:23 PM

Gary, for the newbs like me who don't know which way to vote, can you explain exactly what it is that you are trying to achieve by converting some AutoIt GUI controls so that they can be used with non-AutoIt controls? For a start, what are non-AutoIt controls?

Cheers

#18 GaryFrost

GaryFrost

    I don't need your attitude. I have one of my own

  • Developers
  • 7,854 posts

Posted 02 December 2005 - 10:50 PM

Gary, for the newbs like me who don't know which way to vote, can you explain exactly what it is that you are trying to achieve by converting some AutoIt GUI controls so that they can be used with non-AutoIt controls? For a start, what are non-AutoIt controls?

Cheers



Vote don't matter, it's been done

As to what am trying to accomplish, for users who are trying to manipulate controls outside of an autoit gui script, they now have the udf's to accomplish most of the tasks.

SciTE for AutoItDirections for Submitting Standard UDFs

Don't argue with an idiot; people watching may not be able to tell the difference.


#19 LxP

LxP

    Real satisfaction in every glass.

  • Active Members
  • PipPipPipPipPipPip
  • 1,621 posts

Posted 22 December 2005 - 05:08 AM

Submitted to be Updated in UDF includes:
...

Gary, the GUITreeView UDF library for foreign TreeViews doesn't seem to be included with the latest beta. Where can I obtain a copy of the library in the meantime?

#20 andyswarbs

andyswarbs

    Wayfarer

  • Active Members
  • Pip
  • 57 posts

Posted 20 January 2006 - 11:55 AM

Looking at making the Gui Management UDFs, GuiComb, GuiList, etc... work with non-AutoIt controls, this would require adding a couple of optional params to most if not all functions.

This would take some time but I think it would be worth the work, it would make the Functions a little more versitile.

Gary

It is a shame that we can only edit the first column. $LVS_EDITLABELS ideally should enable editing for all columns and rows.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users