[squeak-dev] Scamper in Squeak6.0a-17230

H. Hirzel hannes.hirzel at gmail.com
Tue May 2 15:49:31 UTC 2017


A short report about how to make Scamper work in Scamper in Squeak6.0a-17230
---------------------------------------------------------------------------------------------------------------------

Scamper loads fine in Squeak5.1-release, see

http://forum.world.st/How-do-I-install-the-Scamper-browser-tp4945136p4945199.html

First you need to load Metacello
https://github.com/dalehenrich/metacello-work
and then Scamper with


Metacello new
  baseline: 'Scamper';
  repository: 'github://HPI-SWA-Teaching/Scamper:dev/packages';
  onConflict: [:ex | ex allow];
  load

Necessary are also fonts and the scamper-icons folder.
The scamper-icons folder needs to be in a folder 'Scamper' which is on
the level of the image.

https://github.com/HPI-SWA-Teaching/Scamper/tree/dev/build-support/scamper-icons


Then you get some errors caused by deprecation warning.
They are easy to fix.

--------------------------------------------------------------------------------------------------------------------


When loading Scamper into Squeak6.0a-17230 I get the error

ScrollPane>>#hideScrollBarsIndefinitely: has been deprecated.


This is in

ScrollPane subclass: #WebPageMorph
	instanceVariableNames: 'scamper document documentMorph'
	classVariableNames: ''
	poolDictionaries: ''
	category: 'Scamper-Core'




--------------------------------------------------------------------------------------------------------------
To make it work:
--------------------------------------------------------------------------------------------------------------



ScrollPane
hideScrollBarsIndefinitely: bool
	"Get rid of scroll bar for short panes that don't want it shown."

	"self deprecated."
	self flag: #deprecationMessageDeactivated.

	self hideVScrollBarIndefinitely: bool.
	self hideHScrollBarIndefinitely: bool.


..............................................................................................................

ScrollPane
hideVScrollBarIndefinitely: bool
	"Get rid of scroll bar for short panes that don't want it shown."

	"self deprecated. "
	self flag: #deprecationMessageDeactivated.
	
	self setProperty: #noVScrollBarPlease toValue: bool.
	
	bool
		ifTrue: [self vScrollBarPolicy: #never]
		ifFalse: [self vScrollBarPolicy: #whenNeeded].
	
	self vHideOrShowScrollBar.


..............................................................................................
ScrollPane
hideHScrollBarIndefinitely: bool


the same.

...............................................................................................
Then I loaded the fonts from
https://github.com/HPI-SWA-Teaching/Scamper/tree/master/build-support
(see attached screen shot).


Simple web pages like
http://wiki.squeak.org/squeak/6572

load fine.
.......................................................................................................


Now more testing needed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Fonts_to_load_for_Scamper_2017-05-02.png
Type: image/png
Size: 11517 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20170502/3fdf0146/attachment.png>


More information about the Squeak-dev mailing list