Jump to content
Sign in to follow this  
computergroove

I need to make a GUI editor. Noob help please

Recommended Posts

computergroove

I have Koda and I have the buttons and general layout I want and I can add the code for those. There is a load Database, Save Database, Verify Files, Exit. There will be an ini file that looks something like:

[Videos]

12345|Video.mpg

2345|Video2.mpg

My script will read all the mpg filed in a directory into an array

Example:

Video1.mpg

Video2.mpg

Video3.mpg

I want to create a function where I can compare the names of the video file names to the content in the ini file and if there is a video that is a duplicate then it will highlight it in some way (background orange color) to alert the user that there is a duplicate. Also I want to highlight in another color the video files found in the video directory but are not found anywhere in the ini file. So in the above example Video3.mpg would be highlighted in like blue. I want to be able to list all the beginning numbers and next to the numbers in a new column the name of the video file - with a grid outline like excel. I want the user to be able to edit the lines and then when its all done I want them to be able to save it. The grid outline is not mandatory I just want it to be easier to read.

My question is what kind of element do I need to add to my form in Koda in order to be able to do this? I plan on using a 2 dimensional array to read and write data to the form. Is there a good example of something like this available?


Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html

Share this post


Link to post
Share on other sites
Zedna

Post your GUI code ...

I recommend to use ListView control for displaying and hilighting of items

Also look at these functions in the helpfile

GUICtrlCreateListView

GUICtrlCreateListViewItem

FileSelectFolder

_FileReadToArray

_ArraySearch

Edited by Zedna

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  

×