On Wednesday, May 9, 2012 4:44:11 AM UTC-6, Andy Bower wrote:
> Pewing,
>
> Could you wrap up your code in a package and include the text of the PAC
> file here (or put it on Dropbox). It's difficult to see what might be
> wrong without seeing all the code.
>
> One thing occurs to me though; you ALWAYS need to supersend
> #onViewOpened if you override it. Make sure that you've done that.
>
> Best regards
>
> Andy Bower
>
-------------------------
Hi Andy
Here is the code that I created essentially it is the Better Hello World video, but instead I am trying to display it on a scrollable window and use the createIn:On: method. what I am trying to accomplish is developing different techniques for manipulating Views and Presenters. I suppose writing the LOC game on a scrollable window would be the same thing.
Peter
--------------------------
| package |
package := Package name: 'TestWin2'.
package paxVersion: 1;
basicComment: ''.
package classNames
add: #TestWinShell2;
yourself.
package binaryGlobalNames: (Set new
yourself).
package globalAliases: (Set new
yourself).
package setPrerequisites: (IdentitySet new
add: '..\Dolphin\Base\Dolphin';
add: '..\Dolphin\MVP\Base\Dolphin MVP Base';
add: '..\Dolphin\MVP\Views\Scrollbars\Dolphin Scrollbars';
add: '..\Dolphin\MVP\Presenters\Text\Dolphin Text Presenter';
yourself).
package!
"Class Definitions"!
Shell subclass: #TestWinShell2
instanceVariableNames: 'tp'
classVariableNames: ''
poolDictionaries: ''
classInstanceVariableNames: ''!
"Global Aliases"!
"Loose Methods"!
"End of package definition"!
"Source Globals"!
"Classes"!
TestWinShell2 guid: (GUID fromString: '{224CA88B-F1BE-4457-A53E-7CE540FBB5D8}')!
TestWinShell2 comment: ''!
!TestWinShell2 categoriesForClass!Unclassified! !
!TestWinShell2 methodsFor!
onViewOpened
super onViewOpened.
tp:= TextPresenter createIn:self on: (self model).
! !
!TestWinShell2 categoriesFor: #onViewOpened!public! !
!TestWinShell2 class methodsFor!
defaultModel
^ 'Super Hello World' asValue.!
resource_Default_view
"Answer the literal data from which the 'Default view' resource can be reconstituted.
DO NOT EDIT OR RECATEGORIZE THIS METHOD.
If you wish to modify this resource evaluate:
ViewComposer openOn: (ResourceIdentifier class: self selector: #resource_Default_view)
"
^#(#'!!STL' 3 788558 10 ##(Smalltalk.STBViewProxy) 8 ##(Smalltalk.ShellView) 98 27 0 0 98 2 27131905 131073 416 0 524550 ##(Smalltalk.ColorRef) 8 4278190080 0 551 0 0 0 416 788230 ##(Smalltalk.BorderLayout) 1 1 0 0 0 0 0 234 256 98 0 0 0 0 0 0 1 0 0 0 0 1 0 0 983302 ##(Smalltalk.MessageSequence) 202 208 98 2 721670 ##(Smalltalk.MessageSend) 8 #createAt:extent: 98 2 328198 ##(Smalltalk.Point) 3839 21 722 1681 1231 416 658 8 #updateMenuBar 576 416 983302 ##(Smalltalk.WINDOWPLACEMENT) 8 #[44 0 0 0 0 0 0 0 0 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 57 7 0 0 10 0 0 0 129 10 0 0 113 2 0 0] 98 1 410 8 ##(Smalltalk.ScrollingDecorator) 98 18 0 416 98 2 8 1143996416 131073 864 0 0 0 7 0 0 0 864 1573190 1 ##(Smalltalk.ScrollingDecoratorLayout) 16 234 256 576 0 722 1 1 16 722 17 17 594 202 208 98 1 658 688 98 2 722 1 1 722 1649 1155 864 802 8 #[44 0 0 0 0 0 0 0 1 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 0 0 0 0 0 0 0 0 56 3 0 0 65 2 0 0] 98 1 410 8 ##(Smalltalk.ContainerView) 98 15 0 864 98 2 8 1140850688 131073 1184 0 0 0 7 0 0 0 1184 0 234 256 576 0 594 202 208 98 1 658 688 98 2 722 1 1 722 3649 2555 1184 802 8 #[44 0 0 0 0 0 0 0 1 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 0 0 0 0 0 0 0 0 32 7 0 0 253 4 0 0] 98 0 722 193 193 0 27 1440 0 27 1440 0 27 )! !
!TestWinShell2 class categoriesFor: #defaultModel!public! !
!TestWinShell2 class categoriesFor: #resource_Default_view!public!resources-views! !
"Binary Globals"!