VA 8 Beta 1 - Windows controls in Composition Editor

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

VA 8 Beta 1 - Windows controls in Composition Editor

Postby Bob Whitefield » Tue Jan 06, 2009 8:53 am

Nice to see VA Windows Controls are now included in the Composition Editor palette by default, no need to load the feature.

But clicking the Windows Controls category in the palette results in a walkback because the widget displayName entries in pool AbtEditViewsStrings haven't been initialized.

Is there a quick workaround for this?

Thanks,
Bob


To reproduce:

Start new beta image.
Select user Library Supervisor and connect to the library.
In VisualAge Quick Start, click OK.
In Composition Editor, click category Windows Controls.
Bob Whitefield
[|]
 
Posts: 17
Joined: Thu May 01, 2008 7:41 pm

Re: VA 8 Beta 1 - Windows controls in Composition Editor

Postby benvandijk » Wed Jan 07, 2009 8:01 am

Hi Bob,

Quick fix: Execute the following code in your transcript

Code: Select all
(Smalltalk at: #AbtEditViewsStrings) at: 'AbtStrCwProgressBarDisplayName' put: 'Progress Bar';
      at: 'AbtStrCwStatusBarDisplayName' put: 'Status Bar';
      at: 'AbtStrCwStatusPanelDisplayName' put: 'Status Panel';
      at: 'AbtStrCwTabDisplayName' put: 'Tab';
      at: 'AbtStrCwTabStripDisplayName' put: 'Tab Strip';
      at: 'AbtStrCwToolBarDisplayName' put: 'Tool Bar';
      at: 'AbtStrCwToolButtonDisplayName' put: 'Tool Button';
      at: 'AbtStrCwToolSeparatorButtonDisplayName' put: 'Tool Separator Button';
      at: 'AbtStrCwTrackBarDisplayName' put: 'Track Bar';
      at: 'AbtStrCwTreeViewDisplayName' put: 'Tree View';
      at: 'AbtStrWinControlsCategoryDisplayName' put: 'Windows Controls';
      at: 'AbtStrOS2WindowsNotebookPage' put: 'OS/2-Windows Notebook Page';
      at: 'AbtStrMSWindows' put: 'MS-Windows';
      at: 'AbtStrOS2WindowsNotebook' put: 'OS/2-Windows Notebook';
      at: 'AbtStrAddInitialPage' put: 'Add ~Initial Page';
      at: 'AbtStrInitialPageArg1' put: 'InitialPage %1';
      at: 'AbtStrOS2' put: 'OS/2'.


This will fix the pool dictionary
benvandijk
 
Posts: 45
Joined: Sun Feb 25, 2007 7:14 am
Location: Arnhem, Netherlands

Re: VA 8 Beta 1 - Windows controls in Composition Editor

Postby Bob Whitefield » Wed Jan 07, 2009 9:49 am

Ben,

Exactly what I needed, thanks!

Bob
Bob Whitefield
[|]
 
Posts: 17
Joined: Thu May 01, 2008 7:41 pm

Re: VA 8 Beta 1 - Windows controls in Composition Editor

Postby wembley » Wed Jan 07, 2009 12:42 pm

Bob -

The problem is that AbtEditViewsApp class>>#abtExternalizedStringBuildingInfo is wrong which resulted in an incorrect abtvee40.mpr file being generated during the product build.

The following patch should get you going:

1. Unzip abtvee40.win from the attached zip file into your <varoot>\nls directory
2. File in the following code:
Code: Select all
!AbtEditViewsApp class privateMethods !

abtExternalizedStringBuildingInfo

   ^Array
      with: 'abtve?40'  "filename without extension"
      with: true  "platform dependent -- Windows has extra messages"
      with: true.  "DO recurse subApplications"
! !

AbtEditViewsApp class categoriesFor: #'abtExternalizedStringBuildingInfo' are: #('AbtEdit-Internal')!
AbtEditViewsApp abtRegisterExternalStrings!

Case 38592 fixed in V8 Beta2.
Attachments
abtvee40.zip
(5.1 KiB) Downloaded 48 times
John O'Keefe [|], Principal Smalltalk Architect, Instantiations Inc.
wembley
Moderator
 
Posts: 405
Joined: Mon Oct 16, 2006 3:01 am
Location: Durham, NC

Re: VA 8 Beta 1 - Windows controls in Composition Editor

Postby Bob Whitefield » Thu Jan 08, 2009 8:50 am

Thanks John!
Bob Whitefield
[|]
 
Posts: 17
Joined: Thu May 01, 2008 7:41 pm


Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

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