Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Missing GridCtrl?
Missing GridCtrl? [message #11293] |
Fri, 31 August 2007 23:54 |
jeremyc
Messages: 4 Registered: August 2007
|
Junior Member |
|
|
Hello, I can compile the HomeBudget app just fine. However, when I go to use the GridCtrl in my own app, it fails. This is the compiler output...
----- CtrlLib ( GUI GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (1 / 14)
----- SqlCtrl ( GUI GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (2 / 14)
----- plugin\sqlite3 ( GUI GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (3 / 14)
----- GridCtrl ( GUI GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (4 / 14)
----- CtrlCore ( GUI GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (5 / 14)
----- RichText ( GUI GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (6 / 14)
----- Draw ( GUI GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (7 / 14)
----- plugin/bmp ( GUI GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (8 / 14)
----- Core ( GUI GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (9 / 14)
----- plugin\z ( GUI GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (10 / 14)
----- plugin\png ( GUI GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (11 / 14)
----- Sql ( GUI GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (12 / 14)
----- Report ( GUI GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (13 / 14)
----- InvMaster ( GUI MAIN GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (14 / 14)
main.cpp
In file included from C:/develop/upp/uppsrc/CtrlCore/lay.h:22,
from C:\develop\MyApps\InvMaster\/InvMaster.h:9,
from C:\develop\MyApps\InvMaster\main.cpp:1:
C:/develop/MyApps/InvMaster/InvMaster.lay:2: error: `GridCtrl' does not name a type
C:/develop/MyApps/InvMaster/InvMaster.lay: In function `void InitLayout(Upp::Ctrl&, L&, D&, InvMasterLayout__layid&) [with L = InvMaster, D = InvMaster]':
C:/develop/upp/uppsrc/CtrlCore/TopWindow.h:219: instantiated from `void Upp::CtrlLayout(T&) [with T = InvMaster]'
C:/develop/upp/uppsrc/CtrlCore/TopWindow.h:227: instantiated from `void Upp::CtrlLayout(T&, const char*) [with T = InvMaster]'
C:\develop\MyApps\InvMaster\main.cpp:7: instantiated from here
C:/develop/MyApps/InvMaster/InvMaster.lay:2: error: 'class InvMaster' has no member named 'dv___0'
C:/develop/MyApps/InvMaster/InvMaster.lay:2: error: 'class InvMaster' has no member named 'dv___0'
InvMaster: 1 file(s) built in (0:04.51), 4515 msecs / file, duration = 4515 msecs
There were errors. (0:05.01)
As you can see, the GridCtrl is in the package. I am not sure where to go from here. As said, it works great in the Home Budget example.
Jeremy
|
|
|
Re: Missing GridCtrl? [message #11298 is a reply to message #11293] |
Sun, 02 September 2007 00:14 |
waxblood
Messages: 95 Registered: January 2007
|
Member |
|
|
It sounds like you should place the GridCtrl include before layout file include. Note you must do this also for your user-defined classes to be used in the layout editor, otherwise they will be signalled as unknown during compilation.
Presumably, in InvMain.h you should write something like this:
#include <CtrlLib/CtrlLib.h>
#include <GridCtrl/GridCtrl.h>
using namespace Upp;
#define LAYOUTFILE <InvMaster/InvMaster.lay>
#include <CtrlCore/lay.h>
David
[Updated on: Sun, 02 September 2007 00:14] Report message to a moderator
|
|
|
Re: Missing GridCtrl? [message #11299 is a reply to message #11298] |
Sun, 02 September 2007 00:41 |
jeremyc
Messages: 4 Registered: August 2007
|
Junior Member |
|
|
Quote: |
It sounds like you should place the GridCtrl include before layout file include.
|
Oh! Duh. That was certianly it. Thanks for the fix. GridCtrl now works great.
Jeremy
|
|
|
Goto Forum:
Current Time: Thu Apr 25 15:40:42 CEST 2024
Total time taken to generate the page: 0.02558 seconds
|