• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. How to Add bitmaps to forms

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 142
  • Views 13934
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to Add bitmaps to forms

archive
archive over 18 years ago

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
  • Cancel
  • archive
    archive over 18 years ago

    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
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 18 years ago

    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
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 18 years ago

    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
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 18 years ago

    Why is it limited to very few bitmaps?

    Andrew.


    Originally posted in cdnusers.org by adbeckett
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information