x++


How can I set the Backgoundcolor of an AX2012 Action Pane Button


I'm trying to set the background color of an Action Pane Button so I changed the init-Method to this:
public void init()
{
super();
myButton.colorScheme(FormColorScheme::RGB);
myButton.backgroundColor(WinAPI::RGB2int(255,0,0));
}
but myButton (AutoDeclaration is on) does not become red.
Even when I set these properties by hand, the color does not change.
The Button has an Action, where the Image is defined. But removing that won't help.
It isn't possible to provide a custom background color for buttons in the action pane.
If you just want the button to look different, you can set the ToogleButton property to Check and the ToggleValue property to On to give it a difference appearance, you will also need to add code in the clicked method for the button to prevent it toggling to Off. This will give the button a different background color, but you won't have any control over the color used.

Related Links

Refresh the main screen in ax dynamics 2009
How to insert into a table field with value from a display method dependent of string
x++ cannot read registry entry
How do I get the caller Form's name in the Insert() of a table in AX 2012?
How to lookup into another table using EDT AX 2012
Set a Date Value to a Date Field in AX2012
Determine if a job is running in X++ code
Dynamics AX 2012 parsing Int32 to table field integer
Cancel Sales order packing slip through x++
Transferring open account records between customers
How to make sure that a form is only opened once?
Extend system menu in Dynamics AX 2012?
How to show selected items of certain table on the different table in Dynamics AX 2012?
AllowEdit doesn't work properly in Dynamics AX
AX 2012 how to set args record datasource in X++
Clients seem to be running old (buggy) code after XPO project import

Categories

HOME
windows
uml
httparty
eslint
c99
forms
character-encoding
interface
owl-carousel
newrelic
xbee
rom
dojo
square
angularfire2
flume
jquery-ui-sortable
drop-down-menu
openpyxl
enthought
siddhi
heat
internationalization
job-scheduling
video-editing
imessage
soci
replication
drive
r-mice
visual-studio-extensions
gmock
google-api-client
progress-bar
tpm
alm
event-flow
python-2.6
powershell-ise
zend-debugger
deltaspike
github3.py
login-script
fossil
html-encode
arduino-ide
mnist
protege4
hivemq
apic
google-knowledge-graph
git-rewrite-history
reactivekit
projects-and-solutions
stringtokenizer
odoo-website
skylink
sharp-snmp
chronicle-map
snapchat
libgphoto2
term
jquery-ui-draggable
facebook-pixel
mongotemplate
bluez
context-sensitive-grammar
git-flow
dt
pybrain
mathcad
shinobi
bootstrap-tags-input
docpad
cudd
stax
custom-lists
beamer
i386
ng-grid
android-dateutils
gogs
android-wake-lock
stream-processing
nullable
toast
libvlc
gocql
oracle-spatial
roadkill-wiki
intel-c++
pax-exam
sapscript
sha512
rdflib
teamcity-9.1
kubuntu
diff3
user-permissions
mass-assignment
boost-program-options
reflector
malformedurlexception
tinyxml
vsx
file-not-found
extjs2
websphere-esb
abstract-data-type
pclzip
android-icons
resource-management
patricia-trie
sentestingkit
jdb
mapping-by-code
infobright
filemerge
catransform3d
xcelsius
nhprof
instantiationexception
spread
wysiwym

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App