Search found 49 matches

by Big_Lebowski
Fri Mar 08, 2019 8:50 pm
Forum: C++ Development
Topic: How to emulate key press event?
Replies: 9
Views: 2177

Re: How to emulate key press event?

ONEEYEMAN wrote: Fri Mar 08, 2019 8:35 pm Hi,
Why you are don't like it? What's the problem with it?

Thank you.
I have to write additional code to track precision and decimal point.

Thank you.
by Big_Lebowski
Fri Mar 08, 2019 8:26 pm
Forum: C++ Development
Topic: How to emulate key press event?
Replies: 9
Views: 2177

Re: How to emulate key press event?

Hi, Why do you want to emulate anything? Just execute the function you would normally execute when you use wxEVT_KEYDOWN(). Or you want to have "1" printed when you press the button with the label "1" in some text control? Then all you do is this (pseudocode): wxString value = t...
by Big_Lebowski
Fri Mar 08, 2019 8:09 pm
Forum: C++ Development
Topic: How to emulate key press event?
Replies: 9
Views: 2177

Re: How to emulate key press event?

Do you want to emulate key presses for other applications that yours? Then you need this: https://docs.wxwidgets.org/trunk/classwx_u_i_action_simulator.html I don't know if it's implemented for all platforms. I have seen that. I want to emulate key press in my application, say ... in my application...
by Big_Lebowski
Fri Mar 08, 2019 8:05 pm
Forum: C++ Development
Topic: How to emulate key press event?
Replies: 9
Views: 2177

Re: How to emulate key press event?

I can catch key event

Code: Select all

void MyFrame::OnCharHook( wxKeyEvent& event )
{
    int keycode = event.GetKeyCode();
    wxLogMessage("Keycode: %d", keycode);
    event.Skip();
}
it's ok
But I don't know how and where to send keycode, to emulate key press event.
by Big_Lebowski
Fri Mar 08, 2019 7:58 pm
Forum: C++ Development
Topic: How to emulate key press event?
Replies: 9
Views: 2177

Re: How to emulate key press event?

Hi, You basically create a set of buttons for all keys on the keyboard. Then you catch the wxEVT_BUTTON() for all those buttons. And in the handler you call the appropriate method for an appropriate button. You use event.GetId() or event.GetEventObject() to identify which button was clicked. And wh...
by Big_Lebowski
Fri Mar 08, 2019 7:12 pm
Forum: C++ Development
Topic: How to emulate key press event?
Replies: 9
Views: 2177

How to emulate key press event?

Hello. In my application, I have to make something like on-screen numeric keyboard. Say, I press on wxButton with label "1" and it should emulate numeric key "1" press event. I have seen this topic: https://forums.wxwidgets.org/viewtopic.php?f=1&t=27123 and this one: https://...
by Big_Lebowski
Sun Apr 09, 2017 1:27 pm
Forum: Announcements and Discoveries
Topic: Google Summer of Code 2017 Project Ideas for wxWidgets
Replies: 17
Views: 21852

Re: Google Summer of Code 2017 Project Ideas for wxWidgets

wxWidgets needs something like wxReportBuilder or Report System to create and print reports.
by Big_Lebowski
Fri Feb 03, 2017 3:30 pm
Forum: wxWidgets Development (Russian)
Topic: оформление кода
Replies: 4
Views: 3007

Re: оформление кода

Поковырявшись упорно 3 недели с wxwidgets решил оставить ее в покое. лазить только по примерам и по скудным описаниям дело не из приятных. слишком много времени уходит на гуй. Это должно разочаровать остальных пользователей wxWidgets? :)) Я лично согласен потерпеть некоторые неудобства в документац...
by Big_Lebowski
Tue Dec 27, 2016 7:00 am
Forum: wxWidgets Development (Russian)
Topic: Maybe off topic. AstraLinux no GTK2.0 installed
Replies: 6
Views: 4168

Re: Maybe off topic. AstraLinux no GTK2.0 installed

Все правильно пишет. Вам нежен libgtk-3-dev (ну или libgtk2.0-dev если нужен gtk2)
by Big_Lebowski
Sun Dec 25, 2016 8:30 pm
Forum: wxWidgets Development (Russian)
Topic: Maybe off topic. AstraLinux no GTK2.0 installed
Replies: 6
Views: 4168

Re: Maybe off topic. AstraLinux no GTK2.0 installed

Зачем вы качаете GTK с их сайта? AstraLinux это Debian, значит устанавливать GTK нужно стандарно через synaptic.
by Big_Lebowski
Sun Dec 25, 2016 1:34 pm
Forum: wxWidgets Development (Russian)
Topic: Не запускается приложение в чистом Ubuntu
Replies: 4
Views: 3038

Re: Не запускается приложение в чистом Ubuntu

Попробуйте еще файл который не запускается установить режим исполняемого, т.е. sudo chmod +x soft_itU

UPDATE и кстати в вирутальной машине бывают проеблемы. Лучше бы установить Linux на отдельный комп и тестить на нём.
by Big_Lebowski
Sun Dec 25, 2016 8:02 am
Forum: wxWidgets Development (Russian)
Topic: Не запускается приложение в чистом Ubuntu
Replies: 4
Views: 3038

Re: Не запускается приложение в чистом Ubuntu

У вас как я понимаю до проверок зависимостей, еще нужно кое-что сделать. Линукс не позволяет просто скопировать исполняемый файл на другой компьютер в виду высокой степени контроля безопасности. Поэтому если вы хотите скопировать исполняемый файл на другою машину, то этот файл нужно сначала заархиви...
by Big_Lebowski
Fri Sep 09, 2016 12:52 pm
Forum: wxWidgets Development (Russian)
Topic: ld не находит ссылки на библиотеку
Replies: 23
Views: 7743

Re: ld не находит ссылки на библиотеку

Еще нужно добавить xrc тоже после --libs
by Big_Lebowski
Thu Sep 08, 2016 8:01 am
Forum: wxWidgets Development (Russian)
Topic: ld не находит ссылки на библиотеку
Replies: 23
Views: 7743

Re: ld не находит ссылки на библиотеку

После --libs нужно добавить html,adv,core,xml,base Ваша идея мне помогла избавиться от 3 библиотек, но всё равно 5 из них не находит. Быть такого не может. Как у вас выглядит вся строка команды? Должна быть такой: g++ cli.cpp `wx-config --cxxflags --libs html,adv,core,xml,base` -o main Какие именно...
by Big_Lebowski
Wed Sep 07, 2016 5:37 pm
Forum: wxWidgets Development (Russian)
Topic: ld не находит ссылки на библиотеку
Replies: 23
Views: 7743

Re: ld не находит ссылки на библиотеку

После --libs нужно добавить html,adv,core,xml,base