User forums > Help

Problem with wxSmith

(1/3) > >>

TexasRanger:
Hi, does someone know how to put layout the bitmap in backgroud and buttons correctly?
I can't do it. When I'm clicking on buttons and chosing 'send to front' it doesn't work, buttons are still behind bitmap.

Jenna:
Sorry, I don't get you.

Please describe more exactly what you try to do.
And explain step by step what you have done.
Or attach a simple project that does not work.

TexasRanger:
This picture shows the problem.
I can't bring this button on front.

Jenna:
Did you try to send the bitmap and/or the textctrl to back ?
Works for me here (debian 64 bit wx2.8.10).

TexasRanger:
Yes, I've tried. Not working for me [Windows Vista].

The code also looks for me fine:

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

    Create(parent, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE, _T("wxID_ANY"));
    SetClientSize(wxSize(640,480));
    SetMinSize(wxSize(640,480));
    SetMaxSize(wxSize(640,480));
    StaticBitmap1 = new wxStaticBitmap(this, ID_STATICBITMAP1, wxBitmap(wxImage(_T("E:\\prywatne\\study\\informatics\\C,C++\\codebloks\\C++\\wxwidgetstest4\\Eksplodia kopia.bmp")).Rescale(wxSize(640,480).GetWidth(),wxSize(640,480).GetHeight())), wxDefaultPosition, wxSize(640,480), 0, _T("ID_STATICBITMAP1"));
    StaticBitmap1->Disable();
    TextCtrl1 = new wxTextCtrl(this, ID_TEXTCTRL1, wxEmptyString, wxPoint(24,48), wxSize(136,21), 0, wxDefaultValidator, _T("ID_TEXTCTRL1"));
    TextCtrl1->Disable();
    Button1 = new wxButton(this, ID_BUTTON1, _("Rozpocznij odliczanie"), wxPoint(32,72), wxDefaultSize, 0, wxDefaultValidator, _T("ID_BUTTON1"));
    Button1->SetForegroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_MENU));
    Button1->SetHelpText(_T("Rozpocznij odliczanie"));
    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);
--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version