I am using the following type of code to grey out areas of my main dialog depending on certain criteria.
Code: Select all
//Get Handles
LibFunc>User32,FindWindowA,dlgHwnd,TForm,MEAP Export Settings
LibFunc>User32,FindWindowExA,edit1Hwnd,dlgHwnd,0,TEdit,%deffilename%
LibFunc>User32,FindWindowExA,edit2Hwnd,dlgHwnd,0,TEdit,str:%deftracks%
IF>MEAPDialog.msComboBox1<>Default File Name
//Disable Edit Box
LibFunc>User32,EnableWindow,rEW,edit1Hwnd,0
else
//Enable Edit Box
LibFunc>User32,EnableWindow,rEW,edit1Hwnd,1
endif
IF>MEAPDialog.msCheckBox4=True
//Disable Edit Box
LibFunc>User32,EnableWindow,rEW,edit4Hwnd,1
else
//Enable Edit Box
LibFunc>User32,EnableWindow,rEW,edit4Hwnd,0
endif
My questions:
Will the grey out technique work ACROSS tabs or does the front tab have to be in focus from the start in order for it to work?
If it will work so please share some code tips :-)
At the moment while using two tab books, none of my grey areas work, even the ones on the main tab.
If you need to see some more code I will post more.
Thank you.