Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - jsinicro

#1
General Discussion / Upcasting not working
21 January 2018, 08:38:07
Hi, not sure whats going on but I have X number of Panels associated with a Tab so when I need to update the text in a Label in on of the panels with Panel::Ptr pnl = gui.get(pnlName) I get an error "NO viable conversion from shared_ptr<tgui::Widget> to shared_ptr<tgui::Panel> NO matter what I try I get the same result (i.e. panelVector[id]->get("labelName")->setText("newName); --setText not member of Widget).... any Ideas of what's going on I am using the latest .8 version on Mac... any thoughts appreciated...
Thx, Joe