"USER" works under OSX, while Windows requires "USERNAME"...
Thanks.
Search found 430 matches
- Sat Oct 10, 2020 8:08 am
- Forum: C++ Development
- Topic: wxGetenv() underMSW
- Replies: 2
- Views: 187
- Sat Oct 10, 2020 7:23 am
- Forum: C++ Development
- Topic: wxGetenv() underMSW
- Replies: 2
- Views: 187
wxGetenv() underMSW
I am trying to use wxDirTraverser on a folder in Users folder. To avoid hard-coding, I need to get the user name. I tried using wxString user = wxGetenv("USER"); While the instruction above works fine in OSX, it returns en empty string under Windows 10, with wxWidgets-3.1.4 & Visual Studio 2019. Usi...
- Mon Oct 05, 2020 12:58 pm
- Forum: Platform Related Issues
- Topic: OSX wxTextCtrl missing cursor
- Replies: 4
- Views: 288
Re: OSX wxTextCtrl missing cursor
As far as I could determine, the problem arose from an incorrectly initialized font value for a SetFont() on wxTextCtrl.
Thanks for the interest.
Thanks for the interest.
- Sun Oct 04, 2020 5:53 pm
- Forum: Platform Related Issues
- Topic: OSX wxTextCtrl missing cursor
- Replies: 4
- Views: 288
Re: OSX wxTextCtrl missing cursor
This happens with both objects, when I click in one id gets a colored frame, but no cursor.
A typed letter does not show.
Moreover, a wxEVT_TEXT event is not produced (not caught in the handler). It is possible to set a value by program, and it is displayed.
A typed letter does not show.
Moreover, a wxEVT_TEXT event is not produced (not caught in the handler). It is possible to set a value by program, and it is displayed.
- Sun Oct 04, 2020 3:30 pm
- Forum: Platform Related Issues
- Topic: OSX wxTextCtrl missing cursor
- Replies: 4
- Views: 288
OSX wxTextCtrl missing cursor
As part of an application, two kind of objects are created with the following code: textb_Pass0Masked = new wxTextCtrl( itemDialog1, ID_TEXTCTRLPass0Masked, wxEmptyString, wxDefaultPosition, wxSize(200, -1), wxTE_PROCESS_ENTER|wxTE_PASSWORD ); textb_Pass0Clear = new wxTextCtrl( itemDialog1, ID_TEXTC...
- Fri Oct 02, 2020 8:52 pm
- Forum: Platform Related Issues
- Topic: distributing gtk webview application
- Replies: 2
- Views: 391
Re: distributing gtk webview application
Thanks.
Actually the 'required' is incorrect: there was an error message indocating that the system could not find the package in that directory, and that some features of webview would not be available. (Mint 19.3, under VirtualBox).
Actually the 'required' is incorrect: there was an error message indocating that the system could not find the package in that directory, and that some features of webview would not be available. (Mint 19.3, under VirtualBox).
- Fri Oct 02, 2020 12:54 pm
- Forum: Platform Related Issues
- Topic: distributing gtk webview application
- Replies: 2
- Views: 391
distributing gtk webview application
My application, built with wxWindows-3.1.4 & GTK3 and using webview requires file 'webkit2_extu-3.1.3.so' in '/usr/local/lib/wx/3.1.4' in order to run correctly. There is a low probablility that this file will be in that folder on a random Linux computer. What needs to be done so that it can run pro...
- Sun May 10, 2020 8:22 pm
- Forum: C++ Development
- Topic: wxCalendar event priority
- Replies: 2
- Views: 362
Re: wxCalendar event priority
I added EVT_CALENDAR_DAY, moved most of the code from EVT_CALENDAR_SEL_CHANGED to EVT_CALENDAR_DAY and removed EVT_CALENDAR_SEL_CHANGED.
This solved the problem.
Thanks for the suggestion.
This solved the problem.
Thanks for the suggestion.
- Sun May 10, 2020 1:40 pm
- Forum: C++ Development
- Topic: wxCalendar event priority
- Replies: 2
- Views: 362
wxCalendar event priority
wxCalendar provides EVT_CALENDAR_SEL_CHANGED, EVT_CALENDAR_YEAR and EVT_CALENDAR_MONTH. When the three events are used in an application, EVT_CALENDAR_SEL_CHANGED is fired before EVT_CALENDAR_YEAR or EVT_CALENDAR_MONTH, which makes it difficult (for me) to avoid unnecessary functional problems. For ...
- Mon Apr 27, 2020 11:18 am
- Forum: C++ Development
- Topic: wxGrid disable/enable
- Replies: 4
- Views: 376
Re: wxGrid disable/enable
The grid element is created by DialogBlocks and added to sizer itemBoxSizer2. wxBoxSizer* itemBoxSizer2 = new wxBoxSizer(wxVERTICAL); itemDialog1->SetSizer(itemBoxSizer2); grid = new wxGrid( itemDialog1, ID_GRIDGestionEntites, wxDefaultPosition, wxDefaultSize, wxSUNKEN_BORDER|wxHSCROLL|wxVSCROLL ); ...
- Sun Apr 26, 2020 4:23 pm
- Forum: C++ Development
- Topic: wxGrid disable/enable
- Replies: 4
- Views: 376
wxGrid disable/enable
wxWidgets 3.1.3 Windows 10.
wxGrid is created and Enabled() at a wxDialog window startup and it functions correctly.
At a point the grid is Disabled().
When later the grid is Enabled() - in the same wxDialog window - nothing happens. The grid ramains disabled.
Any ideas?
wxGrid is created and Enabled() at a wxDialog window startup and it functions correctly.
At a point the grid is Disabled().
When later the grid is Enabled() - in the same wxDialog window - nothing happens. The grid ramains disabled.
Any ideas?
- Wed Mar 25, 2020 10:35 pm
- Forum: Platform Related Issues
- Topic: Display of wxStaticText in GTK+3
- Replies: 17
- Views: 1621
Re: Display of wxStaticText in GTK+3
@David Hart Thanks for your suggestion. In the meantime I replaced the wxStaticText by a two-cell grid which receives the fixed text in the first cell and the variable text in the second. This works in all plateforms and does the job. In fact it is even better-looking than wxStaticText... Edit: I te...
- Tue Mar 24, 2020 10:55 pm
- Forum: Platform Related Issues
- Topic: Display of wxStaticText in GTK+3
- Replies: 17
- Views: 1621
Re: Display of wxStaticText in GTK+3
Hi, OK, forget the webkit. There still is no explanation why the application cannot produce the panel under GTK as produced by the Windows version (see www.pixname.com/0001/Share_values.jpg). The panel (in French) contains the data produced by a stock exchange in response to a user query. The time e...
- Tue Mar 24, 2020 11:12 am
- Forum: Platform Related Issues
- Topic: Display of wxStaticText in GTK+3
- Replies: 17
- Views: 1621
Re: Display of wxStaticText in GTK+3
@ONEEYEMAN Hi, 1. The original code was very simple: wxString label = "Values on: *"; label.Replace("*",m_data.ValuesDate); // this explains why a picker is not appropriate. label_ValuesOn->SetLabel(label); That works fine on Window and OSX, and I exepcted it to work on GTK, but it does not. I then ...
- Mon Mar 23, 2020 10:32 am
- Forum: Platform Related Issues
- Topic: Display of wxStaticText in GTK+3
- Replies: 17
- Views: 1621
Re: Display of wxStaticText in GTK+3
apt policy libgtk-3* produces
Installed: 3.22.30-1ubuntu4
Installed: 3.22.30-1ubuntu4