PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 2024 → [5.5] No Control can gain focus error
[5.5] No Control can gain focus error
Started by alster, Jul., 27 2003 6:57 AM - 1 reply
Posted on July, 27 2003 - 6:57 AM
G'day All
Occassionally one of my forms that had been working ok till I added extra controls to it, gets the following error
"No control for window can gain focus
Your window should have a least one input control, TabStop button or non empty table.
(PDI00185)
The control name is generally a button control and only happens on a window with a tab panel when you click on the tabs without editing enabled. I can fix it by including the named control in the tab management but I am curious as to what is going on.
Anyone have any clues ?
Regards
Al
Posted on July, 27 2003 - 1:03 PM
Hi, the tab-panel can't have the focus, so if you click a tab, windev wants to set the focus on one of the items on the selected tab. if none of the items can't have the focus, then windev has a problem.;-)
you can place a button on the tab to give the focus too, or when tab-without-foucus-options is selected, set the focus by programing to an item outside the tab.

G'day All
Occassionally one of my forms that had been working ok till I added extra controls to it, gets the following error
"No control for window can gain focus
Your window should have a least one input control, TabStop button or non empty table.
(PDI00185)
The control name is generally a button control and only happens on a window with a tab panel when you click on the tabs without editing enabled. I can fix it by including the named control in the tab management but I am curious as to what is going on.
Anyone have any clues ?
Regards
Al