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 » U++ Core » [BUG] Ctrl::AlignRight
Re: [BUG] Ctrl::AlignRight [message #14604 is a reply to message #14552] Tue, 04 March 2008 14:50 Go to previous messageGo to previous message
nixnixnix is currently offline  nixnixnix
Messages: 415
Registered: February 2007
Location: Kelowna, British Columbia
Senior Member
The error I get is

D:\MyApps\OpenWind/Optimiser.lay(11) : error C2039: 'AlignRight' : is not a member of 'Upp::Ctrl'
        C:\upp\uppsrc\CtrlCore/CtrlCore.h(308) : see declaration of 'Upp::Ctrl'
        C:\upp\uppsrc\CtrlCore/TopWindow.h(232) : see reference to function template instantiation 'void InitLayout<T,T>(Upp::Ctrl &,L &,D &,OptimiserProgressLayout__layid &)' being compiled
        with
        [
            T=OptimiserProgress,
            L=OptimiserProgress,
            D=OptimiserProgress
        ]
        C:\upp\uppsrc\CtrlCore/TopWindow.h(240) : see reference to function template instantiation 'void Upp::CtrlLayout<T>(T &)' being compiled
        with
        [
            T=OptimiserProgress
        ]
        d:\myapps\openwind\Optimiser.h(39) : see reference to function template instantiation 'void Upp::CtrlLayout<OptimiserProgress>(T &,const char *)' being compiled
        with
        [
            T=OptimiserProgress
        ]
D:\MyApps\OpenWind/Optimiser.lay(11) : error C2228: left of '.SetEditable' must have class/struct/union
D:\MyApps\OpenWind/Optimiser.lay(11) : error C2228: left of '.LeftPosZ' must have class/struct/union
D:\MyApps\OpenWind/Optimiser.lay(11) : error C2228: left of '.TopPosZ' must have class/struct/union


My layout file for this class is

LAYOUT(OptimiserProgressLayout, 780, 156)
	ITEM(Label, dv___0, SetLabel(t_("Iterations")).LeftPosZ(12, 96).TopPosZ(32, 19))
	ITEM(EditInt, m_nTurbs, WantFocus(false).SetEditable(false).LeftPosZ(116, 56).TopPosZ(8, 19))
	ITEM(EditInt, m_nIterations, WantFocus(false).SetEditable(false).LeftPosZ(116, 56).TopPosZ(32, 19))
	ITEM(EditString, m_fArrayLoss, WantFocus(false).SetEditable(false).LeftPosZ(116, 56).TopPosZ(128, 19))
	ITEM(EditString, m_fCF, WantFocus(false).SetEditable(false).LeftPosZ(116, 56).TopPosZ(104, 19))
	ITEM(Option, optionGrossE, SetLabel(t_("Gross Energy")).LeftPosZ(12, 96).TopPosZ(80, 19))
	ITEM(Label, optionCF, SetLabel(t_("Capacity Factor")).LeftPosZ(12, 96).TopPosZ(104, 19))
	ITEM(Option, optionNetE, SetLabel(t_("Net Energy")).LeftPosZ(12, 96).TopPosZ(56, 20))
	ITEM(EditString, m_fGrossE, WantFocus(false).SetEditable(false).LeftPosZ(116, 56).TopPosZ(80, 19))
	ITEM(EditString, m_fNetE, WantFocus(false).AlignRight(true).SetEditable(false).LeftPosZ(116, 56).TopPosZ(56, 19))
	ITEM(Option, optionArrayLosses, SetLabel(t_("Array Losses")).LeftPosZ(12, 96).TopPosZ(128, 19))
	ITEM(OPLabel, opLabel, HSizePosZ(216, 12).VSizePosZ(32, 8))
	ITEM(Label, dv___12, SetLabel(t_("Turbines")).LeftPosZ(12, 60).TopPosZ(8, 19))
	ITEM(Label, dv___13, SetLabel(t_("MWh/yr")).LeftPosZ(176, 40).TopPosZ(80, 19))
	ITEM(Label, dv___14, SetLabel(t_("%")).LeftPosZ(176, 40).TopPosZ(104, 19))
	ITEM(Label, dv___15, SetLabel(t_("%")).LeftPosZ(176, 40).TopPosZ(128, 19))
	ITEM(Label, dv___16, SetLabel(t_("MWh/yr")).LeftPosZ(176, 40).TopPosZ(56, 19))
END_LAYOUT


Any ideas?

Nick
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Date Scan Problem
Next Topic: ChatClient with Ultimate++
Goto Forum:
  


Current Time: Fri Jul 18 03:37:11 CEST 2025

Total time taken to generate the page: 0.03235 seconds