Hello!
I need to create a chessboard made by 16x16 pixel icons, 31 rows x 16 colums.
At the beginning, all icon are the same (a red circle) and each icon rapresents the status of an harware swicth (ON or OFF)
Then, I have to change one or more icons per row, depending on the value I will receive on the serial comm.
First question: can I clone (duplicate) one icon or I have to set one by one using the editor?
Second question: how can I swap a red icon into a green icon?
I try the LoadImage function, but I discovered it's not working on NT enviroment.
My idea was somthing like this...
hTempIco = LoadImage(ByVal %Null, ByCopy "green.ico", %IMAGE_ICON, 16, 16, %LR_LOADFROMFILE) ' but this is not working :-(
for nR = 1 to nMaxRow
for nC = 1 to nMaCol
aICO_ID(nR,nC) = DrawIcon(IDC_FORM1_FRAME1, nR, Nc, hTemp)
next
next
And, then, a function that will change the single image.
I know how can I locate the X/Y position of an icon, but I don't know with API function (or somthing else) I can use to do it.
Could you help me, please?
Regards
:oops: sorry for my terrible english!