Home > Community > Forums > Custom IC SKILL > How to Add bitmaps to forms

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 How to Add bitmaps to forms 

Last post Fri, May 25 2007 11:03 AM by archive. 4 replies.
Started by archive 25 May 2007 11:03 AM. Topic has 4 replies and 1810 views
Page 1 of 1 (5 items)
Sort Posts:
  • Fri, May 25 2007 11:03 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    How to Add bitmaps to forms Reply

    Hi ALL,

    I need to check a few things in our project setup. If there is a problem, I want to bring
    up a warning form (e.g. hiDisplayAppDBox), that lists the corrective actions.
    Normaly users just click and don't read. So to make it a little fun,
    I would like to add bitmaps to the form.
    Does anyone know, how to do that?
    Can that be done at all?

    Thanks,

    Britta


    Originally posted in cdnusers.org by Britta
    • Post Points: 0
  • Fri, May 25 2007 12:28 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: How to Add bitmaps to forms Reply

    You can create a regular app form (hiCreateAppForm) and add some custom buttonIcons.


    hiCreateButton(
    ?name 'upButton
    ?buttonIcon _UP
    ?callback println("up")
    )

    procedure(InitArrowIcons()
    let((upString ColorArray)
    ColorArray = hiCreateColorArray()
    ColorArray[0] = hivBackgroundColor
    ColorArray[1] = hivTopShadowColor
    ColorArray[2] = hivBottomShadowColor
    ColorArray[3] = hivForegroundColor
    ColorArray[4] = hivRecessColor
    ColorArray[5] = hivForegroundColor
    ColorArray[6] = hiMatchColor(list( 746 746 730))

    upString = "\
    aaaaaaaaaaadaaaaaaaaaaa\
    aaaaaaaaaadddaaaaaaaaaa\
    aaaaaaaaadddddaaaaaaaaa\
    aaaaaaaadddddddaaaaaaaa\
    aaaaaaadddddddddaaaaaaa\
    aaaaaadddddddddddaaaaaa\
    aaaaaaaaaadddaaaaaaaaaa\
    aaaaaaaaaadddaaaaaaaaaa\
    aaaaaaaaaadddaaaaaaaaaa\
    aaaaaaaaaadddaaaaaaaaaa\
    aaaaaaaaaadddaaaaaaaaaa\
    aaaaaaaaaadddaaaaaaaaaa\
    aaaaaaaaaadddaaaaaaaaaa"

    _UP = hiStringToIcon(ColorArray upString 23 13)
    ) ; let
    )


    Originally posted in cdnusers.org by dmay
    • Post Points: 0
  • Fri, May 25 2007 12:32 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: How to Add bitmaps to forms Reply

    Thanks to the great formatting on these forum pages, the skill code was corrupted in my last post. In the InitArrowIcons procedure, the ColorArray should look like an array indexed from 0 to 6 rather than greek characters. You should see ColorArray, followed by an open square bracked, a zero and then a closed square bracket. Look up hiStringToIcon to see how this works.


    Originally posted in cdnusers.org by dmay
    • Post Points: 0
  • Wed, Aug 15 2007 3:18 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: How to Add bitmaps to forms Reply

    Is it possible to add any gif or images to the buttons other than the above procedure.
    In the above way it is limited to very few bitmaps.


    Originally posted in cdnusers.org by rimser9
    • Post Points: 0
  • Fri, Aug 17 2007 1:08 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: How to Add bitmaps to forms Reply

    Why is it limited to very few bitmaps?

    Andrew.


    Originally posted in cdnusers.org by adbeckett
    • Post Points: 0
Page 1 of 1 (5 items)
Sort Posts:
Started by archive at 25 May 2007 11:03 AM. Topic has 4 replies.