Search found 179 matches

by PhoenixPl
Sun Aug 02, 2009 12:04 pm
Forum: C++ Development
Topic: Auto mouse/keyboard event
Replies: 0
Views: 603

Auto mouse/keyboard event

Hi,

I'm writing my own tool to simplify my life. It should do auto mouse click and/or auto keyboard click. I was wondering how can I get window handle for external application so that I can send events to it? Cross platform solution would be nice, but I can stick to MSW for now.
by PhoenixPl
Mon Jul 14, 2008 9:45 pm
Forum: C++ Development
Topic: wxMenu::Append accelerator key align
Replies: 9
Views: 3001

It seams that it works only with XRC files. I'll try to do some tests to see if align can be done directly from source code.
by PhoenixPl
Sun Jul 13, 2008 1:39 am
Forum: C++ Development
Topic: wxMenu::Append accelerator key align
Replies: 9
Views: 3001

I would tend to believe that alignement of this text is decided by the system (or by the theme) and not by wxWidgets Then why CodeBlocks using system theme has left align? Ah I'd missed that part. Then you could look at the C::B code to see how they're doing it Now I'm totally embarrassed. I really...
by PhoenixPl
Fri Jul 11, 2008 6:39 pm
Forum: C++ Development
Topic: wxMenu::Append accelerator key align
Replies: 9
Views: 3001

Grrr: I will try it.
Auria wrote:I would tend to believe that alignement of this text is decided by the system (or by the theme) and not by wxWidgets
Then why CodeBlocks using system theme has left align?
by PhoenixPl
Tue Jul 08, 2008 9:02 am
Forum: C++ Development
Topic: wxMenu::Append accelerator key align
Replies: 9
Views: 3001

I'm using Windows Vista and I just wanted to know how you can align them to left. My code: wxMenuBar* menuBar = new wxMenuBar(); wxMenu* menuFile = new wxMenu(); wxMenu* menuEdit = new wxMenu(); wxMenu* menuHelp = new wxMenu(); menuBar->Append( menuFile, _( "File" ) ); menuBar->Append( men...
by PhoenixPl
Mon Jul 07, 2008 10:02 am
Forum: C++ Development
Topic: class to handle .ini file ?
Replies: 2
Views: 1074

You can use wxFileConfig: wxFileConfig wxFileConfig implements wxConfigBase interface for storing and retrieving configuration information using plain text files. The files have a simple format reminiscent of Windows INI files with lines of the form key = value defining the keys and lines of special...
by PhoenixPl
Mon Jul 07, 2008 9:54 am
Forum: C++ Development
Topic: wxMenu::Append accelerator key align
Replies: 9
Views: 3001

wxMenu::Append accelerator key align

Hi, I have been working on a small notepad api with colored syntax (wxSTC). I have a problem with correct alligment of accelerator keys in menu. It seams that all shortcut keys are aligned to right but I would like them to be aligned to right. Is there a way to "force" aligment for acceler...
by PhoenixPl
Wed Feb 21, 2007 9:21 am
Forum: C++ Development
Topic: high cpu load with wxThreads
Replies: 6
Views: 1642

If this is not the only thing that you are doing in threads and some of your operations are long term computation then you should also think about adding ether wxThread::Sleep(...) or wxThread::Yield(). wxThread::Yield void Yield() Give the rest of the thread time slice to the system allowing the ot...
by PhoenixPl
Tue Feb 20, 2007 8:55 am
Forum: C++ Development
Topic: CPU spike when using wxFTP, wxURL
Replies: 5
Views: 1593

Unfortunately I had the same problem. Right now the only solution is to put wxFTP/wxURL in secondary thread and god knows what difference it makes.
by PhoenixPl
Tue Feb 20, 2007 8:50 am
Forum: C++ Development
Topic: Main frame collecting Dialog info?
Replies: 57
Views: 7518

Personally I prefare structures that are filled by dialog on MyDialog::GetMyData().
by PhoenixPl
Wed Dec 20, 2006 12:37 pm
Forum: C++ Development
Topic: wxURL not working in 2.8.0
Replies: 5
Views: 1883

I had the same problem lately. Try moving your wxURL code into second thread. It helped in my case. Still I don't understand why wxURL url(address); if (url.IsOk()) { url.GetProtocol().SetTimeout(20); wxInputStream* stream = url.GetInputStream(); if (stream) { wxMessageBox(_("ok")); } else...
by PhoenixPl
Fri Dec 01, 2006 8:16 am
Forum: Compiler / Linking / IDE Related
Topic: what's your favorite RAD for wxWidgets?
Replies: 10
Views: 4714

I'm using wxFormBuilder and Code::Blocks. Both have good support and both are cross- platform.
by PhoenixPl
Thu Nov 23, 2006 1:35 pm
Forum: C++ Development
Topic: wxImage::Scale - normal/high quality no difference
Replies: 9
Views: 2977

Thanks, I will try.
by PhoenixPl
Thu Nov 23, 2006 1:10 pm
Forum: C++ Development
Topic: wxImage::Scale - normal/high quality no difference
Replies: 9
Views: 2977

So any ideas what to do with it right now? Do you have a copy of old method?
by PhoenixPl
Wed Nov 22, 2006 3:10 pm
Forum: C++ Development
Topic: Panel on ShapedFrame
Replies: 2
Views: 1030

I have noticed that if you are adding only one widget to your window it is being automatically resized to fill in client area. Try using sizers with borders or spacers. Also you can try to add hidden widget (for example static text), but I'm not sure if that will help.