Recent Posts

Pages: 1 2 3 [4] 5 6 7 8 9 10
31
Help / Re: ui problem
« Last post by dicosky on September 20, 2020, 02:45:57 am »
i tested this builds :
codeblocks-17.12mingw-setup.exe
codeblocks-20.03mingw-setup.exe
codeblocks-20.03mingw-32bit-setup.exe

but without success.
is this problem related to windows security?
32
Help / Re: ui problem
« Last post by dicosky on September 20, 2020, 02:44:18 am »
windows 10 pro with all update installed.

is not the first time i use code::blocks , i use it many years ago but this error appeared just in this days.
33
Development / Re: Change things in CB 20.03 back to the way it was in CB 16.01
« Last post by hbcpp on September 20, 2020, 02:44:09 am »
If you test it let me know in the ticket if it works. Ideally we should backport the popup changes from wx, but I don't know when this would happen, unfortunately.

I have tested it. It built fine, however when I open it and I go to settings->Editor and I make some change and hit 'ok' CB will crash and close, don't know why, maybe I did something wrong because I had some trouble reading the patch file.
 
This is an answer from the ticket I gave you earlier:

"This problem (and others closely related to DirectWrite) have just been fixed in wxSTC:

Merge branch 'stc-tech-fix' " by Miguel Gimenez

Is this what you mean by backport the popup changes from wx?

34
Using Code::Blocks / Re: Code::Blocks Freezes for 15 seconds on typing parentheses ()
« Last post by Sasha on September 19, 2020, 10:54:24 pm »
Today I Discover something new that when I Disable the Antivirus in Win10 the CB is not freezing.  :-X
I have Both versions Installed. 20.03 and 17.12
35
Help / Re: WxWidgets C++ - Print out text in a static textbox
« Last post by Miguel Gimenez on September 19, 2020, 09:10:54 pm »
General programming questions are off-topic here, but this is loosely related to wxSmith. You must write something like this:

Code: [Select]
void DeutschprojektFrame::OnButton1Click1(wxCommandEvent& event)
{
   StaticText1->SetLabel( "test" );
}
36
Help / WxWidgets C++ - Print out text in a static textbox
« Last post by MegAmaNeo on September 19, 2020, 08:41:55 pm »
Hello,

I am writing a WxWidget C++ program where I have a button and a static textbox.
My intention is that after clicking the button, a text is printed out in the static box.
Although I am new to C++ and not (yet!) familiar with the concept of pointers, I read that a quick implementation might be to declare the following to lines inside the event function of the button:

wxStaticText *m_statictext;
m_statictext->SetLabel( "test" );

Unfortunately this doesn't work. Do you know if there is a quick implementation?
I pasted you the code below and attached a photo of the properties of the static textbox:





/***************************************************************
 * Name:      DeutschprojektMain.cpp
 * Purpose:   Code for Application Frame
 * Author:    blank
 * Created:   2020-09-19
 * Copyright: blank ()
 * License:
 **************************************************************/

#include "DeutschprojektMain.h"
#include <wx/msgdlg.h>
#include "Fenster.h"
#include <wx/txtstrm.h>
using namespace std;
//(*InternalHeaders(DeutschprojektFrame)
#include <wx/intl.h>
#include <wx/string.h>
//*)

//helper functions
enum wxbuildinfoformat {
    short_f, long_f };

wxString wxbuildinfo(wxbuildinfoformat format)
{
    wxString wxbuild(wxVERSION_STRING);

    if (format == long_f )
    {
#if defined(__WXMSW__)
        wxbuild << _T("-Windows");
#elif defined(__UNIX__)
        wxbuild << _T("-Linux");
#endif

#if wxUSE_UNICODE
        wxbuild << _T("-Unicode build");
#else
        wxbuild << _T("-ANSI build");
#endif // wxUSE_UNICODE
    }

    return wxbuild;
}

//(*IdInit(DeutschprojektFrame)
const long DeutschprojektFrame::ID_BUTTON1 = wxNewId();
const long DeutschprojektFrame::ID_STATICTEXT1 = wxNewId();
const long DeutschprojektFrame::idMenuQuit = wxNewId();
const long DeutschprojektFrame::idMenuAbout = wxNewId();
const long DeutschprojektFrame::ID_STATUSBAR1 = wxNewId();
//*)

BEGIN_EVENT_TABLE(DeutschprojektFrame,wxFrame)
    //(*EventTable(DeutschprojektFrame)
    //*)
END_EVENT_TABLE()

DeutschprojektFrame::DeutschprojektFrame(wxWindow* parent,wxWindowID id)
{
    //(*Initialize(DeutschprojektFrame)
    wxMenu* Menu1;
    wxMenu* Menu2;
    wxMenuBar* MenuBar1;
    wxMenuItem* MenuItem1;
    wxMenuItem* MenuItem2;

    Create(parent, id, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE, _T("id"));
    SetClientSize(wxSize(440,476));
    Button1 = new wxButton(this, ID_BUTTON1, _("Label"), wxPoint(72,216), wxDefaultSize, 0, wxDefaultValidator, _T("ID_BUTTON1"));
    StaticText1 = new wxStaticText(this, ID_STATICTEXT1, wxEmptyString, wxPoint(264,152), wxSize(88,105), 0, _T("ID_STATICTEXT1"));
    MenuBar1 = new wxMenuBar();
    Menu1 = new wxMenu();
    MenuItem1 = new wxMenuItem(Menu1, idMenuQuit, _("Quit\tAlt-F4"), _("Quit the application"), wxITEM_NORMAL);
    Menu1->Append(MenuItem1);
    MenuBar1->Append(Menu1, _("&File"));
    Menu2 = new wxMenu();
    MenuItem2 = new wxMenuItem(Menu2, idMenuAbout, _("About\tF1"), _("Show info about this application"), wxITEM_NORMAL);
    Menu2->Append(MenuItem2);
    MenuBar1->Append(Menu2, _("Help"));
    SetMenuBar(MenuBar1);
    StatusBar1 = new wxStatusBar(this, ID_STATUSBAR1, 0, _T("ID_STATUSBAR1"));
    int __wxStatusBarWidths_1[1] = { -1 };
    int __wxStatusBarStyles_1[1] = { wxSB_NORMAL };
    StatusBar1->SetFieldsCount(1,__wxStatusBarWidths_1);
    StatusBar1->SetStatusStyles(1,__wxStatusBarStyles_1);
    SetStatusBar(StatusBar1);

    Connect(ID_BUTTON1,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&DeutschprojektFrame::OnButton1Click1);
    Connect(idMenuQuit,wxEVT_COMMAND_MENU_SELECTED,(wxObjectEventFunction)&DeutschprojektFrame::OnQuit);
    Connect(idMenuAbout,wxEVT_COMMAND_MENU_SELECTED,(wxObjectEventFunction)&DeutschprojektFrame::OnAbout);
    //*)
}

DeutschprojektFrame::~DeutschprojektFrame()
{
    //(*Destroy(DeutschprojektFrame)
    //*)
}

void DeutschprojektFrame::OnQuit(wxCommandEvent& event)
{
    Close();
}

void DeutschprojektFrame::OnAbout(wxCommandEvent& event)
{
    wxString msg = wxbuildinfo(long_f);
    wxMessageBox(msg, _("Welcome to..."));
}

void DeutschprojektFrame::OnButton1Click(wxCommandEvent& event)
{







}

void DeutschprojektFrame::OnButton1Click1(wxCommandEvent& event)
{
}
37
Help / Re: Escape Sequenzes
« Last post by Pecan on September 19, 2020, 06:25:57 pm »
MS has made it almost impossible to write ansi escape sequences to the console host process.

It can only be done with other program help.
Use google to find out how.
Example:
https://superuser.com/questions/413073/windows-console-with-ansi-colors-handling
38
Help / Re: Trouble installing the wxsmith plugin to codeblocks in ubuntu
« Last post by oBFusCATed on September 19, 2020, 05:45:27 pm »
You have to do one of:
1. cross compile
2. do separate compile on windows
3. expect the user would use WSL and your app would just work

Option 2 is most reliable if you ask me.
39
Help / Re: ui problem
« Last post by oBFusCATed on September 19, 2020, 05:44:01 pm »
How have you installed codeblocks? What OS are you using?
The OK button should be enabled if there is something in the file field.
If this doesn't work this means that something is seriously broken.
40
Help / Re: ui problem
« Last post by dicosky on September 19, 2020, 05:20:24 pm »
example in attachement , i can't use ok button to add a new library to the project.
Pages: 1 2 3 [4] 5 6 7 8 9 10