Project

General

Profile

Change the "Loading..."

Added by Marcel Tella about 14 years ago

Hi! I'm trying to change the "Loading..." message for "Calculating BPT..." or something like this

I've tried.

  Wt::WDefaultLoadingIndicator* loading = new  Wt::WDefaultLoadingIndicator();
  loading->Wt::WLoadingIndicator::setMessage("Calculating...");
  WApplication::setLoadingIndicator(loading); 

It compiles, but doesn't link... so.. Could have any missing library?

The log is this...

bpt_creation_web.cpp:(.text+0x1901): undefined reference to `Wt::WLoadingIndicator::setMessage(Wt::WString const&)'

tools/bpt_creation_web/obj/release/bpt_creation_web.o: In function `bpt_creation_web::bpt_creation_web(Wt::WEnvironment const&)':

bpt_creation_web.cpp:(.text+0x24da): undefined reference to `Wt::WLoadingIndicator::setMessage(Wt::WString const&)'

collect2: ld returned 1 exit status

Thank you!


Replies (1)

RE: Change the "Loading..." - Added by Koen Deforche about 14 years ago

Hey Marcel,

That should read:

loading->setMessage("Calculating...");

You are explicitly trying to call the implementation in WLoadingIndicator, which is however an abstract class.

Your could could actually be replaced by:

loadingIndicator()->setMessage("Calculating...");

(assuming this is a WApplication).

Regards,

koen

    (1-1/1)