View previous topic :: View next topic |
Author |
Message |
Razi Expert Cheater Reputation: 1
Joined: 17 Jan 2018 Posts: 202
|
Posted: Fri Aug 10, 2018 3:30 pm Post subject: Is it possible to write value in address with the listview? |
|
|
Is it possible to write value in the address with the listview? A form was created in the CE designer with listview. Listview was created with two columns and with the viewstyle property: vsReport. For example, reading from an address in listview is done like this:
Code: | local items = UDF1.CEListView1.Items
items.Clear()
local valuetable = {[0x00] = 'MP Plus'
,[0x01] = 'HP Plus'
,[0x02] = 'Speed Plus'
,[0x03] = 'Magic Plus'
,[0xFF] = 'NONE'
}
for x = 1, 30 do
local offset = x*4-4
local valueS = readBytes(0x009E8D4C+offset)
local item = items.Add()
item.Caption = valuetable[valueS]
item.SubItems.text = bAnd(0xFFFFFF, readInteger(0x009E8D4D+offset))
end |
But, I can not even select the second column in listview. Can not select because it's SubItem? Maybe there is a tutorial on how to write the value to the address from different columns or cells? I did not find one. Found only how to read from the address in listview.
For example: In the second column, in the fifth row, there is a number(value) in this cell and we need to change it using listview and write the changed number(value) to the address. How to do this?
|
|
Back to top |
|
|
FreeER Grandmaster Cheater Supreme Reputation: 53
Joined: 09 Aug 2013 Posts: 1091
|
Posted: Thu Aug 16, 2018 5:31 am Post subject: |
|
|
I tested it myself in CE and found the same, that i couldn't graphically edit a second column. If you only need to edit 1 then you can just put the value in the first column...I know that CE is built in Lazarus and the forms come from that but googling really didn't seem to give me an answer (other than doing it purely with code which I imagine could be done in CE with lua as well, detect double click and popup your own inputQuery or something and set the value).
Perhaps someone else has another answer.
_________________
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25295 Location: The netherlands
|
Posted: Thu Aug 16, 2018 1:27 pm Post subject: |
|
|
you need to spawn a editbox at the position of the column you click that disapears on focus loss
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
|