Search found 211 matches

by Frank
Wed Jul 27, 2005 1:10 pm
Forum: C++ Development
Topic: "Merging" two cells of a wxFlexGridSizer
Replies: 2
Views: 1108

Use wxGridBagSizer. It's derived from wxFlexGridSizer and supports spawning of controls over multiple rows and/or columns.
by Frank
Sat Jul 23, 2005 6:45 pm
Forum: Component Writing
Topic: Looking for a BitmapCheckbox, and a clean BitmapButton
Replies: 4
Views: 2987

I'm using a bitmap-button to create a firefox lookalike closebotton. This is my code (created by DialogBlocks): wxBitmap m_pbCloseBitmap(itemPanel1->GetBitmapResource(wxT("Pics/close.xpm"))); m_pbClose = new wxBitmapButton( itemPanel1, ID_PB_CLOSE, m_pbCloseBitmap, wxDefaultPosition, wxDef...
by Frank
Fri Jul 22, 2005 2:27 am
Forum: Compiler / Linking / IDE Related
Topic: C++ exception handler used, but unwind semantics not enabled
Replies: 4
Views: 3746

Exceptions are generally always syncronous No, they're not. At least on Windows. Normal C++ exceptions yes. But on Windows (at least with VC++) you get Exceptions for Hardware Errors (Access Violation, Division by Zero etc). These can only be cought by catch(...) (okay, you can make real C++ except...
by Frank
Tue Jul 19, 2005 10:31 pm
Forum: Compiler / Linking / IDE Related
Topic: VS .NET and code completion
Replies: 4
Views: 1384

I recommend Visual Assist too. It's not perfect but way better than the default intellisense. There are still many cases, in wich VA doesn't do the right thing: std::vector<wxWindow*> myArray; ... myArray[0]-> Hello? Intellisense please? And some very anoying "Features". Like I'm typing: f...
by Frank
Sat Jul 09, 2005 1:54 pm
Forum: General Development
Topic: wxArrayString algorithms
Replies: 1
Views: 950

AFAIK wx uses std::vector, when you set wxUSE_STL. I get lot's of warnings (code unreachable) in <vector> when I compiler wx so I think it's true.

Haven't tried it, but when this is true, you can use the C++ standardlib on any wxArray. Like this:

random_shuffle(MyArray.begin(), MyArray.end());
by Frank
Wed Jun 22, 2005 1:40 am
Forum: C++ Development
Topic: Conception problem! Class and functions organization!!
Replies: 3
Views: 1073

Use Forward-Declarations. Like this

Code: Select all


Header 1:

class A;

class B {
   A* m_myA;
   // etc...
};

Header 2:

class B;

class A {
   B* m_myB;
   // etc...
};

This way, the compiler knows anything he needs to know.
by Frank
Mon Jun 20, 2005 9:12 pm
Forum: General Development
Topic: What flow of programming and tools do you use?
Replies: 41
Views: 74997

Here's my list. I'm using DialogBlocks for the GUI. Visual Studio 2003 for Editing/Building/Debugging etc Mantis for Bugtracking/ToDo-List Subversion for Version-Control IconXP for creating icons Installer is selfmade. Packing... No. I used to use UPX too, but since we had some trouble on machines w...
by Frank
Sat Feb 05, 2005 11:09 pm
Forum: General Development
Topic: RTF editing widget?
Replies: 8
Views: 3295

I'm using TER from Subsystems (see http://www.subsystems.com/tewf.htm)

It's commercial and Windows-Only. But it is a complete textprocessor control, comes with source in ANSI C and works quite well.
by Frank
Sun Jan 16, 2005 1:20 am
Forum: C++ Development
Topic: new & delete
Replies: 24
Views: 5638

Avi wrote:btw, I wonder why they use macros and not make it an inline function?

Code: Select all

inline void wxDELETE(void* p)
{
  if ( (p) != NULL )
  {
    delete p;
    p = NULL;
  } 
}
Does this work? Can you delete a void* ? How does the compiler know wich destructor to call?
by Frank
Thu Jan 13, 2005 10:53 pm
Forum: C++ Development
Topic: wxNotebook with draggable tabs?
Replies: 17
Views: 6142

The reason for my own notebook is a bug in windows. If you enable a visual style only topside tabs are supported. I need a notebook wich can display the tabs on every side, cause I have a notebook wich displays all the data we have about a customer, one page per category, it contains 15 or so pages,...
by Frank
Thu Jan 13, 2005 12:00 am
Forum: C++ Development
Topic: n00b question - variable scope
Replies: 8
Views: 2452

Re: n00b question - variable scope

You forgot the classname in your function. It should be

void SnapTrialsFrame::CreateWidgets ()

-Frank

PS: An visual editor would not forget that ;)
by Frank
Tue Jan 11, 2005 5:52 pm
Forum: C++ Development
Topic: wxNotebook with draggable tabs?
Replies: 17
Views: 6142

I'm working on that :) But... My notebook looks nothing like the original, it is miles away from the native look. Here is a picture of it: http://beta.picupload.net/img.php?vid=b8f03c98c8ddf41376756782c Also, it's not a subclass of wxNotebook, it's directly derived from wxControl. My plan on this ar...
by Frank
Fri Jan 07, 2005 4:19 pm
Forum: C++ Development
Topic: Can I set a global default font?
Replies: 5
Views: 4853

Hi MartinSfromB,

I dont't need to change the font for wxListCrtl, because it already uses the right one. In my german windows it is named "Pallettentitel" in the control panel, whatever I set in there, wxWidgets uses it.

So your solution is just perfect for my needs. Thank you!
by Frank
Thu Jan 06, 2005 11:43 pm
Forum: C++ Development
Topic: Can I set a global default font?
Replies: 5
Views: 4853

Can I set a global default font?

Hi, I'm using wxMSW 2.5.3. wxWidgets uses as default font for all it's windows MS Sans (or something like that). That's a rather ugly font, and when the user has enabled ClearType, it is not used on that font, since it's a bitmap font. I would like to change this default font. In my previos programm...
by Frank
Tue Jan 04, 2005 3:53 pm
Forum: C++ Development
Topic: wxComboBox not triggering events
Replies: 5
Views: 2607

Hi Tyler, On the wxChoice-Look. I'm not sure. I think I read that somewhere, but I never tried or saw it on Linux. I could be confusing it with FOX-Toolkit, maybee I should try it someday... On our Problem: I took a look in the wx sources. I checked out the CVS-Version. The change was incorporated i...