Can not create a StaticImage?

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

User avatar
realtiger
Just popping in
Just popping in
Posts: 12
Joined: Thu Dec 14, 2006 05:10

Can not create a StaticImage?

Postby realtiger » Fri Dec 15, 2006 14:49

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

LennyH
Quite a regular
Quite a regular
Posts: 92
Joined: Thu Nov 30, 2006 20:50

Postby LennyH » Fri Dec 15, 2006 19:15

What header files do you have currently?

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

User avatar
realtiger
Just popping in
Just popping in
Posts: 12
Joined: Thu Dec 14, 2006 05:10

Postby realtiger » Sat Dec 16, 2006 02:35

I only include "cegui.h".

Pompei2
Home away from home
Home away from home
Posts: 489
Joined: Tue May 23, 2006 16:31

Postby Pompei2 » Sat Dec 16, 2006 22:34

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 :?

Edit:

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 ?

Rackle
CEGUI Team (Retired)
Posts: 534
Joined: Mon Jan 16, 2006 11:59
Location: Montréal

Postby Rackle » Sun Dec 17, 2006 00:37

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).


Return to “Help”

Who is online

Users browsing this forum: No registered users and 7 guests