• 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. Allegro X PCB Editor
  3. backColor for grid cells

Stats

  • Replies 10
  • Subscribers 165
  • Views 18299
  • Members are here 0
More Content

backColor for grid cells

mikebystedt
mikebystedt over 12 years ago

I've seen the previous posts about setting the background color for text cells in grids,
but I cannot get it to work at all.  I can set the foreground text just fine.  The following
approach is not working at all for me. I even tried adding in the formColorize call.
All the options so far seem to work so far EXCEPT for the backgrounds.  
Not only can I not use custom colors from my
palette, but even the basic 'red 'green 'yellow 'black aren't working.  ALL help is
greatly appreciated.  This is driving me nuts and I've spent hours fiddling with this
supposedly simple item.  Thanks, -Mike

cell->value = "MIKE"
cell->row = 1
cell->col  = 1 

axlFormColorize(form "grid" 'background 'green)

cell->backColor = 'green

axlFormSetField(form "grid" cell) 

  • Cancel
  • Sign in to reply
  • eDave
    eDave over 12 years ago

    Did you start with

    cell = axlFormGridNewCell()

    ? 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • mikebystedt
    mikebystedt over 12 years ago

    Yes. I didn't include all the code.  Basically I can't get the background color to change at all.

    cell = axlFormGridNewCell()

    cell->row = rowCounter

    cell->col = colCounter

    cell->textColor = 'black

    cell->backColor = 'yellow

    cell->value = "Layer"

    axlFormSetField(form "grid" cell)

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • eDave
    eDave over 12 years ago
    Are you on 16.6 Windows?
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • mikebystedt
    mikebystedt over 12 years ago

    Yes I am Dave!  I should have included that earlier.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • mikebystedt
    mikebystedt over 12 years ago
    I'm also having a problem centering the columns during creation.  It always stays to the left.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
>
Cadence Guidelines

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.

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

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