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 » Look and Chameleon Technology » Help for naming a package bringing some styles to Button class
Re: Help for naming a package bringing some styles to Button class [message #41138 is a reply to message #41135] Mon, 04 November 2013 21:04 Go to previous messageGo to previous message
Didier is currently offline  Didier
Messages: 680
Registered: November 2008
Location: France
Contributor
Hello Sigfan,

typedef TStyledButton<BUTTON> CLASSNAME;
is a very standard code syntax widely used in Upp code base.

You're error
Invalid template argument for 'BUTTON', type expected
seems to indicate that the template parameter you are trying to use is itself a template ... so you may be missing the 'typename' keyword.

NB: The way to use the code is the following:
TStyledButton<Button> myCtrl;

DO NOT FORGET to put a valid Ctrl as a template parameter !!!

It currently works with the following button Ctrls :
  • Button
  • ButtonOption


Have you tried the ButtonStyles_demo application ?

Maybe you could post an example package showing the problem

[Updated on: Mon, 04 November 2013 21:05]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ChMakeSkin
Next Topic: [solved] Flags loose colors in Windows dark theme
Goto Forum:
  


Current Time: Wed May 08 04:26:43 CEST 2024

Total time taken to generate the page: 0.01687 seconds