styleSheet ini-Eintrag

  • Also, die KI meint:

    "GEOS writes a single GenControlUserData struct under the app’s category and the styleSheet key; the struct is defined as GCUD_flags, GCUD_userAddedUI, GCUD_userRemovedUI, GCUD_userAddedToolboxUI, and GCUD_userRemovedToolboxUI (CInclude/Objects/gCtrlC.goh:213-223).

    GCUD_flags uses GCUF_USER_UI/GCUF_USER_TOOLBOX_UI to say which of the following bitfields are meaningful (same file:213-215).

    Each bitfield is a mask of StyleSheet features; the bits map directly to SSCF_DEFINE, SSCF_REDEFINE, SSCF_RETURN_TO_BASE, SSCF_APPLY, SSCF_MANAGE, SSCF_LOAD, SSCF_SAVE_STYLE, and SSCF_RECALL_STYLE for the main UI, plus the toolbox equivalents (SSCTF_*) (CInclude/Objects/styles.goh:226-250).

    When options load, the struct is pulled from the key and copied into HINT_GEN_CONTROL_USER_MODIFIED_UI, so GenControl can honor the stored add/remove masks (Library/User/Gen/genControl.asm:2282-2339).

    When saving, the same structure—capturing how the user customized which StyleSheet features appear in the menu/toolbox—is written back to the styleSheet key (Library/User/Gen/genControl.asm:5151-5184)."

    Ob das nun alles so stimmt, kannst du ja nachsehen :)

    Bye,
    MeyerK

  • Hallo Konstantin,

    die KI kennt sich ja wirklich gut im Source-Code aus!:huh:

    "When saving, the same structure—capturing how the user customized which StyleSheet features appear in the menu/toolbox—is written back to the styleSheet key (Library/User/Gen/genControl.asm:5151-5184)."

    Der Stylesheets-Eintrag ändert sich tatsächlich, je nachdem welche Features aktiviert wurden.

    Eigentlich hatte ich gehofft, mit diesem Eintrag die Default- Strichstärke zu ändern, aber das geht dann wohl nur über eine Änderung des Sourcecodes.

    Danke Konstantin:)