EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   UI Developer Discussion (https://www.eq2interface.com/forums/forumdisplay.php?f=3)
-   -   open window to a tab? (https://www.eq2interface.com/forums/showthread.php?t=7864)

uberfuzzy 02-16-2007 05:36 PM

open window to a tab?
 
is there a way to open a window with tabs to a specific tab?

/show_window MainHUD.Achievements

i want to make 2 different buttons, one that opens to the KOS tree and one that opens to the EOF tree.

any idea?

Deathbane27 02-16-2007 07:15 PM

I believe so, yes.

I can't remember how to select a specific tab via OnEvent script (search through Zonx's posts, I think he figured it out a few years ago :p), but for actually calling it, you would use another window. Such as using OnShow="visible=false parent.Achievements.visible=true parent.achievements.TabPane.Selected=1" in a window you add, and then use a socials macro to show that window.

uberfuzzy 02-16-2007 09:07 PM

went looking, cant find the posts you were talking about.
i'm gonna start doing som tests and figure this out.
i know its only a matter of combinations of words(objects), i ought to be able to figure out how.

although on a completly side note, i noticed something strange in the ui.
on the TabSource object for the EoF tree, the object is called "Echos" which makes sence.
yet the text for the object is "Faydark Tree", not "Feydwer" as in "Echos of"

Deathbane27 02-16-2007 10:19 PM

Yeah, the thing I was thinking about was Zonx's finds on listboxes and dropdowns. Couldn't find anything for TabPanes. :/

uberfuzzy 02-16-2007 11:11 PM

if it helps, what i'm trying to do is make 2 buttons (well, theyre gonna be clear overlay buttons overtop some text, but thats not the issue)

one that opens the AA window and brings up the KoS tree,
and another the opens the AA window and brings up the EoF tree

i cant figure out how to set a tab to be the active tab.
the whole TabSource TabPages TabPane thing is kinda weird.

is it .Activate or .Activated or .Selected?

any insight is appreciated from those of you who know far more then i about this evil twisted system

gm9 02-17-2007 04:45 AM

You can set the tab by setting the MainHUD.Achievements.TabPane.ActiveTab to either 0 or 1.

You can also do this:
/show_window MainHUD.Achievements.TabPages.Echoes
/hide_window MainHUD.Achievements.TabPages.Kos
but while this will show the correct pages, it will not switch the tab itself for you (but since you won't need the tab you could just /hide_window it (or remove it if you want to mod the achievements window).

uberfuzzy 02-17-2007 06:30 AM

yay! my faith in the ui gods is rewarded once again

Landiin 02-17-2007 05:34 PM

set ActiveTab to 0 for Kos and ActiveTab to 1 for EoF. This will show the page and set the active tab to that page.

uberfuzzy 02-17-2007 06:40 PM

omg, it actually works, i'm gonna be able to do what i wanted!
whee!
virtual cookies for all!

Quote:

Originally Posted by Landiin
set ActiveTab to 0 for Kos and ActiveTab to 1 for EoF. This will show the page and set the active tab to that page.

it doesnt show the page, but it does change the "remembered" tab for next time you open it

gm9 02-17-2007 07:03 PM

he means the tab page ;)


All times are GMT -5. The time now is 12:11 AM.

vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI