DrGeoCanvas new --- setting for result withouth menu bar?

classic Classic list List threaded Threaded
5 messages Options
HJH
Reply | Threaded
Open this post in threaded view
|

DrGeoCanvas new --- setting for result withouth menu bar?

HJH
Hello Hilaire

When I execute
   
      DrGeoCanvas new

I get a new window with wheels for scrolling and a menu bar.

Result of DrGeoCanvas new

I would like to get a canvas without any decorations. Is there a setting which prevents the menu bar and the wheels to be added? If not how would you see that to be implemented? With a message such as

     DrGeoCanvas new simple

or

     DrGeoCanvas newWithNoMenu

or

     DrGeoCanvas newWithNoControls


Regards
Hannes
HJH
Reply | Threaded
Open this post in threaded view
|

Re: DrGeoCanvas new --- setting for result withouth menu bar?

HJH
I have started to answer the question myself by reading the DrGeo Smalltalk code.

And I continue the discussion on the DrGeo developer list.

--Hannes
HJH
Reply | Threaded
Open this post in threaded view
|

Re: DrGeoCanvas new --- setting for result withouth menu bar?

HJH
Note that in the most recent developer version the message #minimal has been implemented allowing for a script like this


     | c |
     c := DrGeoCanvas new.
     c view extent: 500@500.
     c segment:  2@2 to: 4@4.
     c exportToBitmap: '/home/user8/sketch1.png'.
     c delete.
Reply | Threaded
Open this post in threaded view
|

Re: DrGeoCanvas new --- setting for result withouth menu bar?

Hliaire Fernandes
Administrator
Hi Hannes,

I guess you meant:

  | c |
     c := DrGeoCanvas minimal.
     c view extent: 500@500.
     c segment:  2@2 to: 4@4.
     c exportToBitmap: '/home/user8/sketch1.png'.
     c delete.

In case you don't delete the canvas as in the code above, to close it with mouse, you need to call the Morph Halo and cycle to the DrGService instances, and quit it. Not very handy.
HJH
Reply | Threaded
Open this post in threaded view
|

Re: DrGeoCanvas new --- setting for result withouth menu bar?

HJH
Correct, I meant


     | c |
     c := DrGeoCanvas minimal.
     c view extent: 500@500.
     c segment:  2@2 to: 4@4.
     c exportToBitmap: '/home/user8/sketch1.png'.
     c delete.

The method #minimal is the new feature.

As for your remark about deleting the minimal canvas see upcoming new topic
     'DrGeoCanvas minimal'

--Hannes