VA8 Toolbar

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

VA8 Toolbar

Postby koschate » Tue Nov 09, 2010 12:06 pm

As someone stuck using Windows XP in my Windows development environment, I always end up turning on the emulated toolbar. I'd really like to be able to script the enabling of the emulated toolbar as part of my toolset load, but the method EtTools class>>#toggleEmulatedToolbar, which controls this function, is a classic example of a method that does too much.

At the very least, the contents of the block controlled by #stsConfirm: should be extracted to its own method accepting a boolean as an argument. This would provide a better code example, and allow scripting of the enabling of the toolbar.

Here's what I'm suggesting:
Code: Select all
toggleEmulatedToolbar

   (System stsConfirm: 'This will close all windows. Continue?')
      ifTrue: [self useEmulatedToolbar: self useEmulatedToolbar not]

Code: Select all
useEmulatedToolbar: aBoolean

   | etBaseToolsMappings etToolsMappings |

   self setUseEmulatedToolbar: aBoolean.
   etToolsMappings := EtTools browserMappings.
   etBaseToolsMappings := EtBaseTools browserMappings.
   CommonWidgets reinitialize.
   EtTools browserMappings: etToolsMappings.
   EtBaseTools browserMappings: etBaseToolsMappings

With this refactoring, I could add "EtTools useEmulatedToolbar: true" to my abt.cnf file, and always be sure of getting the emulated toolbar.

Strictly speaking, had I been implementing this, I would have used the name #useEmulatedToolbar: for the method currently named #setUseEmulatedToolbar:, since the getter for that value is #useEmulatedToolbar and it's a simple setter. This would have allowed me to use #setUseEmulatedToolbar: more correctly.
koschate
[|]
 
Posts: 102
Joined: Thu Feb 01, 2007 7:24 am

Re: VA8 Toolbar

Postby tc » Tue Nov 09, 2010 1:03 pm

Hello,

A toolbar fix will be in the next release and switching to the emulated toolbar will not be necessary.

--tc
tc
Moderator
 
Posts: 304
Joined: Tue Oct 17, 2006 7:40 am
Location: Raleigh, NC

Re: VA8 Toolbar

Postby jtuchel » Tue Feb 08, 2011 5:18 am

tc wrote:Hello,

A toolbar fix will be in the next release and switching to the emulated toolbar will not be necessary.

--tc


Hi Taylor,

it seems this fix didn't make it into 8.0.3. You have to switch on the emulated toolbar in a vanilla 8.0.3 image on Windows XP.

Joachim
jtuchel
[|]
 
Posts: 245
Joined: Fri Oct 05, 2007 1:05 am
Location: Ludwigsburg, Germany

Re: VA8 Toolbar

Postby koschate » Tue Feb 08, 2011 6:03 am

jtuchel wrote:it seems this fix didn't make it into 8.0.3. You have to switch on the emulated toolbar in a vanilla 8.0.3 image on Windows XP.

Strange. I tested it briefly yesterday, and it did appear to be there. At least the image behaved exactly as though the emulated toolbar was turned on whether or not I explicitly enabled it.
koschate
[|]
 
Posts: 102
Joined: Thu Feb 01, 2007 7:24 am

Re: VA8 Toolbar

Postby jtuchel » Tue Feb 08, 2011 6:06 am

Tom,

strange. I'll try on an XP VM later today and see if things are better there.

Joachim
jtuchel
[|]
 
Posts: 245
Joined: Fri Oct 05, 2007 1:05 am
Location: Ludwigsburg, Germany

Re: VA8 Toolbar

Postby jtuchel » Tue Feb 08, 2011 10:17 am

Okay, same with a fresh install on a Win XP SP3 VM.
So the fix is either not loaded in a fresh image or missing from 8.0.3
jtuchel
[|]
 
Posts: 245
Joined: Fri Oct 05, 2007 1:05 am
Location: Ludwigsburg, Germany


Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

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

cron