Jump to content











Photo
- - - - -

System,RefreshInterface Question w/ Show/Hide?


  • Please log in to reply
3 replies to this topic

#1 Flyboarder

Flyboarder

    Member

  • .script developer
  • 95 posts
  •  
    Canada

Posted 05 September 2009 - 05:51 PM

Is there a way that i could Show/Hide a section of the interface using the System,RefreshInterface Command?

So that when A user clicks a check box some more options will be shown?

Common API seems to get the interface to change as it has 3 different interfaces but i cant figure out how!

#2 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 05 September 2009 - 06:45 PM

It's easy:

  • Define the second interface with name you want, e.g. [myInterface]
    This usually is a copy of [Interface] with some changes.
  • Tell WinBuilder about this in the Main section and refresh.
    IniWrite,%ScriptFile%,Main,Interface,myInterface
    
    	 System,REFRESHINTERFACE
  • If you want to go back to the original:
    IniDelete,%ScriptFile%,Main,Interface
    
    	 System,REFRESHINTERFACE
Peter

#3 Flyboarder

Flyboarder

    Member

  • .script developer
  • 95 posts
  •  
    Canada

Posted 05 September 2009 - 06:47 PM

ok so Im not sure how to implement it.

In [Main]

IniWrite,%ScriptFile%,Main,Interface,myInterface

	 System,REFRESHINTERFACE

I have the first section of code you gave me, how do I call it?

EDIT: I think I might understand, now attempting.

#4 Flyboarder

Flyboarder

    Member

  • .script developer
  • 95 posts
  •  
    Canada

Posted 05 September 2009 - 07:29 PM

SOLVED!

Great thanks, that makes the interface look much better.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users