|
|
Home » Community » Newbie corner » [SOLVED]Control property syntax (ArrayCtrl, Button), IDE syntax guide unclear to me
[SOLVED]Control property syntax (ArrayCtrl, Button), IDE syntax guide unclear to me [message #44301] |
Sat, 21 February 2015 03:09 |
|
Edward
Messages: 34 Registered: February 2015 Location: United States
|
Member |
|
|
This should be simple for a seasoned U++ user.
The full syntax of controls, here is what I have so far:
{
CtrlLayout(*this, "Window title");
Sizeable().Zoomable();
SimpleDemo.arrLIST.AddColumn("Item");
SimpleDemo.arrLIST.Removing();
SimpleDemo.btnAdd <<= THISBACK(AddItem);
}
Build Log:
C:\upp\examples\SimpleDemo\main.cpp: In constructor 'SimpleDemo::SimpleDemo()':
C:\upp\examples\SimpleDemo\main.cpp:7:13: error: expected unqualified-id before '.' token
SimpleDemo.arrList.AddColumn("Item");
^
C:\upp\examples\SimpleDemo\main.cpp:8:13: error: expected unqualified-id before '.' token
SimpleDemo.arrList.Removing();
^
C:\upp\examples\SimpleDemo\main.cpp:9:13: error: expected unqualified-id before '.' token
SimpleDemo.btnAdd <<= THISBACK(AddItem);
^
Any advice appreciated.
-
Attachment: Days_log.txt
(Size: 3.79KB, Downloaded 207 times)
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 17:50] Report message to a moderator
|
|
|
|
|
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 |
|
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
|
|
|
|
|
|
Goto Forum:
Current Time: Mon May 06 04:34:36 CEST 2024
Total time taken to generate the page: 0.01895 seconds
|
|
|