What I don't understand is that it seems to be so complicated to change the color of something.
Suppose that you need to change whether the edit control is enabled or disabled it is simple a matter of:
And that actually changes the color!
My program is 64-bit only I cannot your code to work jj2007.
I am trying to work around the color problem with enabling and disabling edit control, since disabling an edit control will color it grey without the usual complications.
Is there a way to detect a click on a certain edit control or do I write code that calculates at which edit control the mouse cursor is?
Code: Select all
dim as hwnd window_main, edit_data(20,10),button_getdata
dim as msg msg
dim as integer i,j,k,x,y
dim as double timer1
for i=0 to 20
for j=0 to 10
edit_data(i,j)=editbox_new(25+j*39,25+i*19,40,20,chr(k),es_center or ws_tabstop,window_main)
if timer-timer1>0.1 then
if iswindowenabled(edit_data(i,j)) then
loop until window_event_close(window_main, msg)