1. carlos efrain
  2. PowerBuilder
  3. Saturday, 15 October 2022 13:22 PM UTC

Buenos días a todos

Existe alguna forma de colocar color a un botón de comando?

 

 

Muchas gracias a todos por su colaboracion

 

Att

Carlos

 

 

John Fauss Accepted Answer Pending Moderation
  1. Saturday, 15 October 2022 16:46 PM UTC
  2. PowerBuilder
  3. # 1

Hola, Carlos -

La razón por la que no puede asignar un color a un botón de comando es porque es un control estándar de Windows, dibujado por el sistema operativo Windows. Si bien es posible subclasificar el botón de comando y alterar su color en algunos lenguajes de programación, PowerBuilder/PowerScript no admite subclases.

Una alternativa que podría considerar es usar temas de PB, pero si desea asignar diferentes colores a los botones o asignar colores dinámicamente, es posible que los temas no sean una buena solución para usted.

[The reason you cannot assign a color to a command button is because it is a standard Windows control, drawn by the Windows operating system. While it is possible to subclass the command button and alter its color in some programming languages, subclassing is not supported by PowerBuilder/PowerScript.

An alternative you might wish to consider is using PB themes, but if you are wanting to assign different colors to buttons or assign color dynamically, themes may not be a good solution for you.]

Comment
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Saturday, 15 October 2022 13:40 PM UTC
  2. PowerBuilder
  3. # 2

No, pero podr'ias usar un "picture button". Le pegas una imagen que simplemente es una que tiene un color.

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.