Create View funs

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Create View funs

Janos Kazsoki
Hi,

I am beginning my first application in DolphinSmalltalk.

Created the Package, beautiful.

A "Subcomponent" will be a drawing canvas, as in Ian's BuildShell, or
in OA's  Tutorial 2: A Scribble Pad Component, or in Ted's Companion
Book (p. 240, Creating LineGraph View, which later will be the central
component of a composite view.

The common statement in all of the above sounds like: "Create a new
subclass of #View."

OK.

In CHB went to View, right click, New..., but the OK button does not
become enabled, whatever I do: packaged, or not.

Creating a New View in the Help also does not help to much: there you
have 2 possibilities in the File/New : Shell View, or Dialog View.

But I just would like an undecorated view, on which I can draw.

So: How can you create a subclass of the #View (before creating the
presenter?

I use 5.1.4 Prof.

Many thanks,
Janos


Reply | Threaded
Open this post in threaded view
|

Re: Create View funs

Janos Kazsoki
Got it: the name must begin with capital letter...

Sorry,
Janos


Reply | Threaded
Open this post in threaded view
|

Re: Create View funs

Bruno Buzzi Brasesco
In reply to this post by Janos Kazsoki
> The common statement in all of the above sounds like: "Create a new
> subclass of #View."
>
> OK.
>
> In CHB went to View, right click, New..., but the OK button does not
> become enabled, whatever I do: packaged, or not.

Because there's another class with the same name of your newClass.

Regards Bruno

PS:
I first create the presenter, then right button (contextMenu) Views>>New...



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.809 / Virus Database: 551 - Release Date: 09/12/2004


Reply | Threaded
Open this post in threaded view
|

Re: Create View funs

Bruno Buzzi Brasesco
> I first create the presenter, then right button (contextMenu)
Views>>New...


I first create the presenter, then right button (CLASS contextMenu)
Views>>New...




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.809 / Virus Database: 551 - Release Date: 09/12/2004