Search found 29 matches

by Qasim
Thu Aug 16, 2007 10:50 am
Forum: C++ Development
Topic: "hello World"
Replies: 2
Views: 567

sorry just found it
std::wcout<<L"hello world";
or
std::wcout<<temp.c_str(); will do the job
by Qasim
Thu Aug 16, 2007 10:40 am
Forum: C++ Development
Topic: "hello World"
Replies: 2
Views: 567

"hello World"

I am doing this, but getting some memory address. Please help

Code: Select all

wxString temp(L"HelloWorld");
std::cout<<temp;
std::cout<<temp.c_str();

output

Code: Select all

0A71EB54.
by Qasim
Tue Aug 14, 2007 3:37 pm
Forum: C++ Development
Topic: Child wxDialog within Parent wxDialog
Replies: 4
Views: 1323

give this function a try
wxWindow::CenterOnParent( ), might work for you
by Qasim
Mon Aug 13, 2007 8:06 pm
Forum: C++ Development
Topic: registering hot key
Replies: 0
Views: 313

registering hot key

can any one please give a simple code snappet of how to use function wxWindow::RegisterHotKey( ) ? I tried into samples, but couldnt find it.

Regards
by Qasim
Mon Aug 13, 2007 4:49 pm
Forum: C++ Development
Topic: redirecting events
Replies: 0
Views: 260

redirecting events

Hi. Is this possbile to keep on getting mouse, keyboard and other events from other applications(like explorer or media player) into my application even without focus on my current window? I hope its not using wxWindow::RegisterHotKey(), cause its for single key, isnt it ? Any help will be apprciate...
by Qasim
Mon Aug 13, 2007 9:05 am
Forum: C++ Development
Topic: Listening to keyboard commands
Replies: 2
Views: 617

Thanks for the help. I appreciate it.
by Qasim
Mon Aug 13, 2007 8:17 am
Forum: C++ Development
Topic: Listening to keyboard commands
Replies: 2
Views: 617

Listening to keyboard commands

Hi all. I have an application which is running two threads, one of which is GUI(modeless dialog). I want to show and hide the GUI using CTRL+H(or any other combination) , even if the user is working on any other window, e.g Internet explorer or Media player. Now how can I make it so that its constan...
by Qasim
Sat Aug 11, 2007 8:45 pm
Forum: wxDev-C++
Topic: wxKeyEvent
Replies: 1
Views: 530

wxKeyEvent

Hi, I got a Modaless Dialog, on which I want to have wxKeyEvent -i-e to show or hide it, using H key., So im doing like this BEGIN_EVENT_TABLE( Main, wxDialog ) EVT_CHAR(Main::onHideShow) END_EVENT_TABLE() void Main::onHideShow(wxKeyEvent& event) { Show(); event.Skip(); } But this is not catching an...
by Qasim
Fri Aug 10, 2007 11:48 am
Forum: C++ Development
Topic: simple threading issue
Replies: 3
Views: 676

thanks for reply. I did, but same results. Assert still appears.
by Qasim
Fri Aug 10, 2007 10:00 am
Forum: C++ Development
Topic: simple threading issue
Replies: 3
Views: 676

simple threading issue

Hi, I got two thread classes, MyThread1 and MyThread2(one is reader and other is writer). I am creating MyThread2 in the constructor of MyThread1, and both are joinable. But every time I run the program, I get an assert from wx something like, calling Create() twice, and I ignore it the program runs...
by Qasim
Fri Aug 03, 2007 10:30 am
Forum: C++ Development
Topic: command parsera and hiding dialog
Replies: 2
Views: 470

command parsera and hiding dialog

Hi. I got couple of twisted questions, and hop will make sense to you guys what I am after. 1- Is it possible I can hide my interface/dialog, and the program keeps on doing the processing(may be in seperate thread, I am not sure), and I can show dialog again by executing a command on commandline. I ...
by Qasim
Wed Aug 01, 2007 11:53 am
Forum: C++ Development
Topic: converting from BMP to JPG
Replies: 1
Views: 345

converting from BMP to JPG

Hi, I got the bmp file loaded in object bmp. Now I want to save it as JPG. Can some one please help with it. I tried, but it saves the file with 0kb i-e no data. Any help will be appreciated. here what I am doing wxBitmap bmp; wxImage jpg = bmp.ConvertToImage(); jpg.SaveFile("C:\\myfile.jpg", wxBITM...
by Qasim
Fri Jun 08, 2007 10:34 pm
Forum: wxCode
Topic: screen capture ?
Replies: 2
Views: 1487

screen capture ?

Hi, I want to capture screen using widgets. Kind of doing Print Screen. Can any one please help.
Regards
by Qasim
Wed May 23, 2007 3:43 pm
Forum: Component Writing
Topic: How can I make a button inactive
Replies: 1
Views: 902

button_variable->Enable(false);
will do the job.
Regards