Search found 26 matches

by Double Trouble
Wed Jun 25, 2008 9:38 pm
Forum: Platform Related Issues
Topic: Visual Studio and distribution
Replies: 1
Views: 283

Ok! So I found out that if I put this folder, Microsoft.VC80.CRT , including there files, Microsoft.VC80.CRT.manifest msvcm80.dll msvcp80.dll msvcr80.dll in my release folder a user without Visual Studio 2005 can run my application! That's great! EDIT: I found all of these files here: C:\Program Fil...
by Double Trouble
Wed Jun 25, 2008 7:27 pm
Forum: Platform Related Issues
Topic: Visual Studio and distribution
Replies: 1
Views: 283

Visual Studio and distribution

Hi! I'm in Visual Studio 2005 and I wanna send my win32-application to other people that doesn't have Visual Studio installed. I realize that I can just send the Visual Studio Redistributable Package (vcredist_x86.exe) along with my program but isn't there any way to include all the necessary files ...
by Double Trouble
Tue Jun 24, 2008 9:21 pm
Forum: C++ Development
Topic: Problem with sizers! [updated code] [solved]
Replies: 6
Views: 702

Auria wrote:Can't you just NOT use wxST_NO_AUTORESIZE??

When you do add the label, just call ->Layout() on your sizer so that components are placed correctly
With the Layout()-func it worked perfectly! Thanks lot!
by Double Trouble
Tue Jun 24, 2008 3:53 pm
Forum: C++ Development
Topic: Problem with sizers! [updated code] [solved]
Replies: 6
Views: 702

The problem wasn't to difficult. I just had to change from st = new wxStaticText(panel, wxID_ANY, wxT("")); to st = new wxStaticText(panel, wxID_ANY, wxT("いっらしゃいませ!"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE | wxST_NO_AUTORESIZE); The only problem is that I can't use words wider than "いっらしゃ...
by Double Trouble
Tue Jun 24, 2008 6:35 am
Forum: C++ Development
Topic: Problem with sizers! [updated code] [solved]
Replies: 6
Views: 702

You don't show enough code, what are hbox and vbox, where do you create them, where do you use SetSizer on hbox? Ok! I'll post more! Here is the constructor: SetIcon(wxIcon(wxT("wxwin.ico"), wxBITMAP_TYPE_ICO)); srand(time(0)); panel = new wxPanel(this, -1); menubar = new wxMenuBar; filem = new wxM...
by Double Trouble
Mon Jun 23, 2008 9:19 pm
Forum: C++ Development
Topic: Problem with sizers! [updated code] [solved]
Replies: 6
Views: 702

Problem with sizers! [updated code] [solved]

Hi! First off, what I want to achieve: I want the static text to be centered horizontally. Right now (see pic) the left border of the static text is centered and it doesn't look good. http://pici.se/pictures/ELRdGmhqx.png I would also want to center the static text vertically but that wouldn't work ...
by Double Trouble
Mon Jun 23, 2008 5:51 pm
Forum: Platform Related Issues
Topic: Building WxWidgets in Ubuntu
Replies: 5
Views: 717

Auria wrote:Yes that's the one
Thanks!
by Double Trouble
Sun Jun 22, 2008 9:38 pm
Forum: Platform Related Issues
Topic: Building WxWidgets in Ubuntu
Replies: 5
Views: 717

First off, are you sure you want to recompile wxWidgets ? Ubuntu has the packages you need to develop wxWidgets in the synapic repository, which also makes it easier to distribute your binaries. The whole idea of packages is that if wxWidgets gets updated by the devs your application automatically ...
by Double Trouble
Sun Jun 22, 2008 5:00 pm
Forum: Platform Related Issues
Topic: Building WxWidgets in Ubuntu
Replies: 5
Views: 717

Building WxWidgets in Ubuntu

Hi! I'm quite new to WxWidgets and also to Linux but I'm trying to set up wxWidgets on my laptop with Ubuntu Hardy Heron. So I'm reading this tutorial: http://wiki.wxwidgets.org/Compiling_and_getting_started But I got stuck here: You will also need gtk+ (don't forget to install the -dev package if y...
by Double Trouble
Thu Jun 19, 2008 2:42 pm
Forum: C++ Development
Topic: A wierd problem! SetForegroundColour etc.
Replies: 4
Views: 624

But just out of curiosity. When i put the line panel->SetForegroundColour(*wxRED); in the constructor it works just as I want (the color change of the static text). read my first line. The wxStaticText will inherit the wxPanel's foreground color when you create it. Ah, sorry! Thank you for making i...
by Double Trouble
Thu Jun 19, 2008 2:12 pm
Forum: C++ Development
Topic: A wierd problem! SetForegroundColour etc.
Replies: 4
Views: 624

a wxPanel doesn't really have a foreground color, it just happens that the wxStaticText will inherit that color, if you add it to the panel after setting the color. If you want to change the color of the wxStaticText, you should use st->SetForegroundColour() . Eventually you may need a st->Refresh(...
by Double Trouble
Thu Jun 19, 2008 1:44 pm
Forum: C++ Development
Topic: A wierd problem! SetForegroundColour etc.
Replies: 4
Views: 624

A wierd problem! SetForegroundColour etc.

Hi! I've run in to a weird problem here in my OnSub-function. The first part works perfect but the else-part just won't work! I get no errors but the color change doesn't happen. If I put that line in the constructor instead it works perfectly. I've declared panel in the class and so on... void Wind...
by Double Trouble
Wed Jun 18, 2008 11:12 pm
Forum: C++ Development
Topic: Displaying í and the other latin chars..how?
Replies: 7
Views: 1265

Re: Displaying í and the other latin chars..how?

This is my current code to test my problem: #include <wx/string.h> int main() { wxPuts(wxT("García")); // Displays "Garc?a" return 0; } How can I print the correct string: "García"? Thanks. The problem is probably the encoding of the source file (main.cpp or what you're calling it)! You should save...
by Double Trouble
Tue Jun 17, 2008 7:58 pm
Forum: C++ Development
Topic: Problem with wxTextFile!
Replies: 4
Views: 651

1) add a member variable to your Window class, e.g. wxStaticText *m_statictext; 2) in the ctor of that class, you create one wxStaticText instance: m_statictext=new wxStaticText(panel, wxID_ANY, wxEmptyString); 3) in your Window::OnNext() method: m_statictext->SetLabel( getstring(k) ); YES! Thanks ...
by Double Trouble
Tue Jun 17, 2008 6:49 pm
Forum: C++ Development
Topic: Problem with wxTextFile!
Replies: 4
Views: 651

b) are you creating a new wxStaticText instance each time? What happens to the old one? Shouldn't you just change the text of the present wxStaticText? I think you just create new wxStaticText objects on top of each other, so that you still see the previous word under the new one. Yeah! You must be...