Search found 364 matches
- Sat Jan 16, 2021 7:11 am
- Forum: C++ Development
- Topic: Is it possible to find the number of items in a ListBox?
- Replies: 1
- Views: 84
Re: Is it possible to find the number of items in a ListBox?
Here's the documentation. The method you're looking for is GetCount().
- Wed Jan 13, 2021 7:10 pm
- Forum: C++ Development
- Topic: Is it possible to have a gnuplot plot in wxFrame window.
- Replies: 23
- Views: 769
Re: Is it possible to have a gnuplot plot in wxFrame window.
It works on windows 10, but it may not work on windows 7. You can maybe try calling
That should set the IE rendering engine to use the latest version available. Maybe that latest version can render the SVG.
Code: Select all
wxWebViewIE::MSWSetEmulationLevel(wxWEBVIEWIE_EMU_IE11);
- Thu Dec 10, 2020 6:48 am
- Forum: C++ Development
- Topic: How write terminal emnulator?
- Replies: 4
- Views: 190
Re: How write terminal emnulator?
If you're really determined to do this, I would start with the source for the text control from the wxUniveral port(<wxroot>/src/univ/textctrl.cpp) and adapt it so that only the last line is editable. You can probably throw out a substantial portion of the code since it won't be relevant for what yo...
- Thu Nov 26, 2020 4:11 am
- Forum: C++ Development
- Topic: Is it possible to have a gnuplot plot in wxFrame window.
- Replies: 23
- Views: 769
Re: Is it possible to have a gnuplot plot in wxFrame window.
Is it possible to print and save plot images doing it this way? Using wxWebview like above, you should be able to call wxWebview::Print to print the plot and wxWebview::GetPageSource to get a string that can be saved to a file. It will be an SVG file though and some image applications may not be ab...
- Tue Nov 24, 2020 1:43 am
- Forum: C++ Development
- Topic: Is it possible to have a gnuplot plot in wxFrame window.
- Replies: 23
- Views: 769
Re: Is it possible to have a gnuplot plot in wxFrame window.
As a compromise, am I right in assuming I can open gnuplot from within my app, and send commands to plot and read the data to plot from a file? This might be a possibility. In a way, controlling gnuplot from within my wxWidgets app. Yes. Actually, you don't need to save to an intermediate file. If ...
- Fri Nov 20, 2020 9:11 pm
- Forum: C++ Development
- Topic: Is it possible to have a gnuplot plot in wxFrame window.
- Replies: 23
- Views: 769
Re: Is it possible to have a gnuplot plot in wxFrame window.
Thanks for explaining that. It's a shame if it doesn't work in Windows because that's what I use the most. I will study what you did here anyway. Ideally I'd like to write a program that would work in Windows with the option to compile for Linux if requested. It definitely should be possible to red...
- Fri Nov 20, 2020 8:07 am
- Forum: C++ Development
- Topic: Is it possible to have a gnuplot plot in wxFrame window.
- Replies: 23
- Views: 769
Re: Is it possible to have a gnuplot plot in wxFrame window.
Here's a small example using wxGTK3 // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif // for all others, include the necessary headers (this file is usually all you // need because it includes almost all "standard" wxW...
- Thu Nov 19, 2020 7:12 pm
- Forum: C++ Development
- Topic: Is it possible to have a gnuplot plot in wxFrame window.
- Replies: 23
- Views: 769
Re: Is it possible to have a gnuplot plot in wxFrame window.
I posted some wrong information before. If anyone saw this post before this edit, please disregard what I write earlier. I don't think there is a way to embed an interactive terminal. However, on X11 you can redirect to plot output to a window So for example, with wxGTK3 if you have a panel named m_...
- Sun Nov 15, 2020 12:40 am
- Forum: C++ Development
- Topic: Download file with CURL and wxThread with progressbar
- Replies: 2
- Views: 210
Re: Download file with CURL and wxThread with progressbar
Here's some old code I had lying around that for downloading with CURL in a secondary thread. I added the progress callbacks and they seem to work. // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif // for all others, i...
- Sun Oct 18, 2020 3:10 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Compiling wxWidgets 3.1.4 using nmake: libtiff error
- Replies: 1
- Views: 243
Re: Compiling wxWidgets 3.1.4 using nmake: libtiff error
Are you sure you need all that extra stuff? I just tried compiling the latest git version with nmake -f makefile.vc SHARED=0 BUILD=release TARGET_CPU=X64 and it worked just fine. I don't know what most of the extra you have does, but I know at least adding MP isn't going to do any good. nmake always...
- Fri Oct 02, 2020 7:10 pm
- Forum: C++ Development
- Topic: problem with array of wxPanel
- Replies: 22
- Views: 714
Re: problem with array of wxPanel
If you're on windows, there is a limit to the number of windows your allowed to create: There is a theoretical limit of 65,536 user handles per session. However, the maximum number of user handles that can be opened per session is usually lower, since it is affected by available memory. There is als...
- Tue Sep 29, 2020 3:35 pm
- Forum: C++ Development
- Topic: how to display array of hex bytes into control and translate to ascii
- Replies: 3
- Views: 362
Re: how to display array of hex bytes into control and translate to ascii
Here's a small example to dump the contents of a file to a wxStyledTextCtrl in hex form. Maybe you can adapt it for what you want to do. // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif // for all others, include the ...
- Tue Sep 08, 2020 3:00 pm
- Forum: C++ Development
- Topic: wxStyledTextCtrl keyword lists
- Replies: 3
- Views: 331
Re: wxStyledTextCtrl keyword lists
You can only use keywords lists that the lexer will actually assign. For the c++ lexer this is currently keyword list number corresponding style ------------- --- --------------- Primary keywords and identifiers 0 wxSTC_C_WORD Secondary keywords and identifiers 1 wxSTC_C_WORD2 Documentation comment ...
- Mon Sep 07, 2020 3:54 pm
- Forum: C++ Development
- Topic: Per-word autocomplete
- Replies: 12
- Views: 606
Re: Per-word autocomplete
I haven't tried the styled control yet, but from the wxFormBuilder it looked like it is intended for big text windows and I haven't found a way how to remove its' scroll bars. Because I need to have basically just one line search bar where you can enter multiple words. But I don't need or want any ...
- Thu Sep 03, 2020 2:09 pm
- Forum: C++ Development
- Topic: Per-word autocomplete
- Replies: 12
- Views: 606
Re: Per-word autocomplete
If you don't mind using wxStyledTextControl, its autocomplete feature can function in the manor you're describing.