bitmap changed from user - RESOLVED !!!
Posted: Tue Mar 08, 2011 11:29 pm
I insert a bmp into a dialog
but this bmp must be change when the user select an type of product
I wish that the bitmaps I draw on this picture go on the control of the dialog

local aItems := {"Camera" ,;
"Proiettore" ,;
"Scanner" ,;
"Server" ,;
"Registratore" ,;
"Tv" ,;
"Videocamera" }
when I close the window with small browse I save arrays
if lOK
aControl[20]:= AScan( aItems, Trim( HW->type ))
endif
HW->type is string $ one of the aItems
acontrol[0] must be a number
I want it return me a number
on the dialog main ( see the picture)
I made another array with the list of the bitmaps
Local oggettoBmp:= { 'HARD_01' ,;
'HARD_02' ,;
'HARD_03' ,;
'HARD_04' ,;
'HARD_05' ,;
'HARD_06' ,;
'HARD_07' ,;
'HARD_08' ,;
'HARD_09' ,;
'HARD_10' ,;
'HARD_11' ,;
'HARD_12' ,;
'HARD_13' ,;
'HARD_14' ,;
'HARD_15' ,;
'HARD_16' ,;
'HARD_17' ,;
'HARD_18' ,;
'HARD_19' ,;
'HARD_20' ,;
'HARD_21' }
and on the dialog I insert this command
@ 0, 2 BITMAP aGet[20] RESOURCE oggettoBmp[aGet[20] ] NOBORDER PIXEL OF oDlg SIZE 20,20 UPDATE
perhaps my reason is right but the code is wrong
Can You help me pls
but this bmp must be change when the user select an type of product
I wish that the bitmaps I draw on this picture go on the control of the dialog

local aItems := {"Camera" ,;
"Proiettore" ,;
"Scanner" ,;
"Server" ,;
"Registratore" ,;
"Tv" ,;
"Videocamera" }
when I close the window with small browse I save arrays
if lOK
aControl[20]:= AScan( aItems, Trim( HW->type ))
endif
HW->type is string $ one of the aItems
acontrol[0] must be a number
I want it return me a number
on the dialog main ( see the picture)
I made another array with the list of the bitmaps
Local oggettoBmp:= { 'HARD_01' ,;
'HARD_02' ,;
'HARD_03' ,;
'HARD_04' ,;
'HARD_05' ,;
'HARD_06' ,;
'HARD_07' ,;
'HARD_08' ,;
'HARD_09' ,;
'HARD_10' ,;
'HARD_11' ,;
'HARD_12' ,;
'HARD_13' ,;
'HARD_14' ,;
'HARD_15' ,;
'HARD_16' ,;
'HARD_17' ,;
'HARD_18' ,;
'HARD_19' ,;
'HARD_20' ,;
'HARD_21' }
and on the dialog I insert this command
@ 0, 2 BITMAP aGet[20] RESOURCE oggettoBmp[aGet[20] ] NOBORDER PIXEL OF oDlg SIZE 20,20 UPDATE
perhaps my reason is right but the code is wrong
Can You help me pls