Re: A simple 2D Graph tool written in Dolphin Smalltalk



To all,

I've loaded D6 and looked at the problem... When executing 'GraphView
example1', D6 fires the 'onPositionChanged:' event (last). I used the
onPositionChanged: event (basically means that the view has been resized) to
erase my view to the background color. Therefore, D6 erases the entire
example1
drawing of my GraphView example! Versions D4 and D5 do not fire the
onPositionChanged:
event (last) when I execute 'GraphView example1'.

The fastest fix I've been able to come up with is to insert a 'self halt'
command in the second line
of the 'GraphView example1' class method:

As Is: **************
example1

| prsntr a w pi f |
prsntr := GraphPresenter show.
prsntr view
"setup the scale of the graph"
....

Change To: ***************
example1

| prsntr a w pi f |
prsntr := GraphPresenter show.
self halt. " <<<< D6 bug fix - Add this line here - then <right-click>
and click 'Accept'. "
prsntr view
"setup the scale of the graph"
....

After the inserting the 'self halt' command, when you execute 'GraphView
example1' a Hard Coded Breakpoint dialog box will pop-up. Just click the
<Resume> button and you will see the beautiful sine wave chart that
GraphView>>example1 draws...

Thanks to all who have tried to run this example... It is worth it.

GraphView is a very handy and powerful tool.

~Randy


.


Quantcast