Jump to content

Custom Control Listbox


Guest Khill
 Share

Recommended Posts

Guest Khill

Hello,

For my first post let me first say I am very impressed with the application and it's capabilities. I found the help file very well laid out with good examples and direction.

My problem is in dealing with an application that appears to have custom controls that look and behave like listboxes and comboxes. I can navigate in the window to the controls with tabs and in them with Up and Down movements. However I can't determine the list contents with either the ControlCommand or ControlListView functions.

I'm currently running v3.1.1.

My sample script is;

$L1 = ControlListView( $WinName , "", "ListBox1", "GetText")

$L2 = ControlListView( $WinName , "", 18 , "GetText")

$L3 = ControlCommand( $WinName, "", "ListBox1", "GetSelected", "")

$L4 = ControlCommand( $WinName, "", 18, "GetSelected", "")

$C1 = ControlListView( $WinName , "", "ComboBox4", "GetText")

$C2 = ControlListView( $WinName , "", 37 , "GetText")

$C3 = ControlCommand( $WinName, "", "ComboBox4", "GetSelected", "")

$C4 = ControlCommand( $WinName, "", 37, "GetSelected", "")

MsgBox(0, "Results" , _

"ListBox1 ControlListView - ListBox1: " & $L1 & @CR & _

"ListBox1 ControlListView - 18: " & $L2 & @CR & _

"ListBox1 ControlCommand - ListBox1: " & $L3 & @CR & _

"ListBox1 ControlCommand - 18: " & $L4 & @CR & _

"ComboBox1 ControlListView - ComboBox4: " & $C1 & @CR & _

"ComboBox1 ControlListView - 37: " & $C2 & @CR & _

"ComboBox1 ControlCommand - ComboBox4: " & $C3 & @CR & _

"ComboBox1 ControlCommand - 37: " & $C4)

And the results returned are;

ListBox1 ControlListView - ListBox1:

ListBox1 ControlListView - 18:

ListBox1 ControlCommand - ListBox1: 1

ListBox1 ControlCommand - 18: 1

ComboBox4 ControlListView - ComboBox4:

ComboBox4 ControlListView - 37:

ComboBox4 ControlCommand - ComboBox4: 1

ComboBox4 ControlCommand - 37: 1

I have also attached a snapshot of the two controls for reference.

Any help or direction that you can provide would be appreciated!

Thanks,

John

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...