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 » Community » Newbie corner » [SOLVED]Control property syntax (ArrayCtrl, Button), IDE syntax guide unclear to me
Re: Control property syntax (ArrayCtrl, Button), IDE syntax guide unclear to me [message #44305 is a reply to message #44301] Sat, 21 February 2015 17:49 Go to previous messageGo to previous message
Edward is currently offline  Edward
Messages: 34
Registered: February 2015
Location: United States
Member
Resolved !!!! Resolved !!!! Resolved !!!!

This solves the build errors found in this example project.
http:// www.codeproject.com/Articles/15163/Getting-Started-With-Ulti mate?msg=5005237

This is a great simple exercise for a newbie planning to work with data forms.
File: main.cpp
#include "SimpleDemo.h"

SimpleDemo::SimpleDemo()
{
	CtrlLayout(*this, "Window title");
	Sizeable().Zoomable();
	arrLIST.AddColumn(t_("Item"));  // **** Corrected !! ****
	arrLIST.Removing();
  	btnAdd <<= THISBACK(AddItem);  // Uses a callback to link the button to the function
	
}

void SimpleDemo::AddItem()
{
    // The ~ operator calls the object's GetData() function
    arrLIST.Add(~strItem);
    strItem <<= Null;        // Manually clear the item
}

GUI_APP_MAIN
{
	SimpleDemo().Run();
}




My mission is to find a powerful(Non MS) C++ IDE w/GUI to marry and spend the rest of my life with...

[Updated on: Sat, 21 February 2015 18:02]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Errors during compiling the examples
Next Topic: [SOLVED]Deleted layout controls still cause errors in compile. How? 8183 MinGW
Goto Forum:
  


Current Time: Thu May 09 18:17:05 CEST 2024

Total time taken to generate the page: 0.01524 seconds