Jump to content

Recommended Posts

Posted (edited)

hello guys, please i need your help
am trying to work with CreateWindowEx api, i created the window with it controls, also i setup the call back function
i'am using WinMSGLoop to focus with the keyboard.
here i have a problem, i hope that you can help me.
on the controls i used the UDF that comme with the autoit, such as _GUIButton_Create, _GUIListBox_Create....
but i can't find a STATIC control UDF, for that i used this

local $h_ssrvlbl = _WinAPI_CreateWindowEx(0, "STATIC", "الخادم", BitOr($WS_VISIBLE, $WS_CHILD, $WS_CLIPSIBLINGS, $WS_CLIPCHILDREN), 250, 10, 100, 20, $hWnd)


as you can see here, there is an arabic text, so here is the problem, the arabic text isn't show normally, what is the problem here?
also i have  an other question about keyboard focus, when i used WinMSGLoop, it worked, but if i press alt+tab to switch windows or focus an other window and return back to my window, the focus of control is kill.
can any one help me to solve that please?
my code will be as file here with the include files

i hope can any one help me here
thanks in advance

 

speed Test win.zip

Edited by nacerbaaziz
Posted

hello again, i solved the problem with the label now, the problem was with the unicode on my PC.

now the only problem is with the focus, i hope some one help with that

Posted

can any one help please?

am waiting to share my app.

i need just the focus

if i select a control in the window, and i pressed alt tab to move to an other window, when i return back to the main window i always find the focus control changed

Posted

now i have only one problem, it's the focus problem, when i leave the window and return bac to it i find the focused control changed and ControlGetFocus give me  no value

i hope any one can help

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...