Switchers

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

Switchers

Postby xabialonso » Mon Oct 05, 2009 7:42 pm

Hi
Can anybody tell me where I can get informations on Switchers in Visual Age.
They are the best way for hiding/showing components, but I cannot seem to find any information on them.
Are they fully supported in Visual Age?

Thanks
Xabi
xabialonso
 
Posts: 3
Joined: Mon Oct 05, 2009 7:34 pm

Re: Switchers

Postby marten » Mon Oct 05, 2009 9:09 pm

xabialonso wrote:Hi
Can anybody tell me where I can get informations on Switchers in Visual Age.
They are the best way for hiding/showing components, but I cannot seem to find any information on them.
Are they fully supported in Visual Age?

Thanks
Xabi


What are "Switchers" ?

Marten
Marten Feldtmann, Principal Smalltalk User, Private
SkypeMe callto://marten.feldtmann
marten
[|]
 
Posts: 641
Joined: Sat Oct 14, 2006 7:10 am
Location: Hamburg - Germany

Re: Switchers

Postby PhotonDemon » Tue Oct 06, 2009 5:44 am

Hi Xabi,

The VA Smalltalk part is #AbtSwitcherView. I wasn't able to find anything about them in the documentation. Fortunately, they are fairly easy to use. You place one in a window of form like any other GUI part. You then place forms on/in the switcher and size them as you like. To select the form to view, you send the switcher the #topViewName: message with the name of the form.

Lou
Louis LaBrunda
Keystone Software Corp.
SkypeMe callto://PhotonDemon
mailto:Lou@Keystone-Software.com http://www.Keystone-Software.com
PhotonDemon
[|]
 
Posts: 176
Joined: Thu Dec 20, 2007 1:45 pm

Re: Switchers

Postby marten » Tue Oct 06, 2009 6:48 am

PhotonDemon wrote:Hi Xabi,

The VA Smalltalk part is #AbtSwitcherView. I wasn't able to find anything about them in the documentation. Fortunately, they are fairly easy to use. You place one in a window of form like any other GUI part. You then place forms on/in the switcher and size them as you like. To select the form to view, you send the switcher the #topViewName: message with the name of the form.

Lou


Ah! I used an instance of AbtSwitcherView in my Wizard framework and actually the code to register a new sub form and change the active form can be seen here:

Code: Select all
newActivePage: aMSKWizardPageDescription
  | formName  |
   
  formName := aMSKWizardPageDescription isNil ifTrue:[ ^self ] ifFalse:[ aMSKWizardPageDescription name ].
  switcher subpartNamed: formName put: aMSKWizardPageDescription instance.   
  switcher topViewName: formName.
Marten Feldtmann, Principal Smalltalk User, Private
SkypeMe callto://marten.feldtmann
marten
[|]
 
Posts: 641
Joined: Sat Oct 14, 2006 7:10 am
Location: Hamburg - Germany


Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest