Crystal Space
Welcome, Guest. Please login or register.
December 18, 2014, 10:41:43 pm

Login with username, password and session length
Search:     Advanced search
9032 Posts in 2046 Topics by 9288 Members
Latest Member: Lorrainewhite
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Project Development
| |-+  Bug Reports
| | |-+  Bug in AWS: Set window title
« previous next »
Pages: [1] Print
Author Topic: Bug in AWS: Set window title  (Read 5882 times)
smashed
Guest


Email
« on: August 17, 2005, 07:54:53 pm »

If you try to set a title for a window and you don't define one in the .def file you will get an exception.
Here is the code I used:

app.cpp
Code:
csRef<iAwsComponent>  wnd = i_aws->CreateWindowFrom("Window");
scfString str("Fuh");
wnd->SetProperty("Title", reinterpret_cast<intptr_t>(&str));

my.def
Code:
window "Window"
{
  Frame: (0,0) - (400,100)
#  Title: ""
}

I think the error is in awsWindow::SetProperty (awswin.cpp line 296):
Code:
title->DecRef ();

I use the CVS version of CS but it's a few days old.
btw: can anyone please write a good aws documentation?
Logged
sunshine
Administrator
Sr. Member
*****
Posts: 294


View Profile
« Reply #1 on: August 26, 2005, 06:14:15 pm »

Are you sure that you are using the CVS version of Crystal Space? The code you mentioned in awsWindow::SetProperty() doesn't seem to exist in the present CVS version.
Logged
smashed
Newbie
*
Posts: 4


View Profile
« Reply #2 on: September 05, 2005, 05:00:43 pm »

I used the cvs version but as I said it was a few days old. The problem is fixed in the current version. Sorry I should have checked that.
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 3.178 seconds with 16 queries.