gWidgets と RGtk2 を使用して GUI を作成しました。GUI の一部は、gcomboboxes のセットを含むグレイアウトです。これらのボックスは最初は空で、ファイルがインポートされると入力されます。
X11 を介して実行されている Gtk+ を使用する Mac では、コンボボックスの幅が、コンボボックス内の最長のテキスト文字列に合わせてサイズ変更されます。Windows ではこれは起こらず、コンボボックスは長いテキスト文字列に対応するためにスクロールバーを取得します (写真を参照)。
再描画を強制するために可視性のオフとオンを切り替えてみましたが、サイズは固定されたままです。
Windowsマシンでサイズ変更を強制する方法はありますか?
関連するウィジェットを保持するコンテナーのコードは次のとおりです。
optionsBox <- ggroup(cont=controlGroup)
addSpring(optionsBox)
options <- glayout(cont=optionsBox, spacing=5, fill='y')
optList <- list()
options[1, 1, anchor=c(1,0)] <- 'Category:'
options[1, 2, anchor=c(-1,0)] <- optList$category <- gcombobox(category, cont=options)
options[2, 1, anchor=c(1,0)] <- 'Order:'
options[2, 2, anchor=c(-1,0)] <- optList$order <- gcombobox(order, cont=options)
options[2, 3, anchor=c(1,0)] <- optList$numeric <- gcheckbox('numeric', checked=TRUE)
options[3, 1, anchor=c(1,0)] <- 'Plottype:'
options[3, 2, anchor=c(-1,0)] <- optList$plottype <- gcombobox(c('Bar', 'Line'), cont=options)
addSpring(optionsBox)
幸運をお祈りしています
トーマス