Hi,

Could you tell me which is the last step if its not rendering.

By the way i will tell about what i am trying to do here.
I am trying to build a tree .In this tree i have an icon pair which says YES
or NO.
I have collected all iconpair and stored it in a vector. I am using iconpair
stored in vector to change icons being shown.

The part of the codes are


void MTreeList::initialize() // a  virtual fucntion of WApplication
{
        treeList->setIconsForTreeLeafs();  //treelist is an object of
DemoTreeList
}

void DTreeList::setIconsForTreeLeafs()
{
        vector<TreeNodeCapacity >::const_iterator treeList;

     for(treeList = Treeility.begin(); treeCapsList
!=TreeCapability.end();treeCapsList++)
     {
          Wt::WIconPair *icon = (treeList->node)->labelIcon();
          if(treeList->capacity == 0)
              icon->showIcon1();
          else
             icon->showIcon2();
     }
}


I also tried to evocate function setIconsForTreeLeafs() using two type of
events

   (tree_->expanded()).connect(SLOT(this, DTreeList::setIconsForTreeLeafs));
 or
  (icon->icon1Clicked()).connect(SLOT(this,
DTreeList::setIconsForTreeLeafs));

In both cases i get to know that user try to expand tree.

Signal tree_->expanded notify me about user trying to expand tree .
Signal icon->icon1Clicked notify that user is trying to expand by clicking
on icon on tree. Icon is the iconpair of root tree.
Unfortunately in all the three case it results in a crash.

On Tue, May 5, 2009 at 12:44 PM, Koen Deforche <k...@emweb.be> wrote:

> Hey Sabir,
>
> 2009/5/5 Sabir <dearsa...@gmail.com>:
> > Hi all,
> >
> > Is there any singal which notify that webpage rendering has completed .
> My
> > main objective is to select an icon in Wt::WIconPair. If i try to select
> an
> > icon before rendering , application crashes. So to avoid crash i think
> best
> > way to set icons after completion of rendering .
>
> Well, it shouldn't crash :-) (and no, rendering is really the last step)
>
> How are you selecting the icon? Can you post some code of what you are
> trying to do ?
>
> Regards,
> koen
>
>
> ------------------------------------------------------------------------------
> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
> production scanning environment may not be a perfect world - but thanks to
> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK
> i700
> Series Scanner you'll get full speed at 300 dpi even with all image
> processing features enabled. http://p.sf.net/sfu/kodak-com
> _______________________________________________
> witty-interest mailing list
> witty-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>



-- 
With Regards,
Sabir
+91 9895365676


Success is mostly in the attitude. “I always felt that my greatest asset was
not my physical ability, it was my mental ability.”
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to