Search found 118 matches

by JohnD
Sat Mar 03, 2012 1:19 pm
Forum: C++ Development
Topic: Event when resize has finished?
Replies: 8
Views: 2205

Re: Event when resize has finished?

JimFairway wrote:Hi,

Additionally to David's suggestion, you could catch the wxIdleEvent which is sent after UI activity has settled down.
Check http://docs.wxwidgets.org/stable/wx_wxidleevent.html

Good luck,

Jim
You reckon the first Idle event after OnSize would be guaranteed to be the one I want?
by JohnD
Fri Mar 02, 2012 6:30 pm
Forum: C++ Development
Topic: Event when resize has finished?
Replies: 8
Views: 2205

Re: Event when resize has finished?

It's not specifically during a prolonged resize, even maximizing the window gets this effect... OnSize is called before the layout is updated. I want to evaluate the size of a child control, prompted by the resize, but after everything is recalculated. There's no way to catch this?
by JohnD
Fri Mar 02, 2012 6:18 pm
Forum: C++ Development
Topic: Event when resize has finished?
Replies: 8
Views: 2205

Re: Event when resize has finished?

I need to know the paint event is because of the resize in that case.
by JohnD
Fri Mar 02, 2012 5:35 pm
Forum: C++ Development
Topic: Event when resize has finished?
Replies: 8
Views: 2205

Event when resize has finished?

I catch OnSize in my top-frame, but it seems to be caught after the main window is resized, but before the rest of the app has been updated. Is there an easy way to be notified after everything has been updated?
by JohnD
Thu Mar 01, 2012 8:53 am
Forum: C++ Development
Topic: Debug alert in Release? Why?
Replies: 20
Views: 12460

Re: Debug alert in Release? Why?

It's like i said, since wx 2.9.x assert messages are enabled by default even in release builds. I don't think you did say that... That's a new feature in wx 2.9.x, asserts are enabled in debug mode by default. Either I misunderstood (quite probable) or you should edit your first post for clarity :)...
by JohnD
Thu Mar 01, 2012 8:50 am
Forum: C++ Development
Topic: Programatically set/unset top-window resizing
Replies: 3
Views: 1062

Programatically set/unset top-window resizing

My app normally allows the user to resize the main window, but in one circumstance I want to disable this (we're doing video recording and changing the size of what's being copied would mess things up). Is it possible to do so in a simple programatic way?
by JohnD
Mon Feb 20, 2012 12:54 pm
Forum: C++ Development
Topic: Launch and read output from a cmd-line app
Replies: 1
Views: 482

Launch and read output from a cmd-line app

On Windows only (for now), I want to launch an external cmd-line tool from my wx app. As well as passing in command-line args, I need to know when the launched process has finished, and I need to be able to read the output (stderr/stdout) to monitor what's going on. Does wx provide the tools for thi...
by JohnD
Fri Feb 10, 2012 10:56 am
Forum: C++ Development
Topic: Create a temporary DIRECTORY
Replies: 2
Views: 900

Re: Create a temporary DIRECTORY

That's what I do right now (or similar using timestamp) in the absence of a helper method. I also wondered about creating a temp file with automatic name and then replacing it with a directory of the same name, but it seems a bit hacky :)
by JohnD
Fri Feb 10, 2012 10:02 am
Forum: C++ Development
Topic: Create a temporary DIRECTORY
Replies: 2
Views: 900

Create a temporary DIRECTORY

I have a use-case where my app will spit out a large number of temp-files, and I want to create a new dir for these files each time, under the standard system temp dir. Is there any directory equivalent to wxFileName::CreateTempFileName, and if not what would be the simplest/recommended way? I don't...
by JohnD
Sat Feb 04, 2012 3:09 pm
Forum: Platform Related Issues
Topic: Get Mac Serial Number
Replies: 1
Views: 511

Get Mac Serial Number

I don't suppose wx has built-in support to read serial # on Apple Macs? I found some sample code here:
https://developer.apple.com/library/mac ... CH1-TNTAG3

But if wx had this already that would be super-wonderful :)
by JohnD
Tue Dec 13, 2011 9:02 am
Forum: C++ Development
Topic: Problems with wxScrolledWindow
Replies: 5
Views: 1098

Re: Problems with wxScrolledWindow

Did you want me to try your whole app sample to test on my Win/wx version, or for me to try and use your scrollable class in my existng code?
by JohnD
Mon Dec 12, 2011 7:44 pm
Forum: C++ Development
Topic: Problems with wxScrolledWindow
Replies: 5
Views: 1098

Re: Problems with wxScrolledWindow

Win7, wx2.8.10. wx's sizing still confuses me but I think the issue could be that the parent wxPanel is getting resized after all the children are added to the wxScrolledWindow... but I could be wrong. Should I be calling wxScrolledWindow::FitInside every time the parent window is sized, or should i...
by JohnD
Mon Dec 12, 2011 4:32 pm
Forum: C++ Development
Topic: Problems with wxScrolledWindow
Replies: 5
Views: 1098

Problems with wxScrolledWindow

I imagine this must be a common issue, but when my wxScrolledWindow contains enough elements to display the vertical slider, the reduced width due to the vertical slider being shown is causing the horizontal slider to also appear. I'm not setting any sizes explicitly, the wxScrolledWindow is a child...
by JohnD
Mon Dec 12, 2011 11:25 am
Forum: C++ Development
Topic: wxFileDialog Vs wxFileSelector()
Replies: 1
Views: 575

wxFileDialog Vs wxFileSelector()

I want to present a save-file dialog. I was planning to use wxFileDialog class but I noticed the method ::wxFileSelector(). Except for the method being a bit simpler to use, what differences are there? I'm primarily targeting Windows.
by JohnD
Mon Dec 05, 2011 5:59 pm
Forum: C++ Development
Topic: Timestamp file name
Replies: 1
Views: 952

Timestamp file name

I have a feature where my app auto-saves a screen-grab. I want to name it with a prefix (user-name), then a timestamp string which would mean sorting files by name would put them in the right time-order... e.g year/month/day/hour/min/sec. It seems pretty likely wx has something like this I can just ...