Mike Lucek wrote:
Focus is not the issue. It is what the user requires. They said they want
the appearance to be similar to the Winzip extract window which does not
show focus on checkboxes or radio buttons.

Have they tried using the keyboard to navigate Winzip lately? The focus rectanges do appear.

Actually I dropped a checkbox and
a radiobutton in visual studio and ran it, the controls don't show focus
when clicking on them, however in Delphi, these controls show focus.

Override your form's CreateWnd method and add this line:

SendMessage(Handle, wm_ChangeUIState, uis_Initialize, 0);

See MSDN for details on that message.

I think the UI state of a program is inherited, to some degree, from the program that started it. If I start my test program by pressing F9, then the focus indicator is present. If I start it by pressing the "play" button on the tool bar, then the focus indicator is invisible. Likewise, if I start the program by double-clicking it in Windows Explorer, the focus is hidden, but if I start it by selecting it and pressing Enter, the indicator is there.

--
Rob

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to