toolbox-programming with oslib

Jonathan Coxhead jonathan at doves.demon.co.uk
Fri Oct 13 19:38:42 BST 2000


On 12 Oct 00, Tony van der Hoff wrote,


 | The problem is that the dcs_obj and colourdbox_obj
 | structures are not the entire template, but only the object-specific
 | part. The toolbox requires a standard header to be prepended to make a
 | complete template. Unfortunately, oslib currently does not appear to
 | define such structures pre-built, so you have to fiddle around with your
 | own.

   The reason it doesn't is precisely the same reason that we discussed a 
while ago regarding the same situation for message types: it's better 
design if the "base part" is included in only 1 place (wimp.h for messages, 
toolbox.h for templates), and everything else extends it.

 | I shall try to include the full template structure for each object in
 | the next release.

   Could you investigate whether the same solution that we used for 
messages also applies here?

        /|
 o o o (_|/
        /|
       (_/



More information about the oslib-user mailing list