Search found 130 matches

by Slyde
Fri Mar 08, 2024 12:35 am
Forum: C++ Development
Topic: Partial background color
Replies: 14
Views: 1934

Re: Partial background color

I'm of the opinion that this is a bug. But whether it gets treated as such doesn't matter anymore. I fixed it with a workaround. Through all of this, I've had a feeling that the culprit was the vector, a vector of wxString no less. So I added 4 more variables and proved myself right. wxString mca1{}...
by Slyde
Wed Mar 06, 2024 3:57 pm
Forum: C++ Development
Topic: Partial background color
Replies: 14
Views: 1934

Re: Partial background color

Your code works fine on my box. I'm not using a VM. My box dual-boots to either Win X or Mint 21.3. How can I send you a zip file of my work? I'm not very far along with it, so I'm not tripping on you snagging some of my code :D I use CMake. Please advise. Thank you, PB. I just placed the zip file i...
by Slyde
Tue Mar 05, 2024 11:24 pm
Forum: C++ Development
Topic: Partial background color
Replies: 14
Views: 1934

Re: Partial background color

Thank you both for responding. PB: Your code works fine. Just as expected. I've traced through everything regarding my 4 TextCtrls and don't see anything that cld be causing this. Let me show you all my code that handles these 4 misfiring widgets. Hopefully you'll see what's messing me up. In the Ct...
by Slyde
Tue Mar 05, 2024 5:42 pm
Forum: C++ Development
Topic: Partial background color
Replies: 14
Views: 1934

Re: Partial background color

wxTextCtrl* mcAnswer1; wxTextCtrls are not transparent, you'll need to set their background color, too. I did. Scroll up and you'll see that I'm doing exactly that. My problem is that the background of the text itself isn't changing,as shown in my original post. But I believe I'm setting the wxText...
by Slyde
Tue Mar 05, 2024 5:14 pm
Forum: C++ Development
Topic: Partial background color
Replies: 14
Views: 1934

Re: Partial background color

My apologies, doublemax. from the header: wxTextCtrl* mcAnswer1; wxTextCtrl* mcAnswer2; wxTextCtrl* mcAnswer3; wxTextCtrl* mcAnswer4; and from the main: void MyFrame::DisplayToScreen(const std::vector<wxString> &values) { mcQuestion->SetValue(values[0]); mcAnswer1->SetValue("1. " + val...
by Slyde
Tue Mar 05, 2024 8:35 am
Forum: C++ Development
Topic: Partial background color
Replies: 14
Views: 1934

Re: Partial background color

Is the content custom painted, or are these two different controls? Here's the method in full: void MyFrame::verifyMC_Answer(wxCommandEvent &event) { const wxColour myGreen = {128,255,0}; const wxColor myRed = {255,42,0}; const wxColor myWhite = {255,255,255}; btnVerifyClicked = true; if (mcThe...
by Slyde
Tue Mar 05, 2024 8:02 am
Forum: C++ Development
Topic: Partial background color
Replies: 14
Views: 1934

Partial background color

I'm working on a trivia app. The user gets a question right, the background of the right answer goes green. They get it wrong and the correct answer's background goes green and the user selection background goes red. But that's not happening...not entirely. Screenshot from 2024-03-05 01-56-36.png Wh...
by Slyde
Tue Mar 05, 2024 7:41 am
Forum: C++ Development
Topic: How using my own sizer
Replies: 12
Views: 403

Re: How using my own sizer

@Size: Watch this. It'll help you with sizers.
by Slyde
Sun Feb 25, 2024 6:39 pm
Forum: Compiler / Linking / IDE Related
Topic: Debug vs. Release
Replies: 3
Views: 1830

Re: Debug vs. Release

Good information on that link, PB. I appreciate it.
by Slyde
Sun Feb 25, 2024 3:53 pm
Forum: Compiler / Linking / IDE Related
Topic: Debug vs. Release
Replies: 3
Views: 1830

Debug vs. Release

I've always compiled just a release version of wxWidgets for authoring my work. I've never had an issue doing it this way, though I believe some things cld've been made easier had I been using a debug version. So if I wanted to compile a debug version, are there benefits I'd see to using it while de...
by Slyde
Mon Aug 28, 2023 6:55 pm
Forum: C++ Development
Topic: Cannot append a struct wxstring variable to wxChoice
Replies: 3
Views: 474

Re: Cannot append a struct wxstring variable to wxChoice

Hi doublemax. Can we talk abt wxSQLite3 for a moment? I have wxsqlite3-main.zip . But the thing is, I don't know how to install it. I see in its build directory a CMakeLists.txt, but I don't know what good it wld do me, even though I use CMakeLists.txt with every project created for me by CLion. Tha...
by Slyde
Mon Aug 28, 2023 5:28 pm
Forum: C++ Development
Topic: Cannot append a struct wxstring variable to wxChoice
Replies: 3
Views: 474

Cannot append a struct wxstring variable to wxChoice

Linux Mint 21.2 wxWidgets-3.2.2.1 I have this code in my header file: struct names_t{ int nameID; wxString name; }; In main, I have this: void Study::loadNames() { sqlite3* db = nullptr; sqlite3_stmt* stmt = nullptr; const std::string sqlQuery = "SELECT ID, NAME FROM STUDIERS ORDER BY NAME ASC&...
by Slyde
Wed Aug 23, 2023 3:48 am
Forum: C++ Development
Topic: wxEVT_LEFT_DOWN fails
Replies: 2
Views: 2189

Re: wxEVT_LEFT_DOWN fails

Hey New Pagodi. Binding the control the way you showed me did the trick. I'm still fumbling my way through wxWidgets and this was a really cool thing to learn. Much appreciated.
by Slyde
Tue Aug 22, 2023 9:30 pm
Forum: C++ Development
Topic: wxEVT_LEFT_DOWN fails
Replies: 2
Views: 2189

wxEVT_LEFT_DOWN fails

I'm trying to capture a left-click event and it just isn't working. Given the code below, can someone tell me what I'm doing wrong, or what more needs to be done to make this to work? main.h void On_mcAnswer1_LeftDown(wxMouseEvent& event); main.cpp mcAnswer1 = new wxTextCtrl(mcPanel, wxID_ANY, &...
by Slyde
Tue Jul 25, 2023 9:21 pm
Forum: C++ Development
Topic: INI Files
Replies: 7
Views: 2355

Re: INI Files

Thanks for the information, ONEEYEMAN. I guess we'll just have to wait and see how it affects our work.