0
林有一個小問題今天..二郎山 - WX筆記本電腦尺寸
我想創建一個AUI如圖所示WX模塊的演示程序。 無論我做什麼,實際標籤的大小都不會改變。
他們停留在大約400乘50,我不明白爲什麼。
我想這可能是當我打電話
我需要設置其大小,但也有大小,只要我可以告訴工作沒有選項,也沒有命令。
這是我使用的初始化代碼:
Server = wx:new(),
process_flag(trap_exit, true),
Frame = wxFrame:new(wx:null(), ?wxID_ANY, "TIBRA - TOP SECRET - Plutonyx Systems, LLC", [{size,{1500, 1000}}]), %%%REFERENCE TO WINDOW
wxFrame:connect(Frame, command_menu_selected),
Panel = wxPanel:new(Frame, [{size, {0, 0}}]), %%% REF TO PANEL IN FRAME
Manager = wxAuiManager:new([{managed_wnd, Panel}]),
Pane = ?pi:new(),
?pi:closeButton(Pane),
?pi:right(Pane),
?pi:dockable(Pane, [{b, true}]),
?pi:floatingSize(Pane, 300,200),
?pi:minSize(Pane, {500,500}),
?pi:paneBorder(Pane),
?pi:floatable(Pane, [{b, true}]),
Notebook = create_notebook(Panel, Manager, Pane),
create_notebook(Parent, Manager, Pane) ->
Style = (0
bor ?wxAUI_NB_DEFAULT_STYLE
bor ?wxAUI_NB_TOP
bor ?wxAUI_NB_WINDOWLIST_BUTTON
bor ?wxAUI_NB_CLOSE_ON_ACTIVE_TAB
bor ?wxAUI_NB_TAB_MOVE
bor ?wxAUI_NB_SCROLL_BUTTONS
),
Notebook = wxAuiNotebook:new(Parent, [{style, Style}, {size, {3050,200}}]),
Tab1 = wxPanel:new(Notebook, [{size, {3050,200}}]),
wxPanel:setBackgroundColour(Tab1, ?wxBLACK),
wxButton:new(Tab1, ?wxID_ANY, [{label,"New tab"}]),
listbox:createListBox(Tab1),
wxAuiNotebook:addPage(Notebook, Tab1, "You can", []),
Tab2 = wxPanel:new(Notebook, [{size, {3050,200}}]),
wxPanel:setBackgroundColour(Tab2, ?wxRED),
wxButton:new(Tab2, ?wxID_ANY, [{label,"New tab"}]),
wxAuiNotebook:addPage(Notebook, Tab2, "rearrange", []),
Tab3 = wxPanel:new(Notebook, [{size, {3050,200}}]),
wxPanel:setBackgroundColour(Tab3, ?wxGREEN),
wxButton:new(Tab3, ?wxID_ANY, [{label,"New tab"}]),
wxAuiNotebook:addPage(Notebook, Tab3, "these tabs", []),
%%wxAuiManager:setDockSizeConstraint(Manager, 5000, 2000),
wxAuiManager:addPane(Manager, Notebook, Pane),
wxAuiNotebook:connect(Notebook, command_button_clicked),
wxAuiNotebook:connect(Notebook, command_auinotebook_page_close, [{skip, false}]),
wxAuiNotebook:connect(Notebook, command_auinotebook_page_changed),
Notebook.
任何想法,將不勝感激。
最佳 -B
不再,任何想法同樣的問題? – BAR 2010-10-23 18:07:19