Search found 15 matches

by Berico3
Wed Sep 27, 2017 7:35 pm
Forum: C++ Development
Topic: text file and 8859-2 encoding [SOLVED]
Replies: 3
Views: 1496

Re: text file and 8859-2 encoding

Thank you for your answers.
I also normally use unicode encoding, but I'm working on a software that modifies text files (that is Gcode), since the files will then have to be read by a CNC machine, I would prefer that they keep the original encoding.
Thanks again. =D>
by Berico3
Tue Sep 26, 2017 9:51 pm
Forum: C++ Development
Topic: text file and 8859-2 encoding [SOLVED]
Replies: 3
Views: 1496

text file and 8859-2 encoding [SOLVED]

Hello to all,
I have a question about writing a wxTextfile: I can not find a way to let my file be saved with iso 8859-2 encoding.
In practice, I would like to force the encoding of the file in the way I exposed it.
It's possible?
by Berico3
Tue Feb 28, 2012 12:32 pm
Forum: C++ Development
Topic: getchar() wx style
Replies: 12
Views: 3678

Re: getchar() wx style

Do you want to catch key events on a single control, or in the entire application? In the latter case, see http://wiki.wxwidgets.org/Catching_key_events_globally In the former case, catch key down and key up events on the particular control The thing that I wanted to do was more low-level (managing...
by Berico3
Mon Feb 27, 2012 4:49 pm
Forum: C++ Development
Topic: getchar() wx style
Replies: 12
Views: 3678

Re: getchar() wx style

I'm not really sure what you want to accomplish but I assume you just want to log (and process) key presses? 1. Connect the KeyEvent (usually done in the constructor of the text ctrl parent) 2. Process the key stroke (i.e. what you do in ScanCU except connecting the event) in the event handler (Key...
by Berico3
Mon Feb 27, 2012 9:33 am
Forum: C++ Development
Topic: getchar() wx style
Replies: 12
Views: 3678

Re: getchar() wx style

Sorry, I don't understand. What do you mean, "enforce" a method? sorry for my english :oops: I try to explain better with a diagram: < DO > < NOTES TO THE PRESSURE OF A BUTTON > < ANY CHECKS > < WHILE: IF ALL IS WELL STOP > I tried so ... code_CU is a variable 'int' declared inside of my ...
by Berico3
Sun Feb 26, 2012 3:15 pm
Forum: C++ Development
Topic: getchar() wx style
Replies: 12
Views: 3678

Re: getchar() wx style

The problem is this: I have implemented the usual EVENT_TABLE and I connected to the function KeyPresCU, in this way: BEGIN_EVENT_TABLE(MyTextCtrl,wxTextCtrl) EVT_CHAR(MyTextCtrl::KeyPresCU) END_EVENT_TABLE() void MyTextCtrl::KeyPresCU(wxKeyEvent& event){ code_CU = event.GetKeyCode(); ucode_CU =...
by Berico3
Sat Feb 25, 2012 9:15 pm
Forum: C++ Development
Topic: getchar() wx style
Replies: 12
Views: 3678

Re: getchar() wx style

I'm creating a class derived from a wxTextCtrl that simulates curses libraries and now I have to find ways to create input from specific areas of control.
How
scanCU st = wxString (int X, intY, long lengt_of_input)
So I think I should handle keyboard input inside the method. :?
by Berico3
Sat Feb 25, 2012 8:28 am
Forum: C++ Development
Topic: getchar() wx style
Replies: 12
Views: 3678

getchar() wx style

Hello everyone, I still use your experience: :oops: I'm building a class and I need to put in a method, a control 'event ', which captures me the push of a button, but not with the usual EVENT_TABLE but with a series of loops run by me (getchat types of libraries standard). Is there a function or cl...
by Berico3
Fri Feb 17, 2012 1:59 pm
Forum: C++ Development
Topic: measure wxTextCtrl
Replies: 2
Views: 1295

Re: measure wxTextCtrl

Thanks again PB,
Your help was invaluable and it worked again.
Now with with
GetClientSize()
and
wxClientDC
using the appropriate methods, I can calculate how many characters (monospace) we are in a wxTextCtrl.
by Berico3
Fri Feb 17, 2012 9:22 am
Forum: C++ Development
Topic: measure wxTextCtrl
Replies: 2
Views: 1295

measure wxTextCtrl

Hello everyone, I would be able to measure the pixels of a wxTextCtrl, and I've read about that can be done with wxDC. So I tried this, but even if the code compiles correctly the result is not good. wxSize m_screen; long CX, CY; wxWindowDC dc(parent); m_screem = dc.GetSize(); CX = m_screen.GetWidth...
by Berico3
Tue Feb 14, 2012 3:55 pm
Forum: C++ Development
Topic: SetInsertionPoint() does not funzion
Replies: 2
Views: 5228

Re: SetInsertionPoint() does not funzion

thanks PB,
I had already made ​​some tests, but did not work.
After your answer I tried again, obviously I was wrong.
SetInsertionPoint can only move inside the text buffer.
by Berico3
Tue Feb 14, 2012 1:24 pm
Forum: C++ Development
Topic: SetInsertionPoint() does not funzion
Replies: 2
Views: 5228

SetInsertionPoint() does not funzion

Hello everyone, I'm using the libraries wx2.8 on WindowsXP debian6.0 on linux, in a wxTextCtrl flag MULTYLINE I have to move inside the box and I thought of using SetInsertionPoint (). Once completed, however, does not give me no errors, but the insertion point of the text does not move, still at th...
by Berico3
Thu Oct 13, 2011 8:59 pm
Forum: C++ Development
Topic: load class with wxDynamicLibrary
Replies: 0
Views: 6168

load class with wxDynamicLibrary

Hello everyone,
I have a question:
Someone knows how to explain if you can import a class dynamically with wxDynamicLibrary?
I can do it with a function, but as you do with a class?
(sorry for my bad English) :D
by Berico3
Sun Feb 17, 2008 9:27 am
Forum: C++ Development
Topic: wxWidget and dll
Replies: 2
Views: 1140

Re: wxWidget and dll

Tan thanks for your help :D I tried to compile with GCC LINUX in the code that I have posted, and it worked, but then when I tried to fill with MingW wxDevcpp the result was this: [Linker Error] undefined reference to `wxDynamicLibrary::GetSymbol(wxString const&, bool*) const' [Linker Error] und...
by Berico3
Fri Feb 15, 2008 10:35 pm
Forum: C++ Development
Topic: wxWidget and dll
Replies: 2
Views: 1140

wxWidget and dll

Hello everyone,
I am new to this forum and I suffered a question for you:
I use libraries wx 2.8, but can not understand how to dynamically link to a function in a DLL.
You should use wxDynamicLibrary, but how?
I take a simple example?
Thank you for your patience.
and sorry for may english.