1. Rajkumar K S
  2. PowerBuilder
  3. Monday, 4 May 2020 11:15 AM UTC

 

Hi 

Good day!

 

I am facing one issue in the middle of implementing the UI theme (Flat bue) in my source code. Is it possible apply the same functionality of single line edit control in freeform  datawindow column other than radio buttons, checkbox and dropdowns. My actual need is to focus through any of the freeform datawindow column other than radio buttons, checkbox and dropdowns the functionality should like (border color , background color setting) same as that of single line edit control as mentioned in the json file.

Regards

Rajkumar K S

Ken Guo @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 12 May 2020 07:07 AM UTC
  2. PowerBuilder
  3. # 1

Hi Rajkumar,

The theme.json file includes the following and can be applied to the DataWindow columns, including FreeForm DW, the theme of these columns are similar to that of the single line edit control.
  "dwo-column":
    {
        "drawing":true,
        "border":0,
        "border-color":"#000040",
        "background-color":"#00CC00",
        "text-font":{"color":"#CC00CC"},

If the above doesn’t meet your requirement, could you please elaborate on it?

Regards,
Ken

Comment
  1. Olan Knight
  2. Saturday, 16 May 2020 18:40 PM UTC
Before setting the background-color, it used to be necessary to set the MODE to zero:

"background.mode=0"



I have no idea if this is still a good idea, but if you are experiencing difficulty you might give it a try.
  1. Helpful
There are no comments made yet.
Rajkumar K S Accepted Answer Pending Moderation
  1. Wednesday, 13 May 2020 05:45 AM UTC
  2. PowerBuilder
  3. # 2

Hi Ken,

Good day!

 

Thank you for your valuable response.

The above response doesn't meet my requirement. My actual need is when i focus through the cursor pointer to the free form datawindow column other than radio button, checkbox and dropdowns the border color, background color should be changed same as that of single line edit control.

I have few ask for this

Is it possible to apply the below code inside datawindow in theme file

"dwo-column":
    {

"drawing":true,
"normal-state":
{
"border-color":"#999999",
"background-color":"#FFFFFF",
"text-font":{"color":"#000000"}
},
"hover-state":
{
"border-color":"#0078D7",
"background-color":"#F0F0F0",
"text-font":{"color":"#000000"}
},
"focused-state":
{
"border-color":"#0078D7",
"background-color":"#FFFFFF",
"text-font":{"color":"#000000"}
},
"disabled-state":
{
"border-color":"#CCCCCC",
"background-color":"#FFFFFF"
}

}

 

Thanks 

Rajkumar K S

Comment
  1. Ken Guo @Appeon
  2. Friday, 15 May 2020 09:15 AM UTC
Hi Rajkumar ,



Thanks for reporting this problem and for your valuable suggestion.

We'll transfer this enhancement to our product team for consideration.



Regards,

Ken
  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.