wxwidgets

GUI layout with wxSizer, wxSashWindow

风流意气都作罢 提交于 2019-12-25 02:26:34
问题 I'm trying to create a window which is splitted into 2, 3, 4 etcc different resizable views in mainwindow and I'd like to implement that with wxWidgets in C::B. Actually th canvas itself splits the windows in the requested numbers, but it doesn't place any sash alongn the border of views so that it's very diffciult to notice which view starts where and ends where. I create everything on run time and I was planing to place the sash, or panels around borders of views and hoping to work in my

wxFrame resizing in wxNotebook

自古美人都是妖i 提交于 2019-12-25 02:22:21
问题 I am using wxwidget in windows. I have GUI which has several tabs. The requirements is user should have possibility resize the frame when switching between tabs. Now the current code is written like this. void XTab::OnPageChanged(wxNotebookEvent & event) { if(isActive()) { int page = event.GetOldSelection(); if(page!=-1) { XPanel * panel = (XPanel*)GetPage(page); panel->onUIDeactivate(); } page = event.GetSelection(); if(page!=-1) { XPanel * panel = (XPanel*)GetPage(page); xdmlASSERT(!panel-

Is it possible to change the colour of the “focus selector” of a ListCtrl?

。_饼干妹妹 提交于 2019-12-25 01:51:48
问题 In Mozilla Thunderbird mail you can assing items in a list a colour. The "focus selector" usually has the "cursor colour" that is defined by the window theme on your OS. Now, when you select a coloured item in Thunderbird, the focus cursor changes colour accordingly. That is to indicate that this item has a colour. Otherwise the user could only see that this particular item has a colour by moving away the "focus selector". Now, is this possible in WxWindows, a WxListCtrl? Apart from changing

CodeBlocks: How to build C++ App w using wxWidgets library DLLs

浪尽此生 提交于 2019-12-25 01:43:34
问题 I have downloaded and installed binaries of wxWidgets and Codeblocks onto my PC with Windows 10. Codeblocks builds and runs HelloWorld. With Codeblocks I then open an existing DEV-C++ project which uses wxWidgets - Codeblocks compiles this with no problems, but the linker fails with a message that a library dll file of Widgets is an "unrecognized format". have spent several hours looking for help on this forum and on the widgets site. I have read about Export Libraries which bridge the gap

wxWidgets: can't inherit from wxListCtrl

旧时模样 提交于 2019-12-25 00:55:51
问题 I have a freeze problem with the following code: (EBCFrame is an inherited class (wxFrame). Look for the "else" part, thank you) void EBCFrame::OnOpen(wxCommandEvent& event) { int error = 0; _window = new wxScrolledWindow(this, wxID_ANY, wxPoint(0, 0), wxSize(600, 400), wxVSCROLL|wxHSCROLL); wxFileDialog* fileDialog = new wxFileDialog(this, wxT("Select a file"), wxEmptyString, wxEmptyString, wxT("Event Bus configuration file (*.ebf)|*.ebf|Txt|*.txt|All|*")); if(fileDialog->ShowModal() == wxID

wxpython message dialog right to left

三世轮回 提交于 2019-12-24 20:18:51
问题 i am using this command, which should switch my layout to RTL but the message dialog is still LTR: self.SetLayoutDirection(wx.Layout_RightToLeft) message dialog: FinishMessage=wx.MessageDialog(self, "הבדיקה הסתיימה\r\n התוצאות נמצאות בקובץ אקסל במיקום הקובץ", caption="סיום בדיקת ניחות",style=wx.OK) how do i fix the text will be right to left? 来源: https://stackoverflow.com/questions/47246408/wxpython-message-dialog-right-to-left

Binding event to wxMenu instead of wxMenuItem

喜夏-厌秋 提交于 2019-12-24 18:17:39
问题 Im creating a dynamic MenuBar from xml file, and binding events to menu items using Connect(). Some menus does not have items inside, but needs to fire events. Is there a way to attach an event handler to a wxMenu using Connect()? *Im Using wxWidgets 2.8.8 & MS VC++ 6.0 回答1: Ive tried many things, but nothing worked out for me. As a quick answaer ill quote Vadim Zeitlin from wx-widgets list: No, you shouldn't associate commands directly to top level menus. This is discouraged under all

What is the best way to include a header file (wx.hrl for example) in a release using rebar

China☆狼群 提交于 2019-12-24 14:23:56
问题 I am preparing a release for an application using rebar, and I wonder what is the usual way to include header file from standard library. In my case, it is the wx.hrl file, which is included with its full absolute path in my code. I guess that it is not the right way :o) 回答1: -include_lib("wx/include/wx.hrl"). This makes the preprocessor look for the latest version of the wx application in the code path. See this question for more details. 来源: https://stackoverflow.com/questions/18363244/what

wxPython/ReportLab: How to create and open a .pdf file on button clicked

不羁岁月 提交于 2019-12-24 12:43:50
问题 Good day all, For about 3days I have been trying hardest to get my way around this! I have a perfectly working wxFrame as well as a perfectly working ReportLab pdf script. See the code files below respectively (Note: data1.py is the GUI while data2.py is the running pdf script). My problems are:- 1) I want the pdf script to run only after I press the “Save To PDF” button 2) The value of the name field (as stored in a variable “NameString”) should be added to the generated pdf file. At the

Getselections() is not working properly for wxtreelistctrl sample from wxWidgets 3.0.3

我的梦境 提交于 2019-12-24 12:20:16
问题 I am building treelist project from samples folder of wxWidgets 3.0.3 . After running that treelist project, I got a window, I selected 2-state-checkboxes and multiple selections from style. then I selected some of the checkboxes of that tree. when I clicked on Dumpselections from operations . Now, while debugging controller is going into OnDumpSelection() . In Ondumpselection() , getselections() is executed, here getselections should return total no of selected nodes and go into default case