Search found 423 matches

by raananb
Sun May 10, 2020 8:22 pm
Forum: C++ Development
Topic: wxCalendar event priority
Replies: 2
Views: 201

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.
by raananb
Sun May 10, 2020 1:40 pm
Forum: C++ Development
Topic: wxCalendar event priority
Replies: 2
Views: 201

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 ...
by raananb
Mon Apr 27, 2020 11:18 am
Forum: C++ Development
Topic: wxGrid disable/enable
Replies: 4
Views: 224

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 ); ...
by raananb
Sun Apr 26, 2020 4:23 pm
Forum: C++ Development
Topic: wxGrid disable/enable
Replies: 4
Views: 224

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?
by raananb
Wed Mar 25, 2020 10:35 pm
Forum: Platform Related Issues
Topic: Display of wxStaticText in GTK+3
Replies: 17
Views: 1068

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...
by raananb
Tue Mar 24, 2020 10:55 pm
Forum: Platform Related Issues
Topic: Display of wxStaticText in GTK+3
Replies: 17
Views: 1068

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...
by raananb
Tue Mar 24, 2020 11:12 am
Forum: Platform Related Issues
Topic: Display of wxStaticText in GTK+3
Replies: 17
Views: 1068

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 ...
by raananb
Mon Mar 23, 2020 10:32 am
Forum: Platform Related Issues
Topic: Display of wxStaticText in GTK+3
Replies: 17
Views: 1068

Re: Display of wxStaticText in GTK+3

apt policy libgtk-3* produces

Installed: 3.22.30-1ubuntu4
by raananb
Mon Mar 23, 2020 10:25 am
Forum: Platform Related Issues
Topic: Display of wxStaticText in GTK+3
Replies: 17
Views: 1068

Re: Display of wxStaticText in GTK+3

Surfing the internet, I came across the issue webkit/webkit2: webkit is single process and webkit2 is multiprocess, which can explain the unexpected display.

How can I control the webkit which is used?
by raananb
Mon Mar 23, 2020 8:57 am
Forum: Platform Related Issues
Topic: Display of wxStaticText in GTK+3
Replies: 17
Views: 1068

Re: Display of wxStaticText in GTK+3

Hi,
Link missing
Thanks
by raananb
Sun Mar 22, 2020 9:34 pm
Forum: Platform Related Issues
Topic: Display of wxStaticText in GTK+3
Replies: 17
Views: 1068

Re: Display of wxStaticText in GTK+3

@ONEEYEMAN: The value I am inserting comes from the web, so a picker is not relevant. @doublemax, your hunch was correct. I inserted wxMessageBoxes (the numbers 513,515... are of the code lines): label.Truncate(pos); label.Append(lastQuote); wxMessageBox(wxString::Format("513 %d %d",label_QuotesOn->...
by raananb
Sun Mar 22, 2020 4:21 pm
Forum: Platform Related Issues
Topic: Display of wxStaticText in GTK+3
Replies: 17
Views: 1068

Re: Display of wxStaticText in GTK+3

Hi and thanks for responding

Everything was built with GTK+3, but I do not know how to determine a finer definition of the version.

wxRESERVE_SPACE_EVEN_IF_HIDDEN seems to have no effect, the result is the same if it is set or not.
by raananb
Sun Mar 22, 2020 10:26 am
Forum: Platform Related Issues
Topic: Display of wxStaticText in GTK+3
Replies: 17
Views: 1068

Display of wxStaticText in GTK+3

On Mint 19.3, with GTK+3 and wxWidgets-3.1.3, a wxStaticText is created with the following statement: label_QuotesOn = new wxStaticText( itemDialog1, wxID_STATIC, _("Latest_quote: 99-99-9999 99h99"), wxDefaultPosition, wxDefaultSize, 0 ); label_QuotesOn->Show(false); itemBoxSizer3->Add(label_QuotesO...
by raananb
Sat Feb 22, 2020 8:07 pm
Forum: Platform Related Issues
Topic: ____longjmp_chk () in Ubuntu 18.04
Replies: 27
Views: 1816

Re: ____longjmp_chk () in Ubuntu 18.04

Hi, My point is that if the official documentation of wxWebView does not mention this restriction, then the warning in the sample points to a bug, at least as far as Linux is concerned. As for injecting my code into the sample, I replaced the original url with a url pertinent to my application and r...
by raananb
Sat Feb 22, 2020 3:10 pm
Forum: Platform Related Issues
Topic: ____longjmp_chk () in Ubuntu 18.04
Replies: 27
Views: 1816

Re: ____longjmp_chk () in Ubuntu 18.04

Hi, I dont see what you mean by 'break the modified sample'. BTW, you mentioned earlier a documentation bug. I have not seen any mention of restriction about using wxWebView in a window which is not top-level, which is certainly not true for Windows and OSX. I built my application ignoring the issue...