Search found 78 matches

by KaReL
Mon May 09, 2005 5:36 am
Forum: C++ Development
Topic: wxClientDC
Replies: 4
Views: 955

wxClientDC

I have my own control (derived from wxControl). (a menubar for a panel). On this, I add a few wxString's. I calculate the total width/height of the control. Now I got the following functions overridden: - DoGetSize - DoGetClientSize ( used by DC.GetSize() ) - DoGetBestSize ( used by sizer-calculatio...
by KaReL
Fri May 06, 2005 10:26 am
Forum: C++ Development
Topic: wxSocket & double Input-events
Replies: 4
Views: 885

Everything was written/read... The second INPUT-event I receive, when I get to it, it encounters a wxSOCKET_WOULDBLOCK. Which means that there is simply no data in the buffer anymore (when I would like to wait for data, the program would, which is not the point). The second INPUT-event gets a LastCo...
by KaReL
Thu May 05, 2005 7:23 pm
Forum: C++ Development
Topic: wxSocket & double Input-events
Replies: 4
Views: 885

wxSocket & double Input-events

I have a socketclient with the flags input & lost on it. now I send something to this socket. At the receiving end I receive 1 input event. Here all the data can be extracted from. Then I receive another input event where, when I want to read data out of it, it seems that it errors to: 'wxSOCKET_WOU...
by KaReL
Mon Mar 21, 2005 2:35 pm
Forum: General Development
Topic: sizer-troubles
Replies: 2
Views: 854

Thanks!! That works like a charm ;) (thought that wxGridSizer was only for wxGrid :)).
by KaReL
Mon Mar 21, 2005 12:51 pm
Forum: General Development
Topic: sizer-troubles
Replies: 2
Views: 854

sizer-troubles

Hi, I am having a little troubles with sizers, the problem is this: I have a few wxStaticText's with wxComboBox'es and wxTextCtrl's next to it. <wxStaticText> <wxTextCtrl> <wxStaticText> <wxTextCtrl> <wxStaticText> <wxComboBox> Ofcourse this works nice in sizers. But what I want is that all the wxSt...
by KaReL
Thu Jan 20, 2005 11:08 am
Forum: C++ Development
Topic: RTF-Textctrl & pasting
Replies: 4
Views: 1166

a RTF TextCtrl is a TextCtrl with the wxTE_RICH(2).

And yes, the text is shown exactly as it is represented into the HTML document.
by KaReL
Tue Jan 11, 2005 9:24 am
Forum: C++ Development
Topic: wxLocale
Replies: 2
Views: 799

Yes, but that gets the system language, not the currently selected locale...

So for example if my system language is nl_BE, and my locale is set to en_GB for example, then the GetSystemLanguage() returns nl_BE.

What I want to have returned is en_GB of course ;)
by KaReL
Tue Jan 11, 2005 7:22 am
Forum: C++ Development
Topic: wxLocale
Replies: 2
Views: 799

wxLocale

How can I get the language from the user? I mean which locale he has set?

I am looking for some static class/function to know that, but can't find something in intl.cpp
by KaReL
Mon Jan 10, 2005 9:03 am
Forum: C++ Development
Topic: RTF-Textctrl & pasting
Replies: 4
Views: 1166

*bump* :(
by KaReL
Wed Jan 05, 2005 1:48 pm
Forum: C++ Development
Topic: RTF-Textctrl & pasting
Replies: 4
Views: 1166

RTF-Textctrl & pasting

When I paste some formatted text into an RTF TextCtrl (which is hooked to catch CTRL-0->9). When it is for example a <h1>text</h1> formatted text, it doesn't appear in my textctrl (well, actually it does, but with the formatting of this h1-item. Now I don't want that, but how can I get rid of that b...
by KaReL
Fri Dec 03, 2004 7:32 am
Forum: C++ Development
Topic: Random crashes... How to solve?
Replies: 6
Views: 1371

btw, I found the error... Which ain't very logical ;) I did wxDELETE(m_pWaarschuwing); where m_pWaarschuwing is an own-created wxTaskBarIcon. Now I get a huge amount of leaks (we are improving ;)). Thx for your tip about #if 0 - #endif Jorg... That is more easy then always copy/paste everything. I s...
by KaReL
Thu Dec 02, 2004 3:11 pm
Forum: C++ Development
Topic: Random crashes... How to solve?
Replies: 6
Views: 1371

Yes I do.

When I revert back it works, when I place the new files... It doesn't.

The weird part however is that it doesn't crash in any of my code... It crashes somewhere in assembler-thingie?
by KaReL
Thu Dec 02, 2004 2:50 pm
Forum: C++ Development
Topic: Random crashes... How to solve?
Replies: 6
Views: 1371

Random crashes... How to solve?

Hi, I just created a small application... But lately it began to crash like hell... The problem is that one time it runs like a charm, no problems at all... All seems fine... Then I don't change anything, I just re-run it and during the same actions it crashes. Now besides the fact that this is enor...
by KaReL
Thu Dec 02, 2004 1:42 pm
Forum: C++ Development
Topic: wxSizer troubles
Replies: 5
Views: 1381

Code: Select all

  SetSizeHints(600,500);
  SetSize(600,500);
Did the trick... (both applied to a wxFrame). If I only used the first one, it started small, but upon first resize it couldn't get any smaller then 600/500.
The second one started ok, but I could resize it to a smaller size then 600/500.


Cheers
by KaReL
Wed Dec 01, 2004 6:31 pm
Forum: C++ Development
Topic: wxSizer troubles
Replies: 5
Views: 1381

wxSizer troubles

How can I set it so my window can't become smaller then fe. 600x500 ?

it is somewhere an option, but I can't find it :S