1. Richard Lynskey
  2. Beta Testing
  3. Monday, 4 March 2019 15:59 PM UTC

With the new theming UI in beta, do we have the capability to make a checkbox and/or radiobutton look disabled in a datawindow like we can on a regular object? I have a screenshot below of what I mean outside of a datawindow.

 

 

I don't want to put in a request for this if I'm simply missing something in the UI (or even worse if this has always been possible and I'm just not aware of it).

Accepted Answer
Ken Guo @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 5 March 2019 11:29 AM UTC
  2. Beta Testing
  3. # Permalink

Hi Richard,

 

As the DataWindow checkbox doesn’t have enabled property, it doesn’t have the disabled Theme UI. So it is different from the checkbox control on a window.

If you only want to check the checkbox UI in the DataWindow so it looks like disabled, you can open this file (C:\Program Files (x86)\Appeon\Shared\PowerBuilder\theme190\your theme\theme.json) and make the following changes:

"dwo-column":

                {

                                "drawing":true,

                                "border":0,

                                "border-color":"#CCCCCC",

                                "background-color":"#FFFFFF",

                                "text-font":{"color":"#000000"},

                                "checkbox-type":

                                {

                                                "drawing":true,

                                                "normal-state":

                                                {

                                                                "box-images":

                                                                {

                                                                                "unchecked":{"file":"checkbox-box-disabled-unchecked.bmp"},

                                                                                "checked":{"file":"checkbox-box-disabled-checked.bmp"},

                                                                                "indeterminate":{"file":"checkbox-box-disabled-indeterminate.bmp"}                                                                                    

                                                                }

 

 

Regards,

Ken

 

Comment
  1. Richard Lynskey
  2. Tuesday, 5 March 2019 13:35 PM UTC
Alright, that's basically what I assumed, that it was all-or-nothing.
  1. Helpful
There are no comments made yet.
Olan Knight Accepted Answer Pending Moderation
  1. Tuesday, 5 March 2019 20:02 PM UTC
  2. Beta Testing
  3. # 1

In the older versions of classic PB, you can do this yourself.
1) Create an image of the disabled object>
2) Set that new object to taborder of zero, not visible
3) Please the object exactly underneath the object for which it represents the DISABLED version
4) Set the expression of the Y position to overwrite the Y position of the standard, enabled object when THIS object is visible
5) In your code, when the original object is to be disabled, set its taborder to zero, EDIT to FALSE, and set the VISIBLE property of the DISABLED object to true.

Olan

Comment
  1. Richard Lynskey
  2. Tuesday, 5 March 2019 20:05 PM UTC
So as a workaround, especially once the theming is permanent, since we even have the exact image that Appeon is using, that's a definite possibility. Not something I could automate easily across every datawindow where we have a checkbox, but I could hit some of the major ones. Thanks!
  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.