Hey Sabir,

2009/5/5 Sabir <dearsa...@gmail.com>:
> Hi,
>
> Could you tell me which is the last step if its not rendering.

Rendering *is* the last step.

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

Can you tell more about the crash, or provide a reproducible test case ?
>From what you have shown, the code looks like it should/could work.

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

Reply via email to