1. Aart Onkenhout
  2. PowerBuilder
  3. Tuesday, 23 June 2020 09:23 AM UTC

Hi,

I noticed there is an option within the theme.json file to set the "default-state" behaviour for a button within a datawindow:

    "datawindow":
    {
        "drawing":true,
        "background-color-enabled":true,
        "background-color":"#262626",
        "normal-state":
        {
            "border-color":"#404040"
        },
        "disabled-state":
        {
            "border-color":"#333333"
        },
        "dwo-button":
        {
            "drawing":true,
            "normal-state":
            {
                "border-color":"#4D4D4D",
                "background-color":"#4D4D4D",
                "text-font":{"color":"#CCCCCC"}
            },
            "hover-state":
            {
                "border-color":"#666666",
                "background-color":"#666666",
                "text-font":{"color":"#CCCCCC"}
            },
            "pressed-state":
            {
                "border-color":"#404040",
                "background-color":"#404040",
                "text-font":{"color":"#CCCCCC"}
            },
            "default-state":
            {
                "border-color":"#1E6EE1",
                "background-color":"#1E6EE1",
                "text-font":{"color":"#FFFFFF"}
            },

However, as far as I know, there is no way to set a default button within a datawindow. Is there a way to set a default button within a datawindow?

 

Regards,

Aart Onkenhout

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 23 June 2020 15:05 PM UTC
  2. PowerBuilder
  3. # 1

Hi Aart;

   No, the DW Painter does not have this option like the Window Painter does. Also, the current Theme feature can only reference a generic group of controls (ie: All radio buttons, CB's, DDLB's, etc) and not one specific instance.

   Please open a Support Ticket for this issue as an enhancement request.

   In the mean-time, you would have to script the default CB behaviour in your APP's DW Control.

Regards ... Chris

Comment
  1. Aart Onkenhout
  2. Tuesday, 23 June 2020 15:15 PM UTC
Hi Chris,



I thought so. That makes the possibilty to define the "default-state"-properties useless I guess.



Regards,

Aart
  1. Helpful
  1. Chris Pollach @Appeon
  2. Tuesday, 23 June 2020 15:23 PM UTC
Other then when your tabbing over & through various CB's.
  1. Helpful
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.