Eric Bergman-Terrell's Blog

Old Windows 7 Tree Icons Never Die, They Just Fade Away
April 29, 2010

The following bug has been fixed in Vault 3 running on Windows 7. In previous versions of Vault 3, when input focus was on the outline, and the program was minimized for multiple minutes and then restored, the expand/contract icons on the outline were invisible. The icons would eventually become visible, after focus was moved away from the outline, and the mouse was moved over the outline.

This problem is fixed in version 0.32.

Windows 7 Tree Icons
Vault Outline with Visible Expand/Contract Icons

The fix was simply to remove focus from the outline when Vault 3 is restored:

getShell().addListener(SWT.Deiconify, new Listener() {
@Override
public void handleEvent(Event event) {
// Work-around for the following issue in Windows 7: When the app has focus on the tree, and is minimized for a few minutes,
// when it's restored the expand/contract graphics on the tree will be invisible and will remain invisible until focus goes 
// away from the tree and comes back.

Globals.getMainApplicationWindow().getShell().forceFocus();
}
});
Keywords: Windows 7, Tree, Icons, Fading, Input Focus, Vault 3

Reader Comments

Comment on this Blog Post

Recent Posts

TitleDate
How to decompile Java code with JetBrains IntelliJ IDEA (2018.2.3, Windows 10)October 5, 2018
Java Programming Tip: SWT Photo Frame ProgramOctober 31, 2016
Vault 3 (Desktop) Version 1.63 ReleasedSeptember 9, 2016
"Compliance with Court Orders Act of 2016"April 9, 2016
Disable "Visual Voicemail" on Android / T-MobileJanuary 17, 2016
IPv6 HumorDecember 10, 2015
Java Programming Tip: Specify the JVM time zoneDecember 7, 2015