Search found 318 matches
- Thu Nov 12, 2020 9:45 am
- Forum: C++ Development
- Topic: Prevent app from mice contact bounce
- Replies: 1
- Views: 135
Prevent app from mice contact bounce
Hi! When I m opening a wxMenu, sometimes i see an effect of mice contact bounce, when menu immediately closes after opening or selects a menu element, and i want to protect my app from this effect. It looks like menu event handler has some unwanted events at start(because of mice bounce) and its que...
- Fri Feb 21, 2020 5:11 pm
- Forum: wxWidgets Development (Russian)
- Topic: wxThread и её текущая директория
- Replies: 7
- Views: 1490
Re: wxThread и её текущая директория
а ты программно драйвер пускаешь, через wxExec какой-нибудь? тогда можно также программно менять текущую диру через wxSetWorkingDirectory. меняешь рабочую диру и пускаешь внешнее приложение. тогда оно запустится с этой новой рабочей. типа auto lold= wxGetCwd(); if( wxSetWorkingDirectory("folder\need...
- Fri Feb 21, 2020 1:08 pm
- Forum: wxWidgets Development (Russian)
- Topic: wxThread и её текущая директория
- Replies: 7
- Views: 1490
Re: wxThread и её текущая директория
ну если текущая папка из потока правильная, то значит дело не в папке.
текущая дира это атрибут процесса, то есть запущенного приложения, и поток как часть приложения, будет ее иметь такой же как и само приложение.
текущая дира это атрибут процесса, то есть запущенного приложения, и поток как часть приложения, будет ее иметь такой же как и само приложение.
- Sun Feb 16, 2020 10:46 am
- Forum: C++ Development
- Topic: processing of custom events
- Replies: 27
- Views: 3163
Re: processing of custom events
who can explain - why to use wxCommandEvent, instead of regular wxThreadEvent, for inter-thread communication?
thanks.
thanks.
- Thu Jan 30, 2020 10:08 pm
- Forum: C++ Development
- Topic: calculate screen pos -> pos on rotated wxBitmap
- Replies: 2
- Views: 355
Re: calculate screen pos -> pos on rotated wxBitmap
p3 will point in the original image. transformation matrix A transforms coordinates from Space to Space'; when inverted matrix A' transforms coordinates from Space' to Space; so if you have matrix wxAffineMatrix2D mat; then wxAffineMatrix2D matInversed = mat; matInversed.Inverse(); will be a backwa...
- Fri Jan 24, 2020 10:44 am
- Forum: C++ Development
- Topic: Showing images from a video stream
- Replies: 93
- Views: 10704
Re: Showing images from a video stream
I wanted to draw current FPS and I noticed that "gc->SetFont(GetFont(), *wxWHITE);" adds another 20 ms :shock: i never rendered graphics with wxWidgets... but function virtual void wxGraphicsContext::SetFont(const wxGraphicsFont &font); looks closer to hardware, so must be more fast, you just have ...
- Tue Jan 21, 2020 8:30 am
- Forum: C++ Development
- Topic: Aui how to change size of a docked pane
- Replies: 5
- Views: 447
Re: Aui how to change size of a docked pane
I'v made a bottom docked pane for diagnostic messages to a user. And I want it showed up for 1 sec. and then minimized it's height. But I cant change its size what ever I tried. Thank you if i remember, for wxAuiManager, to hide/show docked pane, you just need to call(surprise!) pane.Show(), pane.H...
- Mon Jan 13, 2020 9:27 pm
- Forum: C++ Development
- Topic: Calculate the space needed
- Replies: 4
- Views: 415
Re: Calculate the space needed
read about wxFont and search around <wxFONTFAMILY_TELETYPE>
- Mon Jan 13, 2020 7:26 am
- Forum: C++ Development
- Topic: The thread does not want to finish because of the “TestDestroy” always return false.
- Replies: 10
- Views: 931
Re: The thread does not want to finish because of the “TestDestroy” always return false.
Thank you for your response. Unfortunately, I have seen that documentation link before and still don't understand it well. If you answer my following questions you will facilitate me to understand some things that I don't understand. After I call wxThread::Delete from outside a runtime error occurr...
- Mon Jan 13, 2020 7:19 am
- Forum: C++ Development
- Topic: The thread does not want to finish because of the “TestDestroy” always return false.
- Replies: 10
- Views: 931
Re: The thread does not want to finish because of the “TestDestroy” always return false.
if you want just test how the thread works, do your diagnostics via printf(...), or std::cout<<"text".
as doubleMax said you cannot use visual objects of wxWidgets from secondary threads, you can only send messsges of wxThreadMessage class to main frame(or any window of wxWidgets).
as doubleMax said you cannot use visual objects of wxWidgets from secondary threads, you can only send messsges of wxThreadMessage class to main frame(or any window of wxWidgets).
- Sat Jan 11, 2020 12:35 pm
- Forum: C++ Development
- Topic: wxwidgets flex bison
- Replies: 10
- Views: 1146
Re: wxwidgets flex bison
the easiest way here -
console app writes to std::cout.
see wxProcess class and wxExecute functions, and how to read output of a secondary app started from wxWIdgets app.
so - you develop wxWIdgets app, which starts your "bison app", reads its console output and analyses it as needed.
console app writes to std::cout.
see wxProcess class and wxExecute functions, and how to read output of a secondary app started from wxWIdgets app.
so - you develop wxWIdgets app, which starts your "bison app", reads its console output and analyses it as needed.
- Fri Jan 10, 2020 9:41 pm
- Forum: C++ Development
- Topic: wxwidgets flex bison
- Replies: 10
- Views: 1146
Re: wxwidgets flex bison
Anjum, 10-01-2020 With wxExecute we can execute the console application and capture the stdout data. But I would like to access those created arrays directly from a wxWidgets application. How can I do this ? if you already have captured stdout to (for example) wxArrayString... why there is a proble...
- Thu Jan 09, 2020 11:28 am
- Forum: General Development
- Topic: reduced version of program using 30% of the code
- Replies: 4
- Views: 743
Re: reduced version of program using 30% of the code
1.preprocessor
2. void interfaces implementaions.
if you have interfaces and their implementations, then you could define void implementations(which do nothing) and use them in restricted version.
2. void interfaces implementaions.
if you have interfaces and their implementations, then you could define void implementations(which do nothing) and use them in restricted version.
- Mon Jan 06, 2020 10:14 pm
- Forum: wxWidgets Development (Russian)
- Topic: cutecode, Ну и где вопрос про треды?
- Replies: 4
- Views: 1447
Re: cutecode, Ну и где вопрос про треды?
про rand ерунда какая-то. в базовой реализации он опасный, и его мьютексом надо защищать. другое дело что без мьютекса там ничего не упадет, просто будут взаимовлияние на генерируемую последовательность от тредов. по хорошему надо инициализировать генератор через srand случайным числом в самом начал...
- Mon Jan 06, 2020 3:56 pm
- Forum: wxWidgets Development (Russian)
- Topic: cutecode, Ну и где вопрос про треды?
- Replies: 4
- Views: 1447
Re: cutecode, Ну и где вопрос про треды?
да они там все падать будут, кроме совсем невинных. там большинство можно только из главного треда вызывать. да и не надо на вторичных тредах делать серьезную функциональность. их роль вспомогательна - помочь головному треду в его задачах. нет списка безопасных. считай что опасные все, если явно не ...