Sign in to follow this  
Followers 0
geth44

ControlGetText return wrong button caption

2 posts in this topic

#1 ·  Posted

Hi,

I got a strong issue with ControlGetText: after changing the caption of a (GUI) button with ControlSetText, I am unable to read back the new caption, ControlGetText always return the initial caption "Start acquisition" (set in GUI creation). I tried ControlGetData, ControlRead, _WinAPI_GetWindowText, _SendMessageA with $WM_GETTEXT ... all return the initial caption while both AutoIt Window Info and Microsoft Spy see the correct changed caption !!!???

>>>> Control <<<<
Class:    Button
Instance:    1
ClassnameNN:    Button1
Name:    
Advanced (Class):    [CLASS:Button; INSTANCE:1]
ID:    3
Text:    Stop acquisition
<<< Ok this the correct caption displayed and changed with ControlSetText
Position:    0, 0
Size:    149, 29

Anyone has an explanation ?

Thanks in advance

geth44

Share this post


Link to post
Share on other sites



#2 ·  Posted

Show your code where you changed the caption and then tried retrieving the new value.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0