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 » ArrayCtrl, HeaderCtrl & GridCtrl » Problem w/ HeaderCtrl.SetPaper() in my app.
Problem w/ HeaderCtrl.SetPaper() in my app. [message #14458] Tue, 26 February 2008 22:16 Go to previous message
jlfranks is currently offline  jlfranks
Messages: 57
Registered: May 2007
Location: Houston, TX, USA
Member
I'm can't seem to make SetPaper() work for
ArrayCtrl::HeaderCtrl work. I've included this example
app that demonstrates the problem.

Can anyone see what I'm doing wrong in making this work?



---------- environment and Upp version ------
Linux
Upp-2007.1.i386
---------- example code ---------------------
#include <CtrlLib/CtrlLib.h>
using namespace Upp;


class ArrayCtrlTest : public TopWindow
{
public:
ArrayCtrlTest()
{
Zoomable().Sizeable();

ArrayCtrl::Column & c1 = _SensorInfo.AddColumn("Value", 60);
ArrayCtrl::Column & c2 = _SensorInfo.AddColumn("Info", 100);

c1.HeaderTab().SetAlign(ALIGN_CENTER);
c2.HeaderTab().SetAlign(ALIGN_CENTER);

c1.HeaderTab().SetFont(StdFont().Bold());
c2.HeaderTab().SetFont(StdFont().Bold());

c1.HeaderTab().SetInk(Cyan());
c2.HeaderTab().SetInk(Cyan());

c1.HeaderTab().SetPaper(Yellow()); // this does not work
c2.HeaderTab().SetPaper(Yellow()); // this does not work

_SensorInfo.NoTrack();
_SensorInfo.Add(1, "46.0 psig");
_SensorInfo.Add(2, "2000.0 sccm");
_SensorInfo.SetReadOnly();

Add(_SensorInfo.SizePos());
}

~ArrayCtrlTest() {}

private:
ArrayCtrl _SensorInfo;
};


GUI_APP_MAIN
{
ArrayCtrlTest().Run();
}
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problems with ArrayCtrl, GridCtrl in my app
Next Topic: Bugfix: ArrayCtrl Black info popups
Goto Forum:
  


Current Time: Wed May 15 23:53:56 CEST 2024

Total time taken to generate the page: 0.02438 seconds