International Journal of Computer Applications |
Foundation of Computer Science (FCS), NY, USA |
Volume 73 - Number 4 |
Year of Publication: 2013 |
Authors: D. A. Adenugba |
10.5120/12732-9583 |
D. A. Adenugba . Understanding Timer and Common Dialog Controls and their Applications to Mechanics and GDI+. International Journal of Computer Applications. 73, 4 ( July 2013), 42-49. DOI=10.5120/12732-9583
Colours create beauty; nature is soaked in diverse colours. The primary colours, Red (R), Green (G) and Blue (B) are fundamental colours from which other colours are derived. The painter basic colours of R, Y and B are still derived from primary colours when one realizes that Yellow, Y = R + G. This paper discusses common dialog and timer controls. The unsurpassed significance of common dialog controls was clearly depicted in their applications to Mechanics, Graphics Device Interface Plus (GDI+) and in showing 128 system-defined colours automatically using timer control and manually through colour dialog box. Provision for colour combinations enables over sixteen million colours above the system-defined colours to be displayed as different intensity levels are assigned to the primary colours values between 0-255 via Color. FromArgb method. The robust functionalities of the customized colour control developed with Microsoft Windows Control Library were exposed in a client application, WhatSoft to manipulate various displays of colours. Further applications of timer and colours are made to GDI+. This prompted the development of classes for rectangle and square that are hosted in a namespace, dvShapes. A class library was developed for ten mechanics models and its functionalities were exposed in MechSoft application. Software developers will find the customized colour control useful in their work. Tutors will find WhatSoft and MechSoft packages indispensable in teaching and learning.