Search found 29 matches

by mybofy
Wed May 27, 2020 2:47 pm
Forum: C++ Development
Topic: Potential memory leak with : (void) new MyClass(...);
Replies: 1
Views: 115

Potential memory leak with : (void) new MyClass(...);

Bonjour wxWidgets 3.1.2 - xCode 11 In directory samples, I read : (void) new wxButton( this, ID_ADDBUTTON, "add button", wxPoint(10,10) ); It is convenient to instantiate a class without the need of giving a name to the instance (no warning "variable not used") That works for me in xCode. But, when ...
by mybofy
Mon Nov 11, 2019 10:55 am
Forum: Platform Related Issues
Topic: The "Hello World" Program
Replies: 2
Views: 315

The "Hello World" Program

Bonjour macOS 10.14 - wxWidgets 3.1.2 The "Hello World" Program (https://docs.wxwidgets.org/3.1.2/overview_helloworld.html) works well. But it is not conform the recommandation from Apple. I am searching the same program specifically coded for macOS. All examples I find content a wxFrame, which is s...
by mybofy
Sat Nov 09, 2019 4:48 pm
Forum: Platform Related Issues
Topic: Menus mac
Replies: 2
Views: 348

Menus mac

Bonjour

MacOS 10.14

A quoi sert la classe wxTopLevelWindowMac (pas documenté dans la doc officielle) ?
Faut-il l'utiliser et comment ?

Merci

Google Translation:
What is the wxTopLevelWindowMac class for (not documented in the official doc)?
Should it be used and how?
by mybofy
Sun Apr 07, 2019 3:55 pm
Forum: Platform Related Issues
Topic: Howto disable popup in wxtextctrl
Replies: 7
Views: 731

Re: Howto disable popup in wxtextctrl

My last assumptions where good : wxWidgets was not concerned The problem is at the level of the management of the keyboard in macOS 14.14. Open  > System preferences > Keyboard > Text There is a kind of dictionnary with a list of words to remplace by ... The word Wherbarium was there ! I suppress i...
by mybofy
Sun Apr 07, 2019 9:21 am
Forum: Platform Related Issues
Topic: Howto disable popup in wxtextctrl
Replies: 7
Views: 731

Re: Howto disable popup in wxtextctrl

Merci

I just send mail to wx-users.

The text sample : the m_text has the same behavior.
Nothing change when I add
wxSystemOptions::SetOption( wxMAC_TEXTCONTROL_USE_SPELL_CHECKER, 0 );
in init()
or
m_test->MacCheckSpelling(false);
in MyPanel::MyPanel

More ?
by mybofy
Tue Apr 02, 2019 3:22 pm
Forum: Platform Related Issues
Topic: Howto disable popup in wxtextctrl
Replies: 7
Views: 731

Re: Howto disable popup in wxtextctrl

Merci

There somethings in wxSystemOptions

But nor
wxSystemOptions::SetOption( wxMAC_TEXTCONTROL_USE_SPELL_CHECKER, 0 );
nor
hostValue->MacCheckSpelling(false);
working.

A search on the net show this is mentionned : it should work ?
by mybofy
Tue Apr 02, 2019 1:50 pm
Forum: Platform Related Issues
Topic: Howto disable popup in wxtextctrl
Replies: 7
Views: 731

Howto disable popup in wxtextctrl

Bonjour macOS 14.14 - wxwidgets 3.1.2 hostValue = new wxTextCtrl(panel0, ID_Host, wxEmptyString); When I enter a text which is the same as the name of my application in lowercase, I have a popup which propose the text with the fisrt letter in uppercase ! It is not very important, but it is very anno...
by mybofy
Fri Feb 01, 2019 4:30 pm
Forum: C++ Development
Topic: wxDefaultDateTime.IsValid() == false
Replies: 1
Views: 195

wxDefaultDateTime.IsValid() == false

Bonjour

wxwidgets 3.1.2

Why "wxDefaultDateTime.IsValid()" is always false ?

Value of wxDefaultDateTime is : 292278994-08-16_17-47-04 !!!

Merci
by mybofy
Sat Feb 24, 2018 6:05 pm
Forum: C++ Development
Topic: wxListCtrl getting content of cell via wxListEvent
Replies: 1
Views: 291

wxListCtrl getting content of cell via wxListEvent

Bonjour I have a wxListCtrl : list0 = new wxListView(panel0, ID_ListeCtrl, point0, size0, wxLC_REPORT); How to obtain the content of a cell at row and column when I click on that cell ? If I use EVT_LIST_ITEM_SELECTED, event.GetText give me only the content at the cell at column 0. Merci de l'aide
by mybofy
Wed Jan 03, 2018 9:54 pm
Forum: C++ Development
Topic: How to make an event execute immediately ?
Replies: 7
Views: 1180

Re: How to make an event execute immediately ?

Merci. Very interesting for me : I understand that I understanded nothing how to works an application... Some silly questions. First, what is the "main thread" : When I create MyApp (class MyApp : public wxApp), the "main tread" is created. All is in "main thread", unless I create secondary thread (...
by mybofy
Wed Jan 03, 2018 5:25 pm
Forum: C++ Development
Topic: How to make an event execute immediately ?
Replies: 7
Views: 1180

Re: How to make an event execute immediately ?

Merci. "The solution doublemax showed" helps. My application is builded with several modules. The modules are independent, more or less, each other. Example : a module include several sub-modules, here "PhotosToUpload", "PhotoToDownload", etc. ; each of that sud-modules send infos to an uniq spcial ...
by mybofy
Wed Jan 03, 2018 1:39 pm
Forum: C++ Development
Topic: How to make an event execute immediately ?
Replies: 7
Views: 1180

How to make an event execute immediately ?

Bonjour wxWidgets 3.1 My wxFrame : "PhotosToUpload" copies files from directory "srcDir" to directory "destDir" Works fine. Now more informative, "PhotosToUpload" call my wxFrame : "FilesToStartMoveAndShown" wich shall do two things - start the copy of files in "PhotosToUpload" with a wxButton "star...
by mybofy
Fri Dec 15, 2017 2:00 pm
Forum: C++ Development
Topic: Why wxTopLevelWindowMac ?
Replies: 1
Views: 316

Why wxTopLevelWindowMac ?

Bonjour

By chance, I found the class "wxTopLevelWindowMac".
It is not documented in official documentation for 3.1.0, but yes in fossies.

My question : what is the use of that class ? it is necessary in an macOS application ?

Merci.
by mybofy
Sun Dec 10, 2017 2:53 pm
Forum: Compiler / Linking / IDE Related
Topic: wxString::Format(wxT("%d"), ijk) error
Replies: 2
Views: 705

Re: wxString::Format(wxT("%d"), ijk) error

You are right :
"wxString::Format("%d", ijk);"
works !

Merci
by mybofy
Sun Dec 10, 2017 2:08 pm
Forum: Compiler / Linking / IDE Related
Topic: wxString::Format(wxT("%d"), ijk) error
Replies: 2
Views: 705

wxString::Format(wxT("%d"), ijk) error

Bonjour macOS 10.13 - Xcode 9 - wxWidgets 3.1.0 Build "libwx_osx_cocoa.dylib" via ".../wxWidgets-3.1.0/build/osx/wxcocoa.xcodeproj" OK after "verify_noerr" to "__Verify_noErr" and "#define wxOSX_USE_QTKIT 1" to "#define wxOSX_USE_QTKIT 0" Create Xcode project "wxHello" from example "http://docs.wxwi...