U++ framework
Do not panic. Ask here before giving up.

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: 740
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: Sun May 24 03:17:47 GMT+2 2026

Total time taken to generate the page: 0.00801 seconds