Board index FlightGear Development

PUI disable checkbox / radio button / whatever ?

FlightGear is opensource, so you can be the developer. In the need for help on anything? We are here to help you.
Forum rules
Core development is discussed on the official FlightGear-Devel development mailing list.

Bugs can be reported in the bug tracker.

PUI disable checkbox / radio button / whatever ?

Postby TheEagle » Sun Aug 29, 2021 10:00 pm

How to disable a PUI checkbox / radio button / input ? I tried adding <disabled>true</disabled>, but that didn't change anything.
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3412
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04

Re: PUI disable checkbox / radio button / whatever ?

Postby wlbragg » Mon Aug 30, 2021 4:01 am

Can you be more specific? Usually you give it an enable condition such as...

Code: Select all
       <enable>
          <not>
            <property>/sim/rendering/rembrandt/enabled</property>
          </not>
        </enable>
Kansas and Ohio/Midwest scenery development.
KEQA, 3AU, KRCP Airport Layout
Intel i7/GeForce RTX 2070/Max-Q
User avatar
wlbragg
 
Posts: 7588
Joined: Sun Aug 26, 2012 12:31 am
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/RTX 2070

Re: PUI disable checkbox / radio button / whatever ?

Postby TheEagle » Mon Aug 30, 2021 1:24 pm

I have a dialog with checkboxes and radio buttons. Some of the things that can be selected / enabled with these has not yet been implemented. This is why I want to disable them.
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3412
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04


Return to Development

Who is online

Users browsing this forum: No registered users and 6 guests