コンテキストメニューの非表示

【ご質問】
画面上で「Ctrl+右クリック」を行うとコンテキストメニューが表示されますが、
コンテキストメニューを非表示にすることは可能でしょうか?

【回答】
{disable-inspection-gesture}プロシージャを使うことで非表示にすることが可能です。

詳細は以下のサンプルをご参照ください。

{curl 6.0,7.0,8.0 applet}
{curl-file-attributes character-encoding = “shift-jis”}

{import * from CURL.GUI.CONTROL-BASE}

{value
    {disable-inspection-gesture}
    let cb1:CheckButton = {CheckButton
                                        label = “Ctrl+右クリック無効”,
                                       {on ValueChanged at cb:CheckButton do
                                           {if cb.value == true then
                                               {set cb.label = “Ctrl+右クリック有効”}
                                               {enable-inspection-gesture}
                                           else
                                               {set cb.label = “Ctrl+右クリック無効”}
                                               {disable-inspection-gesture}
                                           }
                                       }
                                   }
   
    let tf1:TextField = {TextField
                                 value = “This is a pen.”
                              }

    let people:RecordSet =
        {RecordSet
            {RecordFields
                {RecordField “First”, domain = String},
                {RecordField “Age”, domain = int}
            },
            {RecordData First = “John”, Age = 25},
            {RecordData First = “Jane”, Age = 28}
        }
    let rg2:RecordGrid = {RecordGrid
                                     record-source = people
                                  }
    let vbox:VBox = {spaced-vbox
                                cb1,
                                tf1,
                                rg2
                            }
   
    let v:View =
        {View    
            width = 350pt,
            height = 350pt,
            valign = “center”,
            halign = “center”,
            title = “sample”,
            vbox      
        }

    {v.show}
}

また、APIリファレンスの
[CURL.GUI.BASE]-[disable-inspection-gesture]
の項をご参照ください。