Jump to content

Adding popup options to record formats


JBenghiat

Recommended Posts

  • Member

You could add popup choices in the initialization of your global parameter by supplying some SParametricParamChc:

 

#define k_chc_def_tuerform 128

#define k_chc_def_anzeigeart_komplett 129

 

static SParametricParamChc    gArrChoices[] = {

    { k_chc_def_tuerform,    "Eckig",    {kTuerformChoices, "1"} },

    { k_chc_def_tuerform,    "Rund",    {kTuerformChoices, "2"} },

    //------

    { k_chc_def_anzeigeart_komplett,    k_un_door_choice_anzeigeart_draufsicht,    {kWindowDoorStringViewsComplex, "1"} },

    { k_chc_def_anzeigeart_komplett,    k_un_door_choice_anzeigeart_komplett_hybrid,    {kWindowDoorStringViewsComplex, "2"} },

    { k_chc_def_anzeigeart_komplett,    k_un_door_choice_anzeigeart_ansicht,    {kWindowDoorStringViewsComplex, "3"} },

    { k_chc_def_anzeigeart_komplett,    k_un_door_choice_anzeigeart_schnitt,    {kWindowDoorStringViewsComplex, "4"} },

    

    // TERMINATE

    { NULL, "", {0,0} }

};


static SParametricParamDef gArrParameters[] = {

        { k_un_door_cw_tuerform,    {kTuerLocalizedParameterStrings, garr_names_of_parameters[T9_DB_TUERFORM]},        "Eckig",    "Eckig",    kFieldPopUp,    k_chc_def_tuerform },

        { k_un_door_cw_anzeigeart_komplett,    {kTuerLocalizedParameterStrings, garr_names_of_parameters[T9_DB_ANZEIGEART_KOMPLETT]},        "Draufsicht",    "Draufsicht",    kFieldPopUp,    k_chc_def_anzeigeart_komplett },

        // TERMINATE

        { "", {0,0}, "", "", EFieldStyle(0), 0 }

};

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...