あったあった。何に使うのかわからんけどどうぞ。 0309デフォルトの名無しさん2011/12/06(火) 11:00:02.97>>307,308 何から何まですみません。 03102552011/12/06(火) 11:57:28.16 wxAccessibleってマニュアルに For details on the semantics of functions and types, please refer to the Microsoft Active Accessibility 1.2 documentation. とか、 Availability: only available for the wxMSW port. とかあるけどlinuxで意味あるのか? 0311デフォルトの名無しさん2011/12/06(火) 14:11:37.79>>310 下のサイト http://www14.ocn.ne.jp/~bkclass/doc_wxsamples.html を見て、サンプルのソース実行して勉強してたんですけど、accessっていうサンプルをコンパイルして実行をしようとすると、 "This sample has to be compiled with wxUSE_ACCESSIBILITY" というメッセージが出たので、 Windowsのみ本体のwxUSE_ACCESSIBILITYを1にする、とは書いてあったんですが、動いてないということはLinuxでも必要なのかと勝手に思い込んでこちらで聞いてみたんですが、やっぱりLinuxでは意味が無いんでしょうか… 03123112011/12/06(火) 14:27:45.09 度々すみません。 こちらでもマニュアルを確認したら、accessはWindowsのみと書いてありました。 今度からはマニュアルを良く読んで、わからなかったらこちらで聞きたいと思います。 自分自身でもあんまりにゆとりすぎて反省してます…。 みなさん大変ご手数をおかけしました。 0313デフォルトの名無しさん2011/12/07(水) 15:35:36.35 ほとんどのゆとりにくらべたらまだましなほうだわ 0314デフォルトの名無しさん2011/12/07(水) 19:17:24.24 ゆとりはHSPとかC#に行くだろうからこっちには来ないだろうな あとC++のGUIライブラリで有名で日本語ドキュメントがあるのはQtとかgtkだろうからさらにやる人は減る 最後にwxWidgetsは英語の知識とC++のオブジェクト指向がわかってないとできないから挫折する人も多いだろう
GetIntは wxCommandEvent::GetInt int GetInt() Returns the integer identifier corresponding to a listbox, choice or radiobox selection (only if the event was a selection, not a deselection), or a boolean value representing the value of a checkbox.
と書いてあり、GetSelectionは Returns item index for a listbox or choice selection event (not valid for a deselection).
と書いてあるのですが、GetIntの選択されたリストボックスに対応付けられたInt型と言うのはGetSelectionで返される値と何か違うものなのでしょうか? 0320デフォルトの名無しさん2011/12/16(金) 13:32:13.51 ver 2.8.12 include/wx/event.h 538: int GetSelection() const { return m_commandInt; } 554: int GetInt() const { return m_commandInt; } 0321デフォルトの名無しさん2011/12/22(木) 01:35:21.75 リストボックスの中に、入れ子でリストボックスを作りたいと思いマニュアルを見て、wxListBoxのメンバ関数であるCreate関数を利用すれば2段階リストが構成できるということまではわかったのですが、Create関数の使い方がいまいちわかりません。
おもしろいことやっているじゃん。誰か今から参加しろよ。 0346本田2011/12/31(土) 22:24:08.47>>340 http://www.wxwidgets.org/ wxWidgets 2.9.3 Released 2011-12-14
While this is still officially a development release because some API details are still not frozen, we believe that 2.9.3 can be used in production environment, especially for the new projects for which (small) changes in behaviour since 2.8 are not a problem. Give it a try and let us know what do you think! 0347デフォルトの名無しさん2012/01/01(日) 00:03:23.71 2.8もバグ多い 0348デフォルトの名無しさん2012/01/01(日) 11:14:18.13 サイザーage 0349【大吉】【683円】2012/01/01(日) 12:26:18.78 今年のおみくじは大吉を良く目にする 0350【大吉】2012/01/01(日) 13:38:44.46 今年はwx使うことあるかなー 0351デフォルトの名無しさん2012/01/04(水) 16:51:15.64 wxWebViewって縦書きに対応してる? 0352デフォルトの名無しさん2012/01/05(木) 01:29:02.25 wxTextCtrlの内容を一行ずつ読み込みたいです。 行数を調べるのに以下のやり方でいいのかと考えたのですがエラーがでます。
C:\Users\x\Desktop\practice\practiceMain.cpp||In member function 'void practiceFrame::OnButton2Click(wxCommandEvent&)':| C:\Users\x\Desktop\practice\practiceMain.cpp|225|error: 'TextCtrl1' is not a member of 'wxTextCtrl'|
試しに以下のことをやってみたのですがエラーがでました。 int abc = TextCtrl1.GetNumberOfLines(TextCtrl1); C:\Users\x\Desktop\practice\practiceMain.cpp|225|error: request for member 'GetNumberOfLines' in '((practiceFrame*)this)->practiceFrame::TextCtrl1', which is of non-class type 'wxTextCtrl*'| int abc = TextCtrl1.GetNumberOfLines(); C:\Users\x\Desktop\practice\practiceMain.cpp|225|error: request for member 'GetNumberOfLines' in '((practiceFrame*)this)->practiceFrame::TextCtrl1', which is of non-class type 'wxTextCtrl*'|
cドライブ直下に、MinGWとmsysというのを導入後、msys.batで端末?を起動しました。 そこで、./configure --disable-shared --enable-monolithic --enable-unicodeと行い、make make installまでは行いました。 make installした成果物?をwindowsの実行環境にどうもっていくか調べているところです。
/usr/bin/ld: cannot find -lgdk_pixbuf-2.0 /usr/local/lib/libwx_baseu-2.8.a(baselib_dlunix.o): In function `wxDynamicLibrary::GetProgramHandle()': dlunix.cpp:(.text+0x13): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/i686-linux-gnu/4.6.1/../../../i386-linux-gnu/libgio-2.0.a(libgio_2_0_la-glocalfileinfo.o): In function `lookup_gid_name': (.text+0x1a5c): warning: Using 'getgrgid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/local/lib/libwx_baseu-2.8.a(baselib_utilsunx.o): In function `wxGetUserHome(wxString const&)': utilsunx.cpp:(.text+0x14f5): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking utilsunx.cpp:(.text+0x157a): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/i686-linux-gnu/4.6.1/../../../i386-linux-gnu/libglib-2.0.a(gutils.o): In function `g_get_any_init_do': (.text+0xe2a): warning: Using 'setpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/i686-linux-gnu/4.6.1/../../../i386-linux-gnu/libglib-2.0.a(gutils.o): In function `g_get_any_init_do': (.text+0xe40): warning: Using 'endpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
2行目より後は警告だから無視してもいいのかもしれないが、意味としては 「warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking」 「警告:コンパイルに使っとるglibcがシェアードライブラリじゃねーか、スタティックライブラリでリンクしろよクソ野郎」
という感じですか、間違ってたらすまん。頑張ってgdk-pixbufとwxとglibのライブラリを手に入れてください(もちろんスタティックライブラリで) 0382デフォルトの名無しさん2012/01/12(木) 18:42:52.46 あ、でも 「warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking」系のエラーは スタティックライブラリを使っても出ることがあるみたいだな。 つーことは一番の目標はgdk-pixbufをインストールすることか。簡単じゃん。 0383デフォルトの名無しさん2012/01/12(木) 19:03:01.17 ここまでおまえの自演 0384デフォルトの名無しさん2012/01/12(木) 20:59:28.67>>381 後から見返してみると私の状況説明がたりないため、自業自得ですが、 どこまで甘えてんだよと言われましても>>379までの-staticオプションをつけてコンパイルする、というのは>>371ですでにためしたと説明したつもりだったのですが、すみません。
一応libgdk-pixbuf-2.0.0、libgdk-pixbuf-2.0.dvg はインストール済みで、wxWidgetsはもちろん入れています。glibやlibcもapt-cache searchを使って目についた関連がありそうなものをインストールしまくって、コンパイルした結果上記のエラーが出ています。 また、libc.aと言うファイルを5時間ほど探しつづけましたが見当たらず、また、下記のリンクの一番下の回答者の Check your Output mode settings, I believe you have linking set to "static". So the linker is looking for libgdk-pixbuf-2.0.a, which is probably not present. If you switch it to "shared" it should begin to work..