Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » [IMPROVEMENT - WIN32] TreeCtrl should use native icons (open and close).
[IMPROVEMENT - WIN32] TreeCtrl should use native icons (open and close). [message #40557] Mon, 12 August 2013 21:48
Klugier is currently offline  Klugier
Messages: 1085
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello,

I have noticed that we can emulate TreeCtrl "plus" and "minus" images on Microsoft Windows. Here is two additional lines of code for Win32 backend (ChWin32 - void ChHostSkin()):
CtrlImg::Set("treeplus", XpImage(XP_TREEVIEW, TVP_GLYPH, GLPS_CLOSED, Null, Size(11, 11)));
CtrlImg::Set("treeminus", XpImage(XP_TREEVIEW, TVP_GLYPH, GLPS_OPENED, Null, Size(11, 11)));


Of course, we need to add additional widget to XpTheme.dll:
WIDGET(TREEVIEW)


I enclose two necessary files (ChWin32.cpp and XPTheme.dli from CtrlLib package).

P.S.
Sample screenshot:
index.php?t=getfile&id=4286&private=0

Sincerely,
Klugier


U++ - one framework to rule them all.

[Updated on: Thu, 15 August 2013 16:07]

Report message to a moderator

Previous Topic: ide console output unreadable
Next Topic: [IMPROVEMENT] GTK and Win32 backends should emulate error icon.
Goto Forum:
  


Current Time: Fri Dec 13 22:20:41 CET 2024

Total time taken to generate the page: 0.01747 seconds