B4A Library 140 Named Colors ColorPicker

Discussion in 'Additional libraries, classes and official updates' started by Cableguy, Jun 10, 2015.

Similar threads

B4J Library [B4X] [class] UndoManager
B4A Library ColorPicker
B4A Code Snippet Color Picker
B4A Library ColorPicker
B4A Library Holo ColorPicker V1.0.4
  1. Cableguy

    Cableguy Expert Licensed User

    Hi Guys,

    Inspired by the great job RandomCoder has done in his soon to be published ColorPicker, and being I in the need of something somewhat simpler, I did some research, tapped a few code lines and got myself a shinny new 140 Named Colors ColorPicker.

    Here are the Properties/Methods

    cgColorPicker v1.0

    Events:
    • ColorChanged (value As Int)
    Methods:
    • Initialize (Owner As Object, EventName As String)
      Initializes the object.
      Owner is the calling Module
      EventName is the sub name that will handle the ColorChanged event


    • IsInitialized As Boolean
      Tests whether the object has been initialized.

    • AddToParent (Parent As PanelWrapper, Left As Int, Top As Int)
      Adds the view to a Parent, and sets Left and Top values
      Should be used to add the ColorPicker in code


    • DesignerCreateView (Base As Panel, Lbl As Label, Props As Map)
      Used to add the ColorPicker via Visual Designer
      Should not be used in normal code
    Properties:
    • AboutThisLibrary As String
      Returns an About String with some extra Info about the Library

    • BackgroundColor As Int
      Sets the Background color (Write only)

    • License As String
      Returns Licensing info as a String.

    • Left As Int
      Sets or Gets the Left property

    • Top As Int
      Sets or Gets the Top property

    • Visible As Boolean
      Sets or Gets the visibility of the view

    This Library is DonationWare, witch means that you can download it, and test it as much as you want, but in order to use it in a real application you must first donate. After donating, you should PM me in order to receive a Licenced version of the Library.

    I just revisited this LIB and polished it a bit.
     

    Attached Files:

    Last edited: Jan 23, 2016
    wonder, JakeBullet70 and DonManfred like this.
  2. Cableguy

    Cableguy Expert Licensed User

    Lib has been updated
     
    wonder likes this.
Loading...