Search found 59 matches

by arkanes
Fri Jul 27, 2007 6:22 pm
Forum: General Development
Topic: wxWidgets vs plain GTK+?
Replies: 3
Views: 3385

Is that (native widgets) the main reason that people use wxWidgets instead of GTK+ on linux? In general, people who use wx instead of GTK+ on linux do so because a) they want good cross platform support, b) they know wx and not gtk+ and/or c) they prefer the wx API to the GTK api Is wx more powerfu...
by arkanes
Wed Mar 08, 2006 7:10 pm
Forum: C++ Development
Topic: I need Dialogs with an active menu
Replies: 16
Views: 2048

You can confusing two seperate concepts here. One is that your application-level logic needs to not operate while the dialog is open. The second is the wxWidgets/platform level event loop. You cannot enter a modal event loop and have menus on the parent work, period. You must handle the neccesary lo...
by arkanes
Wed Apr 13, 2005 5:11 pm
Forum: C++ Development
Topic: Linux - MDI - tabs??
Replies: 16
Views: 2977

From our own BrianHV: http://www.brianhv.org/article/270 - Why MDI Sucks. Says all that's needed. Anyways, I believe given the concepts in Inter-Client Communications Conventions Manual (ICCCM), it should be possible to do some hacks for MDI at the X11 level, but... it is not necessary, MDI should ...
by arkanes
Thu Mar 31, 2005 11:19 am
Forum: C++ Development
Topic: Disabling built-in exception messagebox calling LoadFile?
Replies: 9
Views: 2121

The simplest way is to check for the existence of the file yourself before loading it into the bitmap.
by arkanes
Wed Mar 30, 2005 4:48 pm
Forum: C++ Development
Topic: How to manualy call function SetFocus on a MenuBar?
Replies: 6
Views: 1145

I doubt this will work. Normally this would be done through the specific platforms conventions for menu access (Alt-F2 on the mac, Alt on Windows, whatever on Gtk/Linux). I am assuming from your question that just calling wxMenuBar::SetFocus() doesn't work. At the risk of sounding useless, perhaps y...
by arkanes
Mon Mar 28, 2005 9:20 pm
Forum: General Development
Topic: saving structures
Replies: 13
Views: 3314

No, you cannot do this. Further, raw dumping of structures to and from files is almost ridiculously poor practice, and you shouldn't do it for any reason, most especially not in any code that might run anywhere except your own machine.
by arkanes
Wed Mar 23, 2005 12:33 pm
Forum: Platform Related Issues
Topic: OS managed "Windows" menues in MDI apps.
Replies: 6
Views: 2833

So why MDI is meaningless on Mac I don't know... Sorry, I should be more clear. When I say MDI I mean MDI as MS uses it, with the container window. That wx does the Right Thing on the Mac is nice to hear ;) Turns out there actually is a way to have the OS manage the Window menu. See: http://develop...
by arkanes
Wed Mar 23, 2005 12:26 am
Forum: Platform Related Issues
Topic: OS managed "Windows" menues in MDI apps.
Replies: 6
Views: 2833

MDI is senseless on the mac because the "container" window would serve no purpose there - your documents are free-floating windows, the menu bar is already top level. Toolbars and pallettes would be additional top-level windows. Remember that on the mac closing all the windows an app has does not ex...
by arkanes
Thu Mar 17, 2005 8:44 pm
Forum: C++ Development
Topic: `hackText' undeclared (first use this function)
Replies: 6
Views: 1175

Basically, in the .cpp file, you have the variable name and the class definition reversed - you declare class hackText but you're trying to add implement members for hackTextCtrl, and you define a variable hackTextCtrl but you're trying to call members of an instance called hackText. Fix that and yo...
by arkanes
Thu Mar 17, 2005 2:48 pm
Forum: C++ Development
Topic: simple file selector
Replies: 6
Views: 1512

Windows allows customization of the standard file selector but it's a pain and involves wierdness with dialog templates. I have serious doubts that we could support it in any reasonable way in wxWidgets. AFAIK, OS X doesn't permit customization of the stock selector. What cursor is talking about is ...
by arkanes
Wed Mar 16, 2005 12:04 am
Forum: C++ Development
Topic: Open the same file twice
Replies: 13
Views: 2650

Note the difference between wxDynamicCast and wx_dynamic_cast. wxDynamicCast uses the wxObject based RTTI, rather than the C++ based RTTI. You're using wxObject-derived objects here so wxDynamicCast is what you want.
by arkanes
Tue Mar 15, 2005 7:45 pm
Forum: C++ Development
Topic: Open the same file twice
Replies: 13
Views: 2650

wxDynamicCast is what you want rather than either dynamic_cast or a C-style one.
by arkanes
Wed Mar 02, 2005 6:16 pm
Forum: Platform Related Issues
Topic: wxMemoryDC behaviour on Mac
Replies: 2
Views: 956

Yes, this is wrong, for exactly the reason you mentioned - you have to select a bitmap before you can use a wxMemoryDC. Depending on what you're actually doing, there's a number of solutions. One is to create a wxClientDC for whatever window you will be drawing on and use that to get the text extent...
by arkanes
Tue Mar 01, 2005 4:06 pm
Forum: Compiler / Linking / IDE Related
Topic: Problems seting up wxWidgets environment on Linux
Replies: 3
Views: 1396

Is that a handrolled makefile, or is it fed from wx-config? If not, can you post some of the output of wx-config?
by arkanes
Mon Feb 28, 2005 5:45 pm
Forum: C++ Development
Topic: Strange running behavior of wxTimer??
Replies: 3
Views: 1193

If I'm reading what you want correctly, then you need a thread, not a timer. You want the timer to interrupt whatever is going on (preempt) when it ticks off, which is not how timers work. When a timer "ticks", it posts a message to wxWidgets. The main loop processes the event loop in order, and eve...