Jump to content
Sign in to follow this  
Tarun

ListBox Problem

Recommended Posts

Tarun

Hi,

I have a ListBox in window and dynamically load a grid into that ListBox. This grid contents a systreeview and checkboxes with four columns. Now I want to get systreeview text and checkboxes control from ListBox's grid. Pls help me how to get these contents from ListBox.

Please also provide the code if possible.

thanks in advance. pls reply as soon as possible.

Thanks

Share this post


Link to post
Share on other sites
Melba23

Tarun,

First, welcome to the AutoIt forums.

When you post here it always helps if you show us some code that reproduces the problem you are having. Having some code to work on is a great help - it saves us having to write something from scratch - and no-one here is too keen to help the "code it for me" brigade.

Over to you.

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Tarun

Tarun,

First, welcome to the AutoIt forums.

When you post here it always helps if you show us some code that reproduces the problem you are having. Having some code to work on is a great help - it saves us having to write something from scratch - and no-one here is too keen to help the "code it for me" brigade.

Over to you.

M23

Hi

Thanks for reply

Actually my problem is that I have a Multicolumn ListBox and i want to get data from fourth column value of a specified index item. Pls help me.

Thanks in advance.

Thanks

Share this post


Link to post
Share on other sites
Melba23

Tarun,

So as I said before: Post what you have coded to get to where you are.

No-one wants to spend their time writing code from scratch to get "a ListBox in window and dynamically load a grid into that ListBox. This grid contents a systreeview and checkboxes with four columns" from scratch when you have already done it!

Posting code will almost always get you an answer faster for this very reason.

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Tarun

Tarun,

So as I said before: Post what you have coded to get to where you are.

No-one wants to spend their time writing code from scratch to get "a ListBox in window and dynamically load a grid into that ListBox. This grid contents a systreeview and checkboxes with four columns" from scratch when you have already done it!

Posting code will almost always get you an answer faster for this very reason.

M23

Hi

Thanks for reply.

Actually I have an application that created in visual c# and the listbox is created in this application. Now I am writing a test script with autoit to test that whether the checkboxes are checked or not in the listbox when the application is in running state. The checkboxes are shown in the forth column of listbox.

In test script I already get the listbox handle but I couldn't get the checkboxes from listbox. So pls help me how can i get the checkboxes from listbox.

$hListBox = ControlGetHandle("MyApplication", "", "[CLASS:WindowsForms10.LISTBOX.app.0.23beec7; INSTANCE:1]")

here i am getting the handler of listbox and it is working. when i call the _GUICtrlListBox_GetText function it gives me the first column value of particular index.

I want to get the checkboxes and test that whether they are checked or not.

I hope now u understood my problem.

Thanks in advance.

Thanks

Share this post


Link to post
Share on other sites
Melba23

Tarun,

Why did you not explain all that at the beginning? Then we would not have wasted so much time. This is an AutoIt forum and if you not not specify otherwise it is normal to assume that your code is in that language.

If you search for "listbox+colums" (as I just have!) you will find that one of Developers has explained that multiple column listboxes are not supported by GuiListBox.au3, so I do not believe that there is a way of doing this is AutoIt.

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Tarun

Tarun,

Why did you not explain all that at the beginning? Then we would not have wasted so much time. This is an AutoIt forum and if you not not specify otherwise it is normal to assume that your code is in that language.

If you search for "listbox+colums" (as I just have!) you will find that one of Developers has explained that multiple column listboxes are not supported by GuiListBox.au3, so I do not believe that there is a way of doing this is AutoIt.

M23

Hi

Thanks for reply and sorry for taking up your time.

Tarun

Share this post


Link to post
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
Sign in to follow this  

×