Jump to content

GUI Listview Problems


Recommended Posts

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

Link to comment
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?

Link to comment
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.

Link to comment
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

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...