Is there a good tutorial to create C++ widgets
Posted: Wed Mar 14, 2012 11:59
Hello!
I need to realize a calendar button widget with 3 strings as text parameters (day, month and year).
For the moment I reused a simple PushButton, and use "\n" to have 3 lines of text.
But I'm trying to find a more elegant way of achieving it, and I would like to create a button, that could have something like:
and layout these textFields in a looknfeel definition.
Is there some good resources to create a C++ widget from scratch, or inherit from another, and skin it in a looknfeel. I couldn't manage to find such a tutorial
Is it hard to create custom widgets ?
Thanx in advance for your help
I need to realize a calendar button widget with 3 strings as text parameters (day, month and year).
For the moment I reused a simple PushButton, and use "\n" to have 3 lines of text.
But I'm trying to find a more elegant way of achieving it, and I would like to create a button, that could have something like:
Code: Select all
widget.SetProperty("DayDisplayText", "5");
widget.SetProperty("MonthDisplayText", "march");
widget.SetProperty("YearDisplayText", "2012");
and layout these textFields in a looknfeel definition.
Is there some good resources to create a C++ widget from scratch, or inherit from another, and skin it in a looknfeel. I couldn't manage to find such a tutorial
Is it hard to create custom widgets ?
Thanx in advance for your help