Jump to content

Recommended Posts

Posted (edited)

Something like this may get you started:

$GUI = GUICreate("My GUI list") ; will create a dialog box that when displayed is centered

$mylist = GUICtrlCreateList("buttons that have been clicked", 176, 32, 121, 97)
GUICtrlSetColor (-1, 0xFF0000)
GUICtrlSetData (-1, "Test1")
GUICtrlSetData (-1, "Test2")
GUICtrlSetData (-1, "Test3")
GUICtrlSetData (-1, "Test4")
GUICtrlSetData (-1, "Test5")
GUISetState()

$msg = 0
While $msg <> $GUI_EVENT_CLOSE
$msg = GUIGetMsg()
WEnd
Edited by MKISH

----------------------------------------

:bye: Hey there, was I helpful?

----------------------------------------

My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1

Posted

Tin2tin,

If you wonder why the code fails above it's because you need to include #include <GUIConstants.au3>, just in case you don't check the error or help file.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

Thanks guys. This is a little over my head. I have a _GUICtrlListBox with files, and when they are batch converted I would like to change their color from black to red if the conversion fails on a specific file and maybe green if the file conversion succeeds. Can I do this in a _GUICtrlListBox?

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
  • Recently Browsing   0 members

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