Search found 334 matches
- Wed Mar 27, 2024 4:03 pm
- Forum: C++ Development
- Topic: Main window shuts down on parent refresh
- Replies: 2
- Views: 4179
Main window shuts down on parent refresh
Hello. I have m_scrolledWindow1 and inside bSizer54 wxBoxSizer, and i am adding inside panels MyPanel. All are ok. But if i call onDelMyPanel and all are ok until call parentDialog->refreshSizer(); At bSizer54->FitInside(m_scrolledWindow1); or bSizer54->Layout(), program shutdown without error etc. ...
- Tue Nov 28, 2023 2:48 pm
- Forum: wxCode
- Topic: Pdf document adds multiple times the first image only
- Replies: 2
- Views: 11385
Re: Pdf document adds multiple times the first image only
Now just works fine.
Thank you.
Jim
Thank you.
Jim
- Tue Nov 28, 2023 7:49 am
- Forum: wxCode
- Topic: Pdf document adds multiple times the first image only
- Replies: 2
- Views: 11385
Pdf document adds multiple times the first image only
Hello. From a database extracting wxImages i need to insert in a new pdf file. Using the code bellow the pdf document adds multiple times the first image only. Why is that? Have i problem on code? for(auto a : dbObjs ) { wxString query = wxString::Format("SELECT image FROM images WHERE id = '%d...
- Sat Oct 21, 2023 7:58 pm
- Forum: C++ Development
- Topic: screenshot problem on windows
- Replies: 6
- Views: 2087
Re: screenshot problem on windows
I just solve it.
With 300ms delay we give time to main window to disappear.
Now i need to why if( dl.ShowModal() == wxID_OK ) don't works in windows but only in Linux.
Thank you
Jim
With 300ms delay we give time to main window to disappear.
Code: Select all
this->Show(false);
wxYield();
wxMilliSleep(300);
Thank you
Jim
- Sat Oct 21, 2023 5:53 pm
- Forum: C++ Development
- Topic: screenshot problem on windows
- Replies: 6
- Views: 2087
Re: screenshot problem on windows
Yes works just fine without this->Show(false); But why? And if i want to disappear main window what i must do? And why the difference between Linux and windows? I can understood these things. I still have a lot to learn ... Openai says to use wxYield(); but nothing. this->Show(false); wxYield(); Scr...
- Sat Oct 21, 2023 4:48 am
- Forum: C++ Development
- Topic: screenshot problem on windows
- Replies: 6
- Views: 2087
Re: screenshot problem on windows
I don't know how to do that. Main program is modal.
Many times i have open modal from modal.
The hole program have modal on modals.
In Linux works just fine, but on windows not.
The hole capture program code is yours.
Thank you.
Jim.
Many times i have open modal from modal.
The hole program have modal on modals.
In Linux works just fine, but on windows not.
The hole capture program code is yours.
Thank you.
Jim.
- Fri Oct 20, 2023 7:46 pm
- Forum: C++ Development
- Topic: screenshot problem on windows
- Replies: 6
- Views: 2087
screenshot problem on windows
Hello. Capture code bellow runs just fine in Linux. But in windows dial->ShowModal() != wxID_OK But why? Also the this->Show(false); do not hide the main wxDialog, but it leaves it, and if i use dial->ShowModal(); without check of wxID_OK, it leaves it transparent. I don't understood why all these ....
- Sat Oct 07, 2023 4:43 am
- Forum: Compiler / Linking / IDE Related
- Topic: Problem trying to have -static binary ...
- Replies: 7
- Views: 4886
Re: Problem trying to have -static binary ...
Thank you for the answer.
As i see i must do this.
Thank you.
Jim
As i see i must do this.
Thank you.
Jim
- Fri Oct 06, 2023 1:28 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Problem trying to have -static binary ...
- Replies: 7
- Views: 4886
Re: Problem trying to have -static binary ...
A day before i send my Linux version of my program and it don't runs. If i want to send in many people, and all these people have no idea about functionals, they are simple users, how should my program run? It goes without saying that the executable must have no dependencies. That's why I want to ma...
- Fri Oct 06, 2023 10:35 am
- Forum: Compiler / Linking / IDE Related
- Topic: Problem trying to have -static binary ...
- Replies: 7
- Views: 4886
Problem trying to have -static binary ...
I am trying my wxWidgets program to have -static and compiler says... /usr/bin/ld: cannot find -lGL: /usr/bin/ld: cannot find -lEGL: /usr/bin/ld: cannot find -lwayland-egl: /usr/bin/ld: cannot find -lwayland-client: /usr/bin/ld: cannot find -lxkbcommon: /usr/bin/ld: cannot find -lgtk-3: /usr/bin/ld:...
- Tue Sep 19, 2023 5:32 pm
- Forum: C++ Development
- Topic: I am trying to trigger an event by press WXK_LEFT keyboard key but nothing
- Replies: 1
- Views: 2265
I am trying to trigger an event by press WXK_LEFT keyboard key but nothing
Hello. I am trying to trigger an event by press WXK_LEFT keyboard key but nothing. What i have wrong? Thank you Jim. KeyboardAcceleratorKeysDialog::KeyboardAcceleratorKeysDialog(wxDialog *dlg) : GUIDialog(dlg) { this->Bind(wxEVT_KEY_DOWN, &KeyboardAcceleratorKeysDialog::OnKeyDown, this); } void ...
- Thu Sep 07, 2023 10:30 am
- Forum: C++ Development
- Topic: Figuring out where the user clicked in a nested wxMenu
- Replies: 0
- Views: 85916
Figuring out where the user clicked in a nested wxMenu
Hello I have stack figuring out where clicked in a nested wxMenu. As i see OnSubCopyMenu and OnSubMoveMenu never called. I want if choose an object of taxeis vector, to know from where if copyMenu or moveMenu called. Thank you Jim. const int ID_SUBMENU1_ITEM = 1001; const int ID_SUBMENU2_ITEM = 1002...
- Mon Sep 04, 2023 4:49 pm
- Forum: C++ Development
- Topic: Program never call OnPaint
- Replies: 8
- Views: 2366
Re: Program never call OnPaint
Thank you.
Very useful, it works just fine.
I am study, thank you
Jim.
Very useful, it works just fine.
I am study, thank you
Jim.
- Mon Sep 04, 2023 1:03 pm
- Forum: C++ Development
- Topic: Program never call OnPaint
- Replies: 8
- Views: 2366
Re: Program never call OnPaint
I will try the utility.
Thank you
Jim
Thank you
Jim
- Mon Sep 04, 2023 10:55 am
- Forum: C++ Development
- Topic: Program never call OnPaint
- Replies: 8
- Views: 2366
Re: Program never call OnPaint
There is some project like this to study?
Thank you.
Jim
Thank you.
Jim