wxwidgets

My program prevents Windows from shutting down!

My wxwidgets program does not allow the computer to shutdown when the user clicks on Shutdown. I had issues with exiting the program normally so I've been calling exit() directly instead of deleting the top window as wxwidgets says to do. The exit workaround has been working but it seems wxwidgets can't exit when it receives shutdown win...

How to catch scrolling events in wxGTK?

I have a wxTextCtrl with a vertical scrollbar. I need to capture scroll events from the text control's scrollbar. I have a handler for EVT_SCROLL but it only gets invoked on the Windows build. On wxGTK it does nothing. Is there any way to make this work? ...

OS X Widget Scroll Issue

Hi there, I've built a widget for OS X. It's written in Flash (bah, I know) and is injected into the widget canvas via SWFObject. The problem I'm having is that the Flash has a scroll function and the entire widget is grabable. How can I disable the grab functionality on certain parts of the widget and enable it for others? I could alw...

Embedded wxWidgets for ThreadX OS

I'm working on an embedded system using ThreadX. The project will involve a GUI. I'm looking for a port of wxWidgets for embedded on ThreadX operating system. My search has turned up wxWidgets for embedded Linux and WinCE. Also, is wxWidgets difficult to port to a new (different) OS? Thanks, (The project tools are C++ using Gre...

If window spans multiple monitors, I can't draw to it.

If I have a window that spans both monitors on a multimonitor system, I can't seem to erase (paint black) the entire window. Instead, only the primary window is drawn black. The secondary remains the original white color. Has anyone seen this behavior? wxwidgets: wxClientDC dc(this); Erase(dc); void SpriteWindowFrame::Erase(wxDC& d...

Problem with AuiMDI frames in wxPython.

I am creating a AuiMDIParent frame and inside that parent frame I have a AuiMDIChild Frame. Inside the child frame I have a panel which displays an image. My problem is that when I run my code (given below) I get the desired result, but when I try to close the main window that is the parent frame, nothing happens. Then when I close the c...

How to receive drop events in a wxTextCtrl?

I have a wxTextCtrl-derived class that overrides OnDropFiles. However, dragging something over the control does nothing. (The cursor changes to the 'not allowed' cursor.) I tried DragAcceptFiles(true) but that only enabled the built-in drop handler. (Which just loads the file into the control.) How can I get my own handler to be invoked?...

Problem sending message to wxruby's StyledTextCtrl

I am using wxruby's StyledTextCtrl. I want to get direct function and pointer from the handle so that I can reuse some old codes written in C. But the output of the following code is "0, 0", which means send_msg() returns nothing but 0. require 'wx' module Wx App.run do frame = Frame.new nil, :title => "stc" stc = StyledTextC...

BadAlloc and crash in wxWidgets program. How to find the error?

Hello, We have a fairly large cross-platform C++ program running on wxWidgets. Recently a big chunk of code was ported over from windows to linux, and since then the program crashes upon the display of a pop-up dialog. The error message printed to the console is: The program 'program name' received an X Window System error. This probab...

Side effects of handling EVT_PAINT event in wxPython.

Whenever I handle EVT_PAINT event by binding it to a function some problem occures the frame/window opens up but it cannot be closed when I click on the close option on the top-right corner of the frame. Can any one tell me what can be the reason for this ??? Apart form that there is a lot of flicker that occures. The purpose of the cod...

Easiest way to download HTML page from web?

I have a web page whose content I'd like to download into a wxString. For example, let's say that page is this: http://www.example.com/mypage.html And wxString would contain HTML source. In some other languages, say PHP for example, I would write something like this: $html = file_get_contents('http://www.example.com/mypage.html'); ...

wxWidgets socket events in a DLL

I'm working on a project that is using wxWidgets sockets in a DLL and I'm getting odd behaviour. I'll go through the problem from the top and drill down. I apologize if I've provided too much (or too little) information; I've tried to prune down the excess. First, the odd behaviour: The server is created, and my client connects to it. ...

Listing the event handlers for a wxPython window

I have a wxPython window. How can I check its event handler table? (i.e. which handler is handling each event.) ...

My wxFrame has a small thin 1 px border around it even though I asked for no border. Why?

Using wxwidgets. I want a window without a border. I pass the follwoing flags to the frame wxFRAME_NO_TASKBAR | wxSTAY_ON_TOP but it still draws a black outline 1 px wide around the window. Is this a bug or something? ...

WxWidgets draw a bitmap with opacity

How can I draw a wxImage, or wxBitmap to a DC with opacity? It looks like its not possible with the standard DC or with wxGraphicsContext. BeginLayer/EndLayer is not yet implemented in wxGraphicsContext which would have been one solution. GDI+ doesn't seem to support layers, so it would be non-trivial to add this. The only solution se...

How to get wxAUIToolbar to display partially transparent buttons?

Basically, I want antialiased buttons. I tried png and xpm bitmaps, but they don't seem to allow partial transparency - at least not that I know of. How can this be done? Is there a certain format to use? ...

A terminal-like window for wxWidgets?

I'm looking to add an element to my wxWidgets GUI that behaves like a terminal emulator. Not in terms of a shell which executes commands, but just the input-output setup of an application running in a terminal. Basically, the requirements are: Streaming input/output: When you enter a character, it is added to an input stream, and when...

Capturing network status change event

I am trying to get events when the internet connection is reestablished after it is lost. It is for a data transfer software that I am developing. If I lose the network during data transfer, I would like to be notified when it is back and continue the transfer automatically. I can of course create a separate thread and check the network...

Is Perl a good option for writing platform independent desktop applications?

Is Perl a good option for writing (possibly and partially) platform independent desktop applications? I know there are interesting widget libraries like GTK2 Perl and wxWidgets but I'm not familiar with development on Windows. Is it possible to write a good application with Perl and those tools, maybe embedding everything needed to avoi...

Starting wxWidgets C++ need a gentle nudge

So I've been learning C# for like a year now (I'm 20 years old) and I'm getting pretty confident with it. I've also been meddling with C++ every now and again. For example just recently I've been following the Nehe OpenGL tutorials for C++ and I find it a fun way of learning. I want to start looking at creating cross platform GUI softwa...