Posts: 1,058
Threads: 367
Joined: Oct 2007
02-02-2019, 09:44 AM
(This post was last modified: 02-02-2019, 10:26 AM by ssimop.)
I wonder whether there exists a way to get the class of a control within a dialog procedure. Precisely, I would like to know if the class of a control with a given id number is a SysDateTimePick32 control. Many thanks in advance.
Workaround which it worked :
Function
tempf09
int w=win("Calculate Span in Days" "#32770")
int c=id(3 w)
int j=childtest(c "" "SysDateTimePick32")
out j
Posts: 12,092
Threads: 142
Joined: Dec 2002
02-02-2019, 11:37 AM
(This post was last modified: 02-02-2019, 11:38 AM by Gintaras.)
int j=WinTest(c "SysDateTimePick32")
or
str s
s.getwinclass( c )