Search found 34 matches

by mr1x
Tue Oct 20, 2009 2:49 pm
Forum: Platform Related Issues
Topic: [Mac] RegisterHotKey
Replies: 0
Views: 447

[Mac] RegisterHotKey

It looks like RegisterHotKey is not implemented on Mac, even though Carbon provides the appropriate API.

If anyone more familiar with wxWidgets inner workings is interested, I'd be glad to collaborate with them on adding this functionality. I can use some wxMac expertise on that.
by mr1x
Tue Oct 20, 2009 2:47 pm
Forum: Platform Related Issues
Topic: [MAC] Changing application title at runtime
Replies: 5
Views: 1363

I wanted to modify application name *before starting* it. Anyway, if anyone is interested, one way to do that is by modifying Info.plist file. It's probably not the most graceful method but I haven't found another API to do so and I am not a Carbon/Cocoa expert (and neither are too many people on th...
by mr1x
Sat Oct 17, 2009 3:25 am
Forum: Platform Related Issues
Topic: [MAC] Changing application title at runtime
Replies: 5
Views: 1363

[MAC] Changing application title at runtime

Does anyone know of a way to change application title (i.e. what is displayed as a title for "application menu" on the top left, and also in the "Quit XXX" item)?

I found Java API for that, so clearly there is a way to do so, but C/C++ is another matter.
by mr1x
Thu Oct 15, 2009 2:47 pm
Forum: Platform Related Issues
Topic: Windows 7
Replies: 2
Views: 648

Good to know :) I was worried, looking at all the hype, they might have actually done something different (which would not be a good thing).

Back to the usual programming then.
by mr1x
Thu Oct 15, 2009 1:16 am
Forum: Platform Related Issues
Topic: Windows 7
Replies: 2
Views: 648

Windows 7

So, before I get myself into the topic - is there any information on building and using wxWidgets on Windows 7?

I.e. - does it work, if so - what are the build environment requirements, are there any general purpose guides on the topic etc?
by mr1x
Tue Apr 21, 2009 12:58 pm
Forum: Platform Related Issues
Topic: [wxMAC] setting focus to parent frame
Replies: 1
Views: 463

Found another workaround using Carbon API directly (more "#ifdef __WXMAC__" for me)

It is amazing how many things work great on WXMSW and WXGTK and fail on WXMAC. I don't know how to explain that.

Bounty is off, thanks all for your attention.
by mr1x
Tue Apr 21, 2009 4:06 am
Forum: Platform Related Issues
Topic: [wxMAC] setting focus to parent frame
Replies: 1
Views: 463

[wxMAC] setting focus to parent frame

As usual, Mac issue. I don't seem to be able to move focus programmatically back to the parent frame after creating a child frame. I am trying to create a little floating window ("baloon") that would move around with the mouse and show info. The problem is - once a child frame is created, it has the...
by mr1x
Tue Apr 21, 2009 3:49 am
Forum: C++ Development
Topic: Help with wxTaskBarIcon
Replies: 8
Views: 1144

Before reporting a bug, you should have tried longer... wxWidgets is certainly not perfect (what is?) but i do trust components, especially if they are used by thousand developers, and for a long time. Maybe is it just a misunderstanding of the way components work. Someone else could have pointed i...
by mr1x
Fri Apr 03, 2009 8:01 pm
Forum: C++ Development
Topic: Help with wxTaskBarIcon
Replies: 8
Views: 1144

doublemax wrote:and maybe take a lot at how the taskbaricon sample works.
It works (and crashes) the same way :)
I reported a bug to trac.
by mr1x
Wed Apr 01, 2009 6:50 pm
Forum: C++ Development
Topic: Help with wxTaskBarIcon
Replies: 8
Views: 1144

Help with wxTaskBarIcon

I am having a problem with wxTaskBarIcon - hopefully someone could enlighten me on the proper use. The following is for Win32 platform. I create task bar icon, which pops up a menu with handler for "Exit" function. In handler for the "exit" item I call Close() on my main application frame. In the ma...
by mr1x
Sat Mar 14, 2009 11:16 pm
Forum: Platform Related Issues
Topic: Heap corruption when using wxArrayString on Win32
Replies: 3
Views: 600

Auria wrote:This piece of code runs fine on my computer (wxmac 2.8.9), so you might want to look into platform-specific issues...
The platform is Windows XP SP3. Nothing special about it otherwise - vanilla installation, vanilla Visual Studio Express.
by mr1x
Sat Mar 14, 2009 5:55 pm
Forum: Platform Related Issues
Topic: Heap corruption when using wxArrayString on Win32
Replies: 3
Views: 600

Heap corruption when using wxArrayString on Win32

I am getting heap corruption when using wxArrayString on Windows (wxWidgets version is 2.8.9). int num = 0; wxArrayString testLines; while (1) { wxString newLine = wxString::FromAscii("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"); testLines.Add(newLine); if (num == 10) { testLines.RemoveAt((size_t)0, ...
by mr1x
Thu Mar 12, 2009 3:29 am
Forum: C++ Development
Topic: Custom events revisited
Replies: 4
Views: 522

Found the problem, I'll leave it here in case anyone else hits it. Examples use wxCommandEvent(commandType, id) - note the order of arguments to a constructor. I used wxEvent(id, commandType) :) It would be nice to have a consistent calling convention to event constructors, or at least different typ...
by mr1x
Thu Mar 12, 2009 2:11 am
Forum: C++ Development
Topic: Custom events revisited
Replies: 4
Views: 522

DECLARE_EVENT_TYPE does not go inside the event table, it is a declaration so goes in a header. It is in a header, it is not in the event table (it is surrounded by BEGIN_DECLARE_EVENT_TYPES()/END_DECLARE_EVENT_TYPES(), not by event table BEGIN_EVENT_TABLE/END_EVENT_TABLE In your event table, put E...
by mr1x
Thu Mar 12, 2009 1:00 am
Forum: C++ Development
Topic: Custom events revisited
Replies: 4
Views: 522

Custom events revisited

I see that there is another question on custom events, but mine is even more basic, perhaps. Incidentally, I also have a kind of communication event I'd like to define. I defined everything according to "cookbook" (and it looks like it matches the code in other post too). However, my custom event is...