cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

xui tabpanel: can I force one other than the first to be "selected" on window load?

naglists
1-Visitor

xui tabpanel: can I force one other than the first to be "selected" on window load?

I set an id on tabpanel and then try to;

dlgitem_set_focus($win, "mytabpanelid");
dlgitem_display($win, "mytabpanelid");
dlgitem_set($win, "mytabpanelid","ACTIVE",1);
dlgitem_set($win, "mytabpanelid","VISIBLE",1);

But no joy. The functions all return 1 but the first tabpanel in the series
is actually "selected" or displayed or "on top" if you know what I mean NOT
the one I'm attempting to call via its id.

--
Paul Nagai
5 REPLIES 5

Hi Paul-



Try setting focus to a control *on* the tabpanel rather than the panel
itself.



--Clay


tfu1
1-Visitor
(To:naglists)

Paul,



If the id of the tabbox is "tabbox" and you want to select the second
panel, try dlgitem_set_value(win, 'tabbox', 2);



Yes, I know that this is hard to figure out.



Tung




dlgitem_set($clay,"beer","ACTIVE");

That did it. Thanks!

All of the sudden, I've got three choices. Thanks again, you rock!

dlgitem_set(win, 'tabbox','VALUE',2);
dlgitem_set_value(win, 'tabbox',2);
dlgitem_set_focus(win,'controlontabratherthanthetabitself');

Help on dlgitem_set_value states it is equivalent the the first example
above.


🙂


Announcements

Top Tags