Page 1 of 1

Can not create a StaticImage?

Posted: Fri Dec 15, 2006 14:49
by realtiger
Hi all

I use this code to get StaticImage from WindowManager:

Code: Select all

m_avatar01StaticImage = (CEGUI::StaticImage*)wndMgr.getWindow("Root/PlayWindow/Avatar01SImage");

But the compiler said:

Code: Select all

1>d:\study\visual studio 2005\projects\carol\carol\src\playwindow.cpp(12) : error C2039: 'StaticImage' : is not a member of 'CEGUI'

What's the problem? Or I missing some header files?

Thank u

Posted: Fri Dec 15, 2006 19:15
by LennyH
What header files do you have currently?

I can assure you StaticImage is a member of CEGUI :D

Posted: Sat Dec 16, 2006 02:35
by realtiger
I only include "cegui.h".

Posted: Sat Dec 16, 2006 22:34
by Pompei2
Huh that's true, i took a quick look and it seems CEGUI::StaticImage is missing ! I let windows search "StaticImage" in all files in the CEGUI include directory and it finds no results :?


from the changelog:
Modified: Removed the Static,StaticText and StaticImage from CEGUIBase and implemented them in FalagardBase instead.

this may be the cause, if i understand it right, it means there is no more a Static, StaticText and StaticImage class, but they are all windows ?

Posted: Sun Dec 17, 2006 00:37
by Rackle
Use a default window instead: CEGUI::DefaultWindow

When in doubt, check out Widget Galore. It's there to showcase every widget (although some are missing, like menu).