wxwidgets

Is there a AUI pane move (or dock) event in wxPHP?

只愿长相守 提交于 2019-12-23 17:12:24
问题 On this question I have been attempting to capture a AUI pane configuration so that it can be restored if any panes have been closed. The docs are somewhat limited for wxPHP, and upstream for wxWidgets, so I am largely feeling my way around. I have realised that SavePaneInfo will help me capture the state of a pane - it outputs a perspective string that represents the position and options for a pane at a given moment. All I need to do therefore is to capture when the pane changes and update

How can I ensure that a wxFrame is brought to the foreground?

老子叫甜甜 提交于 2019-12-23 09:43:03
问题 I have a wxFrame that receives events. Whenever an event comes in, I want the frame to be brought to the foreground. I'm currently using: my_frame->SetFocus(); But that doesn't seem to work for minimized frames. How can I set the frame as the active window and bring it to the front? Alternatively, is there a method that flashes the title? 回答1: I don't have a useable example but have you ever tried my_frame->Raise() It raises the window to the top of the window hierarchy. 来源: https:/

wxWidgets - Event table vs Connect()?

梦想的初衷 提交于 2019-12-23 07:48:07
问题 I have just started learning wxWidgets, version 3.0, with C++. I have noted, that event handling in wxWidgets is done by Event tables. But one tutorial also mentioned Connect() - actually it just said : " this tutorial will be using event tables, not Connect() " . I would like to know, what is the philosophy behind Event tables and behind Connect() ? What is the difference, when is one more suitable than the other... Thank you. 回答1: First, don't use Connect() which was superseded by Bind()

avoid windows resizing with wxFormBuilder

╄→尐↘猪︶ㄣ 提交于 2019-12-23 04:22:11
问题 Working with wxFormBuilder under windows 7, Is there any way to set my main wxFrame to a fixed size avoiding resizing? Thanks 回答1: I don't know how to do it specifically with wxFB, but you need to remove the wxRESIZE_BORDER style from your frame. As it is used by default, you may need to explicitly specify the flags you do want to use, e.g. wxDEFAULT_FRAME_STYLE & ~(wxRESIZE_BORDER | wxMAXIMIZE_BOX) . 回答2: Yes, you can avoid a wxFrame resizng in wxFormBuilder by simple specifying you frame

WrapSize and Scrollbar : widgets not drawn at startup won't draw later

独自空忆成欢 提交于 2019-12-23 03:53:13
问题 By using the accepted solution from ScrolledPanel with vertical scrollbar only and WrapSizer, here is a way of putting some custom MyControl into WrapSizer with a vertical scrollbar : Unfortunately, the items that are not drawn at startup won't draw later, even after moving the scrollbar. Here only the first 9 buttons (among 20) are drawn : import wx import wx.lib.scrolledpanel as scrolled class MyControl(wx.PyControl): def __init__(self, parent, i): wx.PyControl.__init__(self, parent, wx.ID

Display large result set

偶尔善良 提交于 2019-12-22 17:51:14
问题 This is my problem: I need to store a lot of log messages and thought it would be smart to keep it in a SQLite3 database to be able to search and filter it easily. I will display the log messages in a standard list widget (using wxWidgets). The list will have several columns and can be sorted and filtered by the user. Now, I'm not sure what is the best way to handle this. I'm thinking about some possible solutions: Read all messages to memory. When there is a new or changed log message (at a

wxpython ogl package drag event

微笑、不失礼 提交于 2019-12-22 14:59:30
问题 I'm testing the ogl package in wxpython. I want to drag a shape. And when I do drag it, I want a second shape to move at the same time. The problem is that I have not found a move/drag event. Only pre and post move events. The only solution I can think of is to hide the second shape, and redraw it at the new position when the dragging is done. And is the ogl package no longer maintained? Oerjan Pettersen 回答1: OGL was part of the contrib directory in wxWidgets up until version 2.8; contrib has

Error building wxWidgets using -j (jobs) option with MinGW

こ雲淡風輕ζ 提交于 2019-12-22 13:53:29
问题 I'm compiling WxWidgets for Windows using the following command line: mingw32-make -f makefile.gcc BUILD=release SHARED=1 -j6 The last parameter ( -j ) is used to speed up the compilation by running multiple jobs in parallel, in my case making full use of my 6-core processor. A single-threaded build normally takes very long. However, I get the following output when hitting Enter: if not exist gcc_mswudll mkdir gcc_mswudll if not exist ..\..\lib\gcc_dll mkdir ..\..\lib\gcc_dll if not exist ..\

wxWidgets: How to catch left-click on wxListCtrl?

一曲冷凌霜 提交于 2019-12-22 12:54:20
问题 I want to add checkboxes to a wxListCtrl, and this works fine except there doesn't appear to be an EVT_LIST_ITEM_CLICK or EVT_LIST_ITEM_LEFT_CLICK event to catch when the mouse is clicked on the item so the image can be toggled. There are events for right and middle click, just not left click - which means you have to middle or right click to tick/untick the items in the list. Does anyone know whether there is a left-click event you can use? I tried the item selected and item activated events

how can i access serial port data in c++ using wxwidgets

↘锁芯ラ 提交于 2019-12-22 09:55:34
问题 i am electronics and communication engineering student. i am working on a project in which a microcontroller send data to serial port of computer (asynchronously). i currently learning wxWidgets for my GUI work. my question- is it possible to do using wxWidgets to get data and display. is it very difficult to implement this. i search for it but not get direct answer that how to implement this. so suggest me what i need to read for this. and what alternative available to do this. i use windows