I'm working on a cheat list program.
But now I'm kinda stuck.
What it does is pretty simple, and makes it easier for me...
I insert "Cheat Name" into an Edit, and the code(s) into a Memo.
Then click on a button and it goes to a ListBox.
Here's an example:
then when I press the button all goes into a listbox (And for the codes to work I need to put ListBox1.Items.Add('..'+Edit1.Text)).
Now, what I want to do is...
When I doubleclick ..Cheat1 in the ListBox I want ..Cheat1 to be copied into the Edit, and the Digits copied into the memo (For easier editing).
But I have no idea how to make this work...
I had an idea, when you click ..Cheat1 it would search down from ..Cheat1's itemindex and copy everything until it hit another text entry, like.
Not sure how this would work though.
If anyone has any snippets or code I would appreciate it alot.
Just realized how long this got, if you have any questions just post and I'll try to give more info
But now I'm kinda stuck.
What it does is pretty simple, and makes it easier for me...
I insert "Cheat Name" into an Edit, and the code(s) into a Memo.
Then click on a button and it goes to a ListBox.
Here's an example:
Code:
Edit: Cheat1
Memo:
1234
1234
1234
1234
then when I press the button all goes into a listbox (And for the codes to work I need to put ListBox1.Items.Add('..'+Edit1.Text)).
Code:
Listbox after buttonclick:
..Cheat1
1234
1234
1234
1234
Now, what I want to do is...
When I doubleclick ..Cheat1 in the ListBox I want ..Cheat1 to be copied into the Edit, and the Digits copied into the memo (For easier editing).
But I have no idea how to make this work...
I had an idea, when you click ..Cheat1 it would search down from ..Cheat1's itemindex and copy everything until it hit another text entry, like.
Code:
..Cheat1 -> to edit1
1234 -> to Memo
1234 -> to Memo
1234 -> to Memo
1234 -> to Memo
..Cheat2 -> not to be copied unless I doubleclick this entry
2345
2345
2345
Not sure how this would work though.
If anyone has any snippets or code I would appreciate it alot.
Just realized how long this got, if you have any questions just post and I'll try to give more info