Short: Color values as hex/dec/... (MUI, +src) Author: r-tea amiga pl (Artur r-tea Ostrowski) Uploader: r-tea amiga pl (Artur r-tea Ostrowski) Type: util/wb Version: 1.0 Requires: MUI 3.8+, lamp.mcc, at least 16 col WB screen, Newicons Architecture: m68k-amigaos I used to code simple HTML docs in CygnusED from time to time. And each time I lacked something to adjust a colour and get its values or name easily and quickly. This is why I finally decided to write this tiny tool. Hexaco needs MUI 3.8+ and Lamp.mcc. On ECS/AGA machines it needs at least 16 colour Workbench to get the colorfield activated otherwise it will show up blank. If you use FullPalette patch by Massimo Tantignone then it's recomended to temporarily disable it to get the Colorfield working. *** It's very rough, early version thus it may cause unexpected issues *** ___QUICK DESCRIPTION OF WINDOW CONTENTS___ Cycle gadget: -hex: hexadecimal representation of RGB colour values #RRGGBB (mostly used in HTML) -dec: decimal representation of RGB colour values R,G,B -bin: binary representation of RGB colour values %RRRRRRRR,%GGGGGGGG, %BBBBBBBB -bits: visual representation of RGB colour values (simply helps to imagine how bytes look like) HTML name: the HTML name of choosen colour (if exists). You can enter a name or select one from the popup list. "CtC" buttons: copy content of Text field to Clipboard (Copy to Clipboard) ---KEYBOARD USAGE___ - [TAB] and [RShift+TAB] to cycle through all window content - [ENTER] to confirm content/open cycle gadget/press button - [C] to copy hex/dec/bin content to Clipboard - [Shift+C] to copy HTML name to Clipboard ___GUI SETTINGS VIA TOOLTYPES OR CLI/SHELL___ All ToolTypes/CLI parameters are of switch type. If one exist then switches something on, if not then switches it off. - HTML: appends HTML name text field - BITS: appends lamps group - KNOBS: changes sliders to knobs - RGBLEFT: moves colour sliders from right side to left In Shell/CLI type Hexaco ? for parameters description. Program was written in AmigaE and compiled with EC 3.3a (AmigaOS/m68k). Source with some coments included. Praogram was created and compiled under MorphOS 3.9. Tested on MorphOS 3.9, AmigaOS 3.1 m68k and AmigaOS 4.1. NOTE! This is not good exapmle of building proper MUI application. In fact this is the worst example of it :-) I used hooks instead of subclassing. This is the easiest way for "sunday programmers" but remember: the worst way to buid a serious MUI application, thus consider it as an example for very beginners. Feel free to distribute the source code, share with it, do any changes as well as copy all or parts of it. Just play with it and see how brilliant is MUI :-) Please, let me know if you found it useful in any way, either if you have any suggestions or comments. Would be nice to receive a grab of Hexaco's window with your MUI's favourite prefs :-) For those beginners who want to play with my lame code :-) To compile the source just execute the compiler EC pointing the source code. I.e.: ec ram:hexaco.e AmigaE's author: Wouter van Oortmerssen MUI's author: Stefan Stuntz. Further developing by MorphOS Team. Lamp.mcc author: Christian Rosentreter StringEdit.m (E-Developer-Pack.lha) author: Daniel Westerberg alias Deniil The default two state icon I have painted in PersonalPaint and merged with SaveNewIcon Arexx script (pp2ni.lha) created by Eric van Velthooven. A big bunch of thankyous go to very patient Damien Stewart and other guys from AmigaE Mailing List at positron@freelists.org Thanks to Norbert for OS3.1 testing and enhancing the default icon. Thanks to Phibrizzo for patiently testing on OS3.1. Versions / Changelog: 0.9.1: (5/04/2017) - firs public release; 0.9.5: (24/04/2017) public - (new) added GUI configuration via icon ToolTypes - (fix) very bad crash on AmigaOS4.x - all String gadgets changed to Text gadgets 1.0 (19/07/2017) - Hex, Dec and Bin String fields are grouped together into one field. The function of field is switched by cycle gadget. - (new) keyboard handling of the whole GUI - (new) sliders can be changed to knobs - (new) Workbench top bar displays Hexaco's application info - (new) Shell/CLI support - (new) "?" Shell/CLI parameter displays help - (fix) HTML name field refuses uppercase input - pop up list keyboard handling much improved