Author Topic: HA Designer -- Fields in the Children Tab  (Read 4467 times)

naveed

  • Guest
HA Designer -- Fields in the Children Tab
« on: November 22, 2010, 11:00:41 pm »
Does anybody know what the fields "Tie State To" and "Visible States" do, and how they work. I am trying to get toggle behavior by using two buttons which sit on top of each other and one of them is always hidden. It seems that setting the above fields will help me accomplish this behavior.
Many thanks in advance for your help.

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: HA Designer -- Fields in the Children Tab
« Reply #1 on: December 12, 2010, 02:47:47 am »
Tie State to, was added to make two datagrids on the same screen, scroll to the same place. It is used in the Media File List.

And NO. DO NOT implement toggle behaviour in this manner! Toggles must either be handled by setting object state (look at some of the other orbiter commands, I can't think of them off the top of my head) in the onActivate and onLoad/onUnload sections...or by implementing custom code in src/Orbiter/ScreenHandler.cpp (look at the wiki page for Integrating custom controls into Orbiter.)

-Thom