It doesn't matter if it focused or not, I'm talking if it has focus rectangle or not:
For example button definition without focus rectangle:
Prototype:
D4D_DECLARE_BUTTON(name, text, x, y, cx, cy, flags, pbmpN, pbmpF, pScheme, fontId, pUser, onclick, pOnUsrMsg)
Used:
D4D_DECLARE_BUTTON(my_button, "My Button", 10, 10, 100, 50, (D4D_OBJECT_F_VISIBLE | D4D_OBJECT_F_ENABLED | D4D_OBJECT_F_TABSTOP | D4D_OBJECT_F_TOUCHENABLE), NULL, NULL, NULL, MY_FONT, NULL, MyOnCLickFunction, NULL)
Best regards
Gargy