Objective-Cat TECHObjective-C - 暇つぶし2ch■コピペモード□スレを通常表示□オプションモード□このスレッドのURL■項目テキスト7:デフォルトの名無しさん 05/01/29 16:42:37 @implementation testApp - initApp:(int* )argcp :(char*** )argvp { [super initApp:argcp :argvp]; hadj = [[Gtk_Adjustment alloc] initWithAdjustmentInfo:0:0:0:0:0:0]; vadj = [[Gtk_Adjustment alloc] initWithAdjustmentInfo:0:0:0:0:0:0]; testLabel = [[[Gtk_Label alloc] initWithLabelInfo:"Objective-C"] show]; testBtn = [[Gtk_Button alloc] initWithLabel:"greeting"]; [testBtn connectObj:"button_press_event" :self]; [testBtn connectObj:"clicked" :self]; [testBtn show]; testBtn2 = [[Gtk_Button alloc] initWithLabel:"test2"]; [testBtn2 connectObj:"button_press_event" :self]; [[testBtn2 connectObj:"clicked" :self] show]; testLayout = [[Gtk_Layout alloc] initWithLayoutInfo :hadj :vadj]; [testLayout put:testLabel :(gint)0:(gint)0]; [testLayout put:testBtn: (gint)30:(gint)30]; [testLayout put:testBtn2: (gint)30:(gint)60]; [testLayout show]; winMain = [[Gtk_Window alloc] initWithWindowInfo:GTK_WINDOW_TOPLEVEL]; [[winMain add:testLayout] show]; [winMain signal_connect:"delete_event" signalFunc:gtk_main_quit funcData:NULL]; return self; } 次ページ最新レス表示レスジャンプ類似スレ一覧スレッドの検索話題のニュースおまかせリストオプションしおりを挟むスレッドに書込スレッドの一覧暇つぶし2ch