Search found 88 matches

by ColleenKobe
Tue Aug 28, 2018 8:08 pm
Forum: C++ Development
Topic: How to Place a wxStaticBitmap into a wxStatusBar
Replies: 2
Views: 210

How to Place a wxStaticBitmap into a wxStatusBar

I am looking at the sample program that came with wxWidgets called statbar (see below). Part of the executable of statbar shows a wxStatusBar bar containing a checkbox, a bitmap, and text. statbar.cpp My question is, how do the checkbox, bitmap, and text get loaded into the fields of the status box?...
by ColleenKobe
Wed Jun 27, 2018 12:06 pm
Forum: C++ Development
Topic: Could Not Convert to a bool--why not?
Replies: 6
Views: 2678

Re: Could Not Convert to a bool--why not?

@PB--thank you for the suggestion about smart pointers. I had never heard of them, so they will be a new tool in my software toolbox. Regarding not executing destructor code--that's a good point. I'll go over what I have for now, destructor-wise, and verify I'm not missing executing something there....
by ColleenKobe
Tue Jun 26, 2018 7:45 pm
Forum: C++ Development
Topic: Could Not Convert to a bool--why not?
Replies: 6
Views: 2678

Re: Could Not Convert to a bool--why not?

@Manolo and doublemax, O M G!!! LIFE IS GOOD AGAIN! You were both right--I had two boolean values that were supposed to be displayed in wxDataViewListCtrl checkboxes, but I was sending in UInt16s. I changed their values to be explicitly booleans, and now everything works again. I don't know why the...
by ColleenKobe
Tue Jun 26, 2018 5:24 pm
Forum: C++ Development
Topic: Could Not Convert to a bool--why not?
Replies: 6
Views: 2678

Could Not Convert to a bool--why not?

Hi, I have a very large program written in wxWidgets, C, and C++ for Windows that keeps giving me the execution error message "Could not convert to a bool." See the screen shot below. Could not convert to bool error.jpg The error occurs after execution leaves main.cpp's OnInit. OnInit runs without e...
by ColleenKobe
Tue Jun 12, 2018 7:17 pm
Forum: Platform Related Issues
Topic: How do I fix "error: '__off64_t' does not name a type"?
Replies: 1
Views: 809

How do I fix "error: '__off64_t' does not name a type"?

Below is a build log of the build of my MinGW/wxWidgets/CodeLite workspace. As you can see, I have two projects that compile into a DLL, and they build fine. One DLL is plain C, and the other is a small C++ wrapper without any GUI. The main program is the one that bombs. It is a GUI in C++. C:\Windo...
by ColleenKobe
Thu Jun 07, 2018 9:58 pm
Forum: Compiler / Linking / IDE Related
Topic: Changing from 32-bit to 64-bit MinGW
Replies: 1
Views: 287

Changing from 32-bit to 64-bit MinGW

I am currently working in the following environment: * MinGW, 32 bit version * wxWidgets, originally compiled with MinGW-32. * CodeLite version 12.0.3 * Building in Windows 10 Test Mode * Target platform = Windows 10 * Developing on a 64-bit Windows computer I now need to change my development platf...
by ColleenKobe
Mon Apr 16, 2018 4:10 pm
Forum: Compiler / Linking / IDE Related
Topic: Latest Version of setup.h?
Replies: 12
Views: 2162

Re: Latest Version of setup.h?

Thanks, doublemax. I'll do that. :-)

Colleen
by ColleenKobe
Mon Apr 16, 2018 1:43 pm
Forum: Compiler / Linking / IDE Related
Topic: Latest Version of setup.h?
Replies: 12
Views: 2162

Re: Latest Version of setup.h?

Hi, doublemax, This is datatypes.h: #ifndef DATATYPES_H #define DATATYPES_H // ============================================================================= // Set Up Compiler Options // ============================================================================= /* Make sure functions are exported...
by ColleenKobe
Fri Apr 13, 2018 4:26 pm
Forum: Compiler / Linking / IDE Related
Topic: Latest Version of setup.h?
Replies: 12
Views: 2162

Re: Latest Version of setup.h?

Thank you for replying, doublemax. The first wx header inside ut_gui.h used to be #include <wx/string.h> Now the wx files in the ut_gui.h file #include list are just these: #include <wx/wx.h> // 5z #include <wx/string.h> // 6 I also edited the wrapper procedures to do more what I need them to do, an...
by ColleenKobe
Thu Apr 12, 2018 6:35 pm
Forum: Compiler / Linking / IDE Related
Topic: Latest Version of setup.h?
Replies: 12
Views: 2162

Re: Latest Version of setup.h?

Hi, doublemax, I know this is a 12-year-old question, but I am having the same problem today. My situation is this: I am working in Windows 10. I have a CodeLite workspace containing a C++ wxwidgets main program and a C-language dll. The C dll needs to call some of the C++ procedures, so I'm writing...
by ColleenKobe
Tue Feb 27, 2018 9:52 pm
Forum: C++ Development
Topic: How do you Turn off a wxTextCtrl Insertion Point?
Replies: 3
Views: 325

Re: How do you Turn off a wxTextCtrl Insertion Point?

Hi, doublemax, No, I did not call event.Skip() in my wxEVT_KILL_FOCUS code. And yes, when I added it at the top of the procedure, the insertion point worked perfectly and the highlighting problem went away! Woo hoo! You're a genius. Thank you!!! Tomorrow I will look up event.Skip to find out what it...
by ColleenKobe
Tue Feb 27, 2018 8:03 pm
Forum: C++ Development
Topic: How do you Turn off a wxTextCtrl Insertion Point?
Replies: 3
Views: 325

How do you Turn off a wxTextCtrl Insertion Point?

I have a wxTextCtrl field called m_Eq_m. The only event I use to modify or save its contents is wxEVT_KILL_FOCUS. At the end of my OnEq_m_Kill_Focus procedure, I use SetValue to update the field. (i.e. m_Eq_m->SetValue (temp_st); ) Here's what happens: 1. I click inside m_Eq_m to make it the focus. ...
by ColleenKobe
Mon Jan 29, 2018 12:58 pm
Forum: C++ Development
Topic: wxDataViewListCtrl: Change the background color for selectedrows?
Replies: 4
Views: 595

Re: wxDataViewListCtrl: Change the background color for selectedrows?

Doublemax,

Thank you for investigating the background color issue for me. I wouldn't have known where to START looking.

It sounds like changing the background color in a wxDataViewListCtrl involves more time and energy than the results warrant. Too bad, but OK.

Thanks again!

Colleen
by ColleenKobe
Fri Jan 26, 2018 3:57 pm
Forum: C++ Development
Topic: wxDataViewListCtrl: Change the background color for selectedrows?
Replies: 4
Views: 595

Re: wxDataViewListCtrl: Change the background color for selectedrows?

Thank you for answering, OneEyeMan.

Yes, I looked at the wxDataViewCtrl sample. There was a tab there showing a wxDataViewListCtrl, but all the rows had a white background.

There was also a tab called MyListModel with different colors of text, but the row backgrounds were also all white.

Colleen
by ColleenKobe
Thu Jan 25, 2018 8:47 pm
Forum: C++ Development
Topic: wxDataViewListCtrl: Change the background color for selectedrows?
Replies: 4
Views: 595

wxDataViewListCtrl: Change the background color for selectedrows?

I've created a wxDataViewListCtrl. When the program runs, some rows will have active data, and some rows will have "inactive" data. Is there a way that I can change the background color of the inactive rows to gray? Assume the background color would "key off" one of the fields. I do know about the w...