Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Shell.getFocusControl

Hi Thomas,

The preferred way is to hook shell Activate event and set the desired focus at activation time. Until the shell is active, just save the pending focus control reference somewhere.

Focus control of an inactive shell is not a system level concept, it's something that SWT does manually (see Decorations.savedFocus). Maybe that's why there's no public API.

Best regards,
Nikita Nemkin

Back to the top