Search found 864 matches

by Sof_T
Sat Sep 06, 2008 11:01 am
Forum: C++ Development
Topic: OnLeave function for wxEdit?
Replies: 5
Views: 862

I gues from your question you are using wxDev-C++. You can add events manually with the code in the block provided in the generated event table.

Sof.T
by Sof_T
Mon Aug 11, 2008 7:57 am
Forum: wxDev-C++
Topic: wxAUI: docking/undocking ("tearing off") Notebook
Replies: 4
Views: 955

Yes this is possible. I think you need to use the docking mechanism to handle the whole window otherwise the notebook will just function as a normal notebook.
by Sof_T
Tue Jul 22, 2008 7:43 am
Forum: C++ Development
Topic: SetClippingRegion question
Replies: 2
Views: 514

As Auria says it means that anything you draw outside this region will be clipped, that is it will not be shown. I think the way you are thinking of it is more in the way that viewports work.
by Sof_T
Sun Jul 20, 2008 9:14 pm
Forum: wxDev-C++
Topic: Help with WxDevcpp and programming
Replies: 3
Views: 554

Unlike ordinary C++ programming there is no main function. The program is event driven not sequential. I found it difficult to understand when I first started to program like this. The program starts in the ...App.C file in the function called Init. When the program starts it sits there waiting for ...
by Sof_T
Sun Jul 20, 2008 6:04 pm
Forum: wxDev-C++
Topic: Help with WxDevcpp and programming
Replies: 3
Views: 554

Hi

Can you show the code you are using, or post the project here, it will help us to help you ;-)

Sof.T
by Sof_T
Thu Jul 17, 2008 4:47 am
Forum: General Development
Topic: wxdev-cpp with Win32 - The Forger's Win32 Tutorial
Replies: 2
Views: 627

You should be able to do this by starting with a console application. Open the project options and type -mwindows in the top of the linker options section. This stops the console window from opening in the background.

Sof.T
by Sof_T
Tue Jul 15, 2008 6:16 pm
Forum: wxDev-C++
Topic: initiate an event
Replies: 6
Views: 1159

Is this to cause your window to repaint? If so you can use Refresh().

Sof.T
by Sof_T
Mon Jul 14, 2008 4:37 pm
Forum: wxDev-C++
Topic: wxTreeCtrl
Replies: 3
Views: 640

Here are a couple of functions to help, they return a true value if the artist or genre is found. You need to pass in a string containing the name of the artist or genre and a wxTreeItemId. If the function returns true the wxTreeItemId will contain the location of the item. bool JuzbrigFrm::FindArti...
by Sof_T
Sat Jul 12, 2008 1:42 pm
Forum: wxDev-C++
Topic: wxToolbar/wxBitmap importing?
Replies: 6
Views: 945

Sorry for not replying sooner, but I have had trouble accessing the forum for the past two days. I have attached a sample, when the program starts it asks if you want to use embedded PNGs or embedded XPMs, the code to achieve this is contained in the two functions called by this.

Sof.T
by Sof_T
Thu Jul 10, 2008 8:51 pm
Forum: wxDev-C++
Topic: can mingw do bitwise operations?
Replies: 3
Views: 810

Don't you mean to use the && operator and not the & operator?

Sof.T
by Sof_T
Thu Jul 10, 2008 8:50 pm
Forum: wxDev-C++
Topic: Linking .lib
Replies: 1
Views: 384

You wont be able to link a .lib with gcc since a .lib is microsoft's format, gcc uses the .a format. If you have a access to the source code you could compile it as a static library into gcc's .a format library. If not you will need to use wxDev-C++ with Microsoft's free VC compiler.

Sof.T
by Sof_T
Tue Jul 08, 2008 7:23 am
Forum: C++ Development
Topic: disable event raising
Replies: 10
Views: 2110

In the EventHandler you could implement something like MyGrid::Refresh() { this->SetHandleEvent(false); .... //Do Append and SetCursor .... this->SetHandleEvent(true); } MyPanel::OnGridSelectCell() { if(MyGrid->GetHandleEvent()) { //Handle event } else { event.Skip(); } } MyGrid::SetHandleEvent(bool...
by Sof_T
Sun Jul 06, 2008 8:23 pm
Forum: wxDev-C++
Topic: wxToolbar/wxBitmap importing?
Replies: 6
Views: 945

If you have any problems I can post a sample program here.

Sof.T
by Sof_T
Sun Jul 06, 2008 9:18 am
Forum: wxDev-C++
Topic: wxToolbar/wxBitmap importing?
Replies: 6
Views: 945

I take it you want to use PNG files rather than the XPM files that wxDev-C++ would generate for you. It is slightly awkward, but easy enough. First you need to convert them into c style arrays using a version of Bin2C which you can get from many places on the Internet. You then add these files to yo...
by Sof_T
Sat Jul 05, 2008 8:58 am
Forum: C++ Development
Topic: wxString.ToDouble, .ToLong
Replies: 6
Views: 1157

The Format command uses the C style of format specifiers. The article here might help you with the information you need. In particular look at width and precision.

Sof.T