Search found 8 matches

by voyage
Sun Mar 29, 2020 12:09 pm
Forum: C++ Development
Topic: wxGridBagSizer set all rows and columns as growable
Replies: 1
Views: 112

wxGridBagSizer set all rows and columns as growable

I'm not able to find a single function to set as growable all columns and rows of a wxGridBagSizer. Now I do: for (int col=0;col<GridBagSizer1->GetCols();col++) GridBagSizer1->AddGrowableCol(col); for (int row=0;row<GridBagSizer1->GetRows();row++) GridBagSizer1->AddGrowableRow(row); Is there a simpl...
by voyage
Sun Aug 18, 2019 9:14 am
Forum: C++ Development
Topic: wxChoice and event wxEVT_COMMAND_CHOICE_SELECTED
Replies: 4
Views: 251

Re: wxChoice and event wxEVT_COMMAND_CHOICE_SELECTED

Thank you, with Yield now works. I don't understand why with Button click event it's not necessary Yield while it is with choice selected event?
by voyage
Sun Aug 18, 2019 8:27 am
Forum: C++ Development
Topic: wxChoice and event wxEVT_COMMAND_CHOICE_SELECTED
Replies: 4
Views: 251

Re: wxChoice and event wxEVT_COMMAND_CHOICE_SELECTED

I have tried your code and it doesn't work as expected too. The cursor doesn't change while during the execution of the commands in the choice select event
by voyage
Sat Aug 17, 2019 5:47 pm
Forum: C++ Development
Topic: wxChoice and event wxEVT_COMMAND_CHOICE_SELECTED
Replies: 4
Views: 251

wxChoice and event wxEVT_COMMAND_CHOICE_SELECTED

I have made a dialog with a wxChoice and I have connected the wxEVT_COMMAND_CHOICE_SELECTED event to this function: void Prova_wxwidgetsDialog::OnChoice1Select(wxCommandEvent& event) { wxBusyCursor wait; usleep(20000000); } I expect that for 20 seconds the mouse cursor change to BusyCursor but it do...
by voyage
Mon Mar 25, 2019 7:13 pm
Forum: C++ Development
Topic: Use a backgroud image for a dialog
Replies: 6
Views: 333

Re: Use a backgroud image for a dialog

Thank you, I have solved putting all the code of the ImagePanel in the dialog. I thought there was some reasons to use a panel. I'm sorry for the newbie question
by voyage
Mon Mar 25, 2019 12:45 pm
Forum: C++ Development
Topic: Use a backgroud image for a dialog
Replies: 6
Views: 333

Re: Use a backgroud image for a dialog

I'm not sure to have undestood correctly. This is the code with a button added but the image disappeared: //(*Headers(Prova_wxwidgetsDialog) #include <wx/button.h> #include <wx/dialog.h> //*) #include <wx/wx.h> #include <wx/sizer.h> class wxImagePanel : public wxPanel { wxImage image; wxBitmap resiz...
by voyage
Mon Mar 25, 2019 10:33 am
Forum: C++ Development
Topic: Use a backgroud image for a dialog
Replies: 6
Views: 333

Use a backgroud image for a dialog

I want to add a background image on a dialog and then put buttons on the image. I have followed the example at this link https://wiki.wxwidgets.org/An_image_panel and I have written the following code: class wxImagePanel : public wxPanel { wxImage image; wxBitmap resized; public: wxImagePanel(wxDial...
by voyage
Fri Aug 31, 2018 2:33 pm
Forum: C++ Development
Topic: wxStaticBitmap click coordinates
Replies: 1
Views: 199

wxStaticBitmap click coordinates

Is there a way to get the coordinates of a click inside a wxStaticBitmap?