Search found 21 matches

by Stewie
Sat Nov 28, 2009 11:17 pm
Forum: C++ Development
Topic: wxHtmlWindow Bottom Border
Replies: 0
Views: 455

wxHtmlWindow Bottom Border

Yup, me again. :) I have an HTML window set up in a frame with a wxTextCtrl at the bottom. the HTML window is placed at Client Origin 0,0 and sized to the window's height, minus 22 (the height of the TextCtrl). The Size appears to be set correctly, but as soon as several line breaks are displayed in...
by Stewie
Sat Nov 28, 2009 9:42 pm
Forum: C++ Development
Topic: Trying to output formatted text in a nice way
Replies: 5
Views: 1072

Well something you told me to change worked... I changed the style, added the HTML tags and changed it to a const wxString, and it worked. Cool! Thanks. :)

PS: Fairly certain it was the style that was wrong, because SetBackgroundColour wasn't working and is now. ;)
by Stewie
Sat Nov 28, 2009 7:52 pm
Forum: C++ Development
Topic: Trying to output formatted text in a nice way
Replies: 5
Views: 1072

Well, here's the relevant code, maybe someone can make heads or tails of the issue... Header: class cWindowOutputCtrl : public wxHtmlWindow { public: cWindowOutputCtrl(wxWindow *Parent, wxWindowID ID, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxRE_MULTI...
by Stewie
Sat Nov 28, 2009 7:01 am
Forum: C++ Development
Topic: Forcing Scrollbar to Bottom
Replies: 10
Views: 1256

Well, what I was thinking might be the solution is to call that function after the scrollbar initialized. Perhaps putting it following the constructor (maybe even on a timer, though this isn't very efficient) may be what you need.
by Stewie
Sat Nov 28, 2009 5:59 am
Forum: C++ Development
Topic: Forcing Scrollbar to Bottom
Replies: 10
Views: 1256

That's a pretty slick code... it seems weird that it doesn't work on initial forming. Where are you initially calling the scroll from? It may be that the object isn't totally initialized.
by Stewie
Sat Nov 28, 2009 5:08 am
Forum: C++ Development
Topic: Forcing Scrollbar to Bottom
Replies: 10
Views: 1256

I'm working on a messaging program and have had the same issue. This is what I used: ShowPosition(GetLastPosition()); However, it doesn't always work, when it scrolls, it sometimes leaves a gap at the bottom (or doesn't actually realize that it has to scroll down), but as far as I can tell this is t...
by Stewie
Sat Nov 28, 2009 5:06 am
Forum: C++ Development
Topic: Trying to output formatted text in a nice way
Replies: 5
Views: 1072

Trying to output formatted text in a nice way

I'm working on a variant on an IM client and have several windows with two text boxes. One is a wxTextCtrl and is used for the user to input and send to the server. The other text box is for the output they receive. Up until now, I've been using a wxRichTextCtrl to set the styles (because the text c...
by Stewie
Thu Nov 26, 2009 4:53 am
Forum: C++ Development
Topic: Vertical Align
Replies: 2
Views: 568

Grr, that sucks. Someone should figure out how to do this and write a patch for 2.9!

Oh well, thanks anyway!
by Stewie
Wed Nov 25, 2009 11:48 pm
Forum: C++ Development
Topic: Vertical Align
Replies: 2
Views: 568

Vertical Align

Is there a way to set up a wxRichTextCtrl so that the text is aligned vertically to the bottom? I.E. First line is at the bottom of the textbox. Append a newline to that and it gets moved up, and a new line is at the bottom of the textbox.

Thanks in advance!
by Stewie
Wed Oct 14, 2009 9:46 pm
Forum: C++ Development
Topic: wxDirTraverser Issues
Replies: 4
Views: 1004

No luck; putting it before (or after and outside of the statement) had no effect. I also tried removing it entirely, which had no effect either.
by Stewie
Tue Oct 13, 2009 2:19 am
Forum: C++ Development
Topic: wxDirTraverser Issues
Replies: 4
Views: 1004

I've tried without as well. I just used that to make sure the program didn't turn to a white screen upon termination. Neither way prevented the freeze-up.
by Stewie
Sat Oct 10, 2009 8:48 pm
Forum: C++ Development
Topic: wxDirTraverser Issues
Replies: 4
Views: 1004

wxDirTraverser Issues

I currently have a wxDirTraverser that searches a client's specified folder for a list of matching files for his use. However, if the client should realize that he has typed in the wrong criterion, and is searching, say, the entire C: drive, I would like for him to be able to stop searching. So, usi...
by Stewie
Mon Oct 05, 2009 9:34 pm
Forum: C++ Development
Topic: Scroll a wxRichTextCtrl to the bottom
Replies: 8
Views: 1736

This is what I used:

Code: Select all

RichTextCtrl->ShowPosition(RichTextCtrl->GetLastPosition());
Good luck!
by Stewie
Wed Sep 30, 2009 5:08 am
Forum: C++ Development
Topic: wxFileInputStream
Replies: 3
Views: 936

You could try declaring it as a pointer ( wxTarInputStream* TarInStream = NULL; ) beforehand and calling " new wxTarInputStream " to construct it individually afterward: wxFileInputStream in(sArchive); wxTarInputStream *TarInStream = NULL; if (bZipped) { wxBZipInputStream bzip2In(in); wxTarInputStre...
by Stewie
Tue Sep 29, 2009 3:27 am
Forum: C++ Development
Topic: Updating List Control Rows
Replies: 2
Views: 476

Not sure if this is what you're looking for, but you could try setting the Client Data for the object to a specific number (like the original index). Then you can loop through the wxListCtrl items to find the object with the Data you need.