Search found 334 matches

by dkaip
Wed Mar 27, 2024 4:03 pm
Forum: C++ Development
Topic: Main window shuts down on parent refresh
Replies: 2
Views: 46

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. ...
by dkaip
Tue Nov 28, 2023 2:48 pm
Forum: wxCode
Topic: Pdf document adds multiple times the first image only
Replies: 2
Views: 4551

Re: Pdf document adds multiple times the first image only

Now just works fine.
Thank you.
Jim
by dkaip
Tue Nov 28, 2023 7:49 am
Forum: wxCode
Topic: Pdf document adds multiple times the first image only
Replies: 2
Views: 4551

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...
by dkaip
Sat Oct 21, 2023 7:58 pm
Forum: C++ Development
Topic: screenshot problem on windows
Replies: 6
Views: 1818

Re: screenshot problem on windows

I just solve it.
With 300ms delay we give time to main window to disappear.

Code: Select all

this->Show(false);
    wxYield();
    wxMilliSleep(300);
Now i need to why if( dl.ShowModal() == wxID_OK ) don't works in windows but only in Linux.

Thank you
Jim
by dkaip
Sat Oct 21, 2023 5:53 pm
Forum: C++ Development
Topic: screenshot problem on windows
Replies: 6
Views: 1818

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...
by dkaip
Sat Oct 21, 2023 4:48 am
Forum: C++ Development
Topic: screenshot problem on windows
Replies: 6
Views: 1818

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.
by dkaip
Fri Oct 20, 2023 7:46 pm
Forum: C++ Development
Topic: screenshot problem on windows
Replies: 6
Views: 1818

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 ....
by dkaip
Sat Oct 07, 2023 4:43 am
Forum: Compiler / Linking / IDE Related
Topic: Problem trying to have -static binary ...
Replies: 7
Views: 4454

Re: Problem trying to have -static binary ...

Thank you for the answer.
As i see i must do this.
Thank you.
Jim
by dkaip
Fri Oct 06, 2023 1:28 pm
Forum: Compiler / Linking / IDE Related
Topic: Problem trying to have -static binary ...
Replies: 7
Views: 4454

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...
by dkaip
Fri Oct 06, 2023 10:35 am
Forum: Compiler / Linking / IDE Related
Topic: Problem trying to have -static binary ...
Replies: 7
Views: 4454

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:...
by dkaip
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: 2128

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 ...
by dkaip
Thu Sep 07, 2023 10:30 am
Forum: C++ Development
Topic: Figuring out where the user clicked in a nested wxMenu
Replies: 0
Views: 71149

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...
by dkaip
Mon Sep 04, 2023 4:49 pm
Forum: C++ Development
Topic: Program never call OnPaint
Replies: 8
Views: 2111

Re: Program never call OnPaint

Thank you.
Very useful, it works just fine.
I am study, thank you
Jim.
by dkaip
Mon Sep 04, 2023 1:03 pm
Forum: C++ Development
Topic: Program never call OnPaint
Replies: 8
Views: 2111

Re: Program never call OnPaint

I will try the utility.
Thank you
Jim
by dkaip
Mon Sep 04, 2023 10:55 am
Forum: C++ Development
Topic: Program never call OnPaint
Replies: 8
Views: 2111

Re: Program never call OnPaint

There is some project like this to study?
Thank you.
Jim