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 » TreeCtrl » Hide expand/collapse ico
Hide expand/collapse ico [message #40741] Thu, 12 September 2013 16:59 Go to next message
iST1 is currently offline  iST1
Messages: 107
Registered: August 2013
Experienced Member
It took to hide default '+', '-' (their role will be to carry out the icons in the tree). This is possible?
Re: Hide expand/collapse ico [message #40742 is a reply to message #40741] Thu, 12 September 2013 17:38 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
Sorry, could you detail it a little bit?

Best regards
Iñaki
Re: Hide expand/collapse ico [message #40743 is a reply to message #40742] Thu, 12 September 2013 17:48 Go to previous messageGo to next message
iST1 is currently offline  iST1
Messages: 107
Registered: August 2013
Experienced Member
http://s020.radikal.ru/i715/1309/41/60ac7febb949.jpg
Re: Hide expand/collapse ico [message #40744 is a reply to message #40743] Thu, 12 September 2013 18:29 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
I understand

Very recently somebody proposed to change the + and - style for a Windows + and - style. However I have not found it Rolling Eyes .

That could be a great example!


Best regards
Iñaki
Re: Hide expand/collapse ico [message #40774 is a reply to message #40741] Sun, 15 September 2013 00:07 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
iST1 wrote on Thu, 12 September 2013 10:59

It took to hide default '+', '-' (their role will be to carry out the icons in the tree). This is possible?


Have you tried to replace '+' and '-' icons like below?
	CtrlImg::Set(CtrlImg::I_treeplus, Wnb3Img::treeplus);
	CtrlImg::Set(CtrlImg::I_treeminus, Wnb3Img::treeminus);


result:
index.php?t=getfile&id=4318&private=0
  • Attachment: tree.png
    (Size: 6.66KB, Downloaded 712 times)


Regards,
Novo
Re: Hide expand/collapse ico [message #40776 is a reply to message #40774] Sun, 15 September 2013 07:27 Go to previous messageGo to next message
iST1 is currently offline  iST1
Messages: 107
Registered: August 2013
Experienced Member
Yes, by your advice, but unsuccessful
Re: Hide expand/collapse ico [message #40778 is a reply to message #40776] Sun, 15 September 2013 19:50 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
Hello iST1

I have tried Novo trick and it works perfectly for me Smile.

Try for example:
CtrlImg::Set(CtrlImg::I_treeplus, CtrlImg::save);
CtrlImg::Set(CtrlImg::I_treeminus, CtrlImg::save_as);


Best regards
Iñaki
Re: Hide expand/collapse ico [message #40779 is a reply to message #40778] Sun, 15 September 2013 20:35 Go to previous messageGo to next message
iST1 is currently offline  iST1
Messages: 107
Registered: August 2013
Experienced Member
Hm, its work, but what I tried yesterday Embarassed

[Updated on: Sun, 15 September 2013 20:35]

Report message to a moderator

Re: Hide expand/collapse ico [message #41038 is a reply to message #40778] Wed, 23 October 2013 08:42 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
koldo wrote on Sun, 15 September 2013 13:50

Hello iST1

I have tried Novo trick and it works perfectly for me Smile.

Try for example:
CtrlImg::Set(CtrlImg::I_treeplus, CtrlImg::save);
CtrlImg::Set(CtrlImg::I_treeminus, CtrlImg::save_as);



This has two potential drawbacks:

- it changes icons for ALL TreeCtrls (and possibly other code using those images)

- current TreeCtrl code does not account for the altered size of image, so if you provide something BIG, things will look weird

Anyway, I guess this is reasonable request, will provide the feature soon....

Mirek
Previous Topic: TreeCtrlDnD inheritance bug?
Next Topic: SetFocus with EditString as Node
Goto Forum:
  


Current Time: Tue Apr 16 19:25:32 CEST 2024

Total time taken to generate the page: 0.01841 seconds