MorphOS Developer
Posts: 1516 from 2003/2/24
From: Finland
Okay, implemented it how it *should* be done
It is not using ReturnIDs in this example anymore:
Calculator 3 exampleBtw if you compare examples you will find out custom class version is smaller than ReturnID version although more typing is needed. In addition I've created two other examples how encapsulated custom class can be utilized:
Calculator 4 exampleScreenshot for Example 4:
Calculator4.pngAnd finally I put 100 calculators in one window:
Calculator 5 exampleAnd screenshot for Example 5:
Calculator5.png 1 + 1 = 3 with very large values of 1