Search found 70 matches

by saifcoder
Wed Jun 06, 2018 10:26 pm
Forum: C++ Development
Topic: How to ignore wxCmdLineParser ?
Replies: 8
Views: 861

Re: How to ignore wxCmdLineParser ?

Yes, wxAppConsole::OnCmdLineError() with true return did it, but after showing error message ! Waw!
Unexpected parameter 'TestArg1'
Then App continue in normal way because wxAppConsole::OnCmdLineError() return true, so how to completely prevent wxAppConsole::OnCmdLineError() to show error log ?
by saifcoder
Wed Jun 06, 2018 10:13 pm
Forum: C++ Development
Topic: How to ignore wxCmdLineParser ?
Replies: 8
Views: 861

Re: How to ignore wxCmdLineParser ?

I am using Github master branch (wxWidgets 3.1.1), on Windows (TDM GCC) right now, but i m sure the same result on Linux and Mac.. class MyApp : public wxApp { public: MyApp(); ~MyApp(); virtual bool OnInit(); virtual int OnExit(); private: DECLARE_NO_COPY_CLASS(MyApp) }; bool MyApp::OnInit() { if (...
by saifcoder
Wed Jun 06, 2018 9:44 pm
Forum: C++ Development
Topic: How to ignore wxCmdLineParser ?
Replies: 8
Views: 861

Re: How to ignore command arguments Parser ?

Thank you for your replay Doublemax, but i didn't call wxApp::OnInit() from MyApp::OnInit() ! Where you see this call ? ^_^ I get this error because i run the app with test arguments (MyApp.exe ArgTest1 ArgTest2...), so the command arguments Parser (wxCmdLineParser) return unknow argument "ArgTest1"...
by saifcoder
Wed Jun 06, 2018 7:00 pm
Forum: C++ Development
Topic: How to ignore wxCmdLineParser ?
Replies: 8
Views: 861

Re: How to ignore command arguments Parser ?

its a GUI application ^_^
by saifcoder
Wed Jun 06, 2018 6:59 pm
Forum: C++ Development
Topic: How to ignore wxCmdLineParser ?
Replies: 8
Views: 861

How to ignore wxCmdLineParser ?

I want parse command arguments myself, i can get correctly argc and argv bool MyApp::OnInit() { ... wxApp::argc ; ... wxApp::argv[2] ; } but i get wxCmdLineParser error message : Unexpected paramter 'TestArg1' Usage: minimal [/h] [--verbose] /h, --help show this help message, --verbose generate verb...
by saifcoder
Mon Jun 04, 2018 12:42 am
Forum: C++ Development
Topic: wxstyledtextctrl (Scintilla) - How to change style of a specific line
Replies: 4
Views: 702

Re: wxstyledtextctrl (Scintilla) - How to change style of a specific line

Thank you New Pagodi, now by your precious help all problems are fixed, thank you again ^_^
by saifcoder
Sun Jun 03, 2018 5:02 pm
Forum: C++ Development
Topic: wxstyledtextctrl (Scintilla) - How to change style of a specific line
Replies: 4
Views: 702

Re: wxstyledtextctrl (Scintilla) - How to change style of a specific line

Thank you New Pagodi, the code is exactly what i m looking for ^_^ I have two questions please, how to clear the Indicator Style ? i didn't find a solution in the documentations !, i create a loop for every line in STC, and tray to set Indicator for all lines to 'null' but not work (crash!) And plea...
by saifcoder
Sat Jun 02, 2018 7:08 pm
Forum: C++ Development
Topic: wxstyledtextctrl (Scintilla) - How to change style of a specific line
Replies: 4
Views: 702

wxstyledtextctrl (Scintilla) - How to change style of a specific line

I have set the wxStyledtextctrl style (syntax highlighting) correctly in our project, but, i need now to change style of a specific line, like highlighting the error syntax code in red color or same thing like that. i thing is possible by highlighting the start pose in the line, to the end pose, the...
by saifcoder
Mon May 28, 2018 4:54 am
Forum: Compiler / Linking / IDE Related
Topic: wxWidget v 3.1.0 compile errors on mac10.12
Replies: 11
Views: 1859

Re: wxWidget v 3.1.0 compile errors on mac10.12

finally i build it ^_^

Thank you,
by saifcoder
Mon May 28, 2018 2:27 am
Forum: Compiler / Linking / IDE Related
Topic: wxWidget v 3.1.0 compile errors on mac10.12
Replies: 11
Views: 1859

Re: wxWidget v 3.1.0 compile errors on mac10.12

without sudo, you get permission denied in some ways, and chmod is needed to make python script executable to give configure ability to run it gen_iface.py, and gen_docs.py is a part of scintilla in wxWidgets, it generate .h files and docs i thing the '\r' is an end line problem, i fix it by re-writ...
by saifcoder
Sun May 27, 2018 10:32 am
Forum: Compiler / Linking / IDE Related
Topic: wxWidget v 3.1.0 compile errors on mac10.12
Replies: 11
Views: 1859

Re: wxWidget v 3.1.0 compile errors on mac10.12

I have the same error.. this is user Permission issue right ? even with 'sudo' still can't build sudo sh ../configure --with-osx_cocoa --with-cocoa --disable-shared --enable-unicode --enable-utf8 --enable-utf8only --disable-monolithic --disable-debug --disable-debug_flag --disable-debug_gdb CFLAGS="...
by saifcoder
Thu May 24, 2018 11:19 pm
Forum: C++ Development
Topic: wxToolBar - wxArtProvider - background transparent color (Black)
Replies: 2
Views: 593

Re: wxToolBar - wxArtProvider - background transparent color (Black)

Thank you New Pagodi, Yes this is manifest issue.

1 - Adding #include "wx/msw/wx.rc" in resource file.
2 - make sure you add Include folder path to the resource compiler

Thanks,
by saifcoder
Thu May 24, 2018 10:49 pm
Forum: C++ Development
Topic: wxToolBar - wxArtProvider - background transparent color (Black)
Replies: 2
Views: 593

wxToolBar - wxArtProvider - background transparent color (Black)

I report this 6 months ago ! : https://trac.wxwidgets.org/ticket/18008 1 - Create simple wxToolBar. 2 - Set Bitmap icon using wxArtProvider Problem : The background color is Black, normally its wold be transparent. Windows 7 TDM GCC-5.1 32Bits WX 3.1.1 - Unicode - Static 32Bits Build #include <wx/wx...
by saifcoder
Sun May 20, 2018 7:15 pm
Forum: C++ Development
Topic: Crash when create Dialog after Destroy()
Replies: 4
Views: 537

Re: Crash when create Dialog after Destroy()

And why are you checking the FRAME_2_CONSTRUCTED flag in FRAME_2::BOUTON_2_CLICK? This is a method from FRAME_2
Oh! Yeah! My Stupid! Sorry :)

Code: Select all

void FRAME_2::BOUTON_2_CLICK(wxCommandEvent &event)
{
   event.Skip();
   Close();
}
Thank you doublemax,
by saifcoder
Sun May 20, 2018 12:32 am
Forum: C++ Development
Topic: Crash when create Dialog after Destroy()
Replies: 4
Views: 537

Re: Crash when create Dialog after Destroy()

Thank you doublemax, i change it to wxFrame :D The crash is happen because the incorrect parent !, the parent is the same Frame ! , i know basically is incorrect, but why can create the Frame only once ? FRAME_2 :: FRAME_2() : wxFrame( ---> OBJ_FRAME_2 <--- , ID_FRAME_2, "FRAME 2", wxPoint(50, 50), ...