Encountered when using TImageList stupid question

General Windows program, there will be a toolbar icons, menu icons, toolbars and menu bar icon display because the need is not the same size is generally small toolbar large menu. General menu or toolbar available and unavailable and there will be two states, so they need to prepare two kinds of color and gray icons. Thus, the same icon, in fact, require different sizes, and is not available with four FIG.


I used to prepare for each of the four maps icon, using four TImageList, similar to the same place each ImageList icon. Because not professional artists, it plans to start a waste of effort, more than one icon, it is often removed most of the day.


Only recently discovered, in fact, not too much trouble. Not only need to be prepared and available in two icon on it. 4 TImageList, two normal into a large icon, the other two, as long as the set ImageList Height and Width, the same import large icons, but displays a small icon is.

Guess you like

Origin blog.51cto.com/bigdata1024/2436616