Sign in to follow this  
Followers 0
sneakysmith12

GUI Listview Problems

9 posts in this topic

So I want want data to go into different columns like you would with "a|B|c" etc; however, with variables such as $x + "|" + $y... Is this possible?

How?

My attempt, which failed (shortened to key items:

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <GuiListView.au3>

$listview = GUICtrlCreateListView(" X | Y ", 250, 20, 100, 200)

Do

$X = $X + 1
$Y = $Y - 5


Until $msg = $GUI_EVENT_CLOSE

        if $msg = $add Then
            $text = $x + $y
            _GUICtrlListView_AddItem($listview, $text)
        EndIf

Yeah I'm not the greatest at DarkBasic either, but I'm good enough for a link :D A Thread of a W.I.P. that im making

Share this post


Link to post
Share on other sites



Look at "&" under Operators in the help file.

:mellow:

Works great! Just now the cell value is "X | Y" in the X column.


Yeah I'm not the greatest at DarkBasic either, but I'm good enough for a link :D A Thread of a W.I.P. that im making

Share this post


Link to post
Share on other sites

Works great! Just now the cell value is "X | Y" in the X column.

I got it to work using the GUICtrlCreateListViewItem command.


Yeah I'm not the greatest at DarkBasic either, but I'm good enough for a link :D A Thread of a W.I.P. that im making

Share this post


Link to post
Share on other sites

Now I'm in the predicament of having all my items with no handle except for the last one.

Is their any way around this?


Yeah I'm not the greatest at DarkBasic either, but I'm good enough for a link :D A Thread of a W.I.P. that im making

Share this post


Link to post
Share on other sites

Now I'm in the predicament of having all my items with no handle except for the last one.

Is their any way around this?

You mean having a Dynamic Listview? and not keeping a variable name for all your items? if not can you elaborate on what you mean?

Share this post


Link to post
Share on other sites

You mean having a Dynamic Listview? and not keeping a variable name for all your items? if not can you elaborate on what you mean?

This is correct.


Yeah I'm not the greatest at DarkBasic either, but I'm good enough for a link :D A Thread of a W.I.P. that im making

Share this post


Link to post
Share on other sites

if you're clicking on the items... GUIOnEventMode and @GUI_CtrlID will help, but otherwise, you can do

_GUICtrl_ListView...

pretty much any of those specifically the GetSel ones.. or GetItemCount.. might help.

Share this post


Link to post
Share on other sites

Ok, so allow me to elaborate.

I'd like to take any value x with time y.

I want to take x and have it use a send key function based on the timer value of y. My instinct was to have a dynamic listview and figure out a way to read the listview from there. Is this correct?

Or, is their an easier way to do this?

I also want entries to be visible in the GUI, and be able to remove entries via a GUI.


Yeah I'm not the greatest at DarkBasic either, but I'm good enough for a link :D A Thread of a W.I.P. that im making

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  
Followers 0