Focus rectangle won't show

new topic     » topic index » view thread      » older message » newer message

This is a repeat of a problem I had in October 2011. Euphoric helped find a work around for my main program by using setIndex and setFocus on a ListView to cause the rectangle to appear. That works somewhat, although I've recently changed that to setting the focus to a TreeView then sending a Down then Up arrow to windows via sendMessage. This seems to work more consistently.

The problem now is that child windows have been added to the program. The focus rectangle will not show in any of them and some only have buttons and radio buttons, no TreeView or ListViews to tweek. One child window has 4 buttons and 12 radio buttons, navigating using the tab key without any indication of which object has focus is near impossible.

I am running Vista SP2, EU4, and win32lib v0.70.20

Is there a way to force windows to show a focus rectangle?

Here is a small sample to demonstrate the problem

include Win32lib.ew 
 
constant Main_Window = create(Window, "Main", 0, 100, 100, 100, 100, 0) 
constant Child_Window = create(Window, "Child", 0, 200, 200, 200, 200, 0) 
	constant Button_One = create(PushButton, "Button One", Child_Window, 8, 4, 80, 40, 0) 
	constant Radio_One = create(RadioButton, "Radio One", Child_Window, 8, 60, 100, 100, 0) 
 
openWindow({Child_Window, Button_One}, Normal) 
		 
WinMain(Main_Window,Normal) 
new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu