Search found 197 matches

by tomay3000
Thu Sep 16, 2021 4:58 am
Forum: Compiler / Linking / IDE Related
Topic: Any .rc resource script Editor recommendation for non-VS IDE?
Replies: 4
Views: 434

Re: Any .rc resource script Editor recommendation for non-VS IDE?

I want to edit an .rc file to embed some resources like ICO , CUR , PNG , JPEG in the EXE file under windows using Code::Blocks . This is trivial to do with a text editor. I don't think you need a dedicated resource editor for that. I know, but to avoid any errors when typing, I thought of using a ...
by tomay3000
Mon Sep 13, 2021 11:49 pm
Forum: Compiler / Linking / IDE Related
Topic: Any .rc resource script Editor recommendation for non-VS IDE?
Replies: 4
Views: 434

Re: Any .rc resource script Editor recommendation for non-VS IDE?

ONEEYEMAN wrote:
Mon Sep 13, 2021 12:26 pm
Hi,
What kind of resources you want to edit?
And what IDE, if any you are using?

Thank you.
I want to edit an .rc file to embed some resources like ICO, CUR, PNG, JPEG in the EXE file under windows using Code::Blocks.
by tomay3000
Sun Sep 12, 2021 10:22 pm
Forum: Compiler / Linking / IDE Related
Topic: Any .rc resource script Editor recommendation for non-VS IDE?
Replies: 4
Views: 434

Any .rc resource script Editor recommendation for non-VS IDE?

Hello, I need a good " .rc " resource script Editor for non-VS IDE ? I have used " ResEdit " but it is constantly crashing, also I found out that it has been classified as PUA by many antivirus scanners . I also tried " Resource Hacker ", but it messed up the resulting " .rc " file after saving it (...
by tomay3000
Wed Sep 01, 2021 10:16 pm
Forum: Compiler / Linking / IDE Related
Topic: How should I start a New VS Comm 2019 wx v3.x Project?
Replies: 6
Views: 1118

Re: How should I start a New VS Comm 2019 wx v3.x Project?

ONEEYEMAN wrote:
Mon Aug 30, 2021 12:07 pm
Did you successfully build the libraries with msvc?
Yes, Crypto++ links now without errors. I had to recompile and rebuild it, though it was MSVC built .lib one.
ONEEYEMAN wrote:
Mon Aug 30, 2021 12:07 pm
Remember, you can't intermixed MinGW and Visual Studio binaries.
I already know that, Thank you.
by tomay3000
Mon Aug 30, 2021 10:53 am
Forum: Compiler / Linking / IDE Related
Topic: How should I start a New VS Comm 2019 wx v3.x Project?
Replies: 6
Views: 1118

Re: How should I start a New VS Comm 2019 wx v3.x Project?

Thank you for the answers, It was very tough to migrate my project from C::B to VS 2019, and some libraries still didn't link like Crypto++, I had to comment out a lot of code to make it compile and build successfully. I have used the minimal .sln project thought I just discovered about wxwidgets.pr...
by tomay3000
Sat Aug 28, 2021 11:14 pm
Forum: Compiler / Linking / IDE Related
Topic: How should I start a New VS Comm 2019 wx v3.x Project?
Replies: 6
Views: 1118

How should I start a New VS Comm 2019 wx v3.x Project?

Hello,
Coming from C::B to VS Comm 2019, when starting a New wx v3.x Projects, there is no builtin wx v3.x templates like in C::B.

I was wondering, what is the best way to start a New wx v3.x Project in VS Comm 2019!?

TIA.
by tomay3000
Tue Jun 08, 2021 1:18 am
Forum: C++ Development
Topic: [wxMSW] How to force a wxStaticBitmap drawing update.
Replies: 5
Views: 1663

Re: [wxMSW] How to force a wxStaticBitmap drawing update.

The problem was because of the child wxPanels. This answered my question: https://forums.wxwidgets.org/viewtopic.php?t=32912 Suppose a window has a wxPanel inside, which in turn contains some other wxPanels, and so on. It seems like calling Layout() for the outermost window does not call the Layout ...
by tomay3000
Sat Jun 05, 2021 4:25 pm
Forum: C++ Development
Topic: [wxMSW] How to force a wxStaticBitmap drawing update.
Replies: 5
Views: 1663

Re: [wxMSW] How to force a wxStaticBitmap drawing update.

Nothing helped.
Neither Refresh(), Update(), Layout() nor all of them.
by tomay3000
Fri Jun 04, 2021 9:57 pm
Forum: C++ Development
Topic: [wxMSW] How to force a wxStaticBitmap drawing update.
Replies: 5
Views: 1663

[wxMSW] How to force a wxStaticBitmap drawing update.

Hello,

Have a look at this minimal patch
minimal1.patch
(5.76 KiB) Downloaded 53 times
.

I need to force the wxStaticBitmap to update just after I select an Image from the wxFilePickerCtrl.
It is happening only when I drag the splitter window sash manually.

TIA.
by tomay3000
Thu May 13, 2021 5:00 pm
Forum: C++ Development
Topic: How to get the initial size of a wxTextCtrl later after its creation?
Replies: 13
Views: 1651

Re: How to get the initial size of a wxTextCtrl later after its creation?

Thank you. The solution to my problem is that I should replace every SetSize() by SetMinSize() because the sizer will always override the size set by SetSize() . And, as said in wxWindow::GetBestSize() documentation https://docs.wxwidgets.org/trunk/classwx_window.html#a7e64b9380374e5681f146e9e319e35...
by tomay3000
Thu May 13, 2021 2:11 pm
Forum: C++ Development
Topic: How to get the initial size of a wxTextCtrl later after its creation?
Replies: 13
Views: 1651

Re: How to get the initial size of a wxTextCtrl later after its creation?

Hello, Using wxWidgets v3.1.6 (dev) This minimal patch (which I should have uploaded in the first place, sorry for wasting your time) explains what I was trying to achieve: minimal.patch But when I have tried it one more time, SetSize(wxDefaultSize); seems working. Also, there is this problem that d...
by tomay3000
Wed May 12, 2021 5:10 pm
Forum: C++ Development
Topic: How to get the initial size of a wxTextCtrl later after its creation?
Replies: 13
Views: 1651

Re: How to get the initial size of a wxTextCtrl later after its creation?

doublemax wrote:
Wed May 12, 2021 4:49 pm
I just tried it myself and SetSize(wxDefaultSize) did not work for me. Use GetBestSize().
If you're unsure if the window has a minimal size set, call SetMinSize( wxDefaultSize ) first.
Yes, SetSize(wxDefaultSize) seemed working and tricked me again, and caused the application to crash.
by tomay3000
Wed May 12, 2021 4:47 pm
Forum: C++ Development
Topic: How to get the initial size of a wxTextCtrl later after its creation?
Replies: 13
Views: 1651

Re: How to get the initial size of a wxTextCtrl later after its creation?

Did you try just SetSize(wxDefaultSize) ? Before My application was crashing using SetSize(wxDefaultSize) and I thought it is not the correct way to use it. I thought, that unless specified otherwise, default size = best size = minimal size, i.e., obtainable by GetBestSize()? However, I do not unde...
by tomay3000
Wed May 12, 2021 4:31 pm
Forum: C++ Development
Topic: How to get the initial size of a wxTextCtrl later after its creation?
Replies: 13
Views: 1651

Re: How to get the initial size of a wxTextCtrl later after its creation?

It has nothing to do with monitor or DPI. The main reason to all of this is to provide it as a sample (I want to demonstrate something), when the user checks the checkbox it became huge, and when the user unchecks the checks box again its size has to go back to it normal size again (But I don't know...
by tomay3000
Wed May 12, 2021 3:13 pm
Forum: C++ Development
Topic: How to get the initial size of a wxTextCtrl later after its creation?
Replies: 13
Views: 1651

Re: How to get the initial size of a wxTextCtrl later after its creation?

Hello, sorry for the misunderstanding, what I meant is the default control size given by the system after creation using wxDefaultSize Because, using wxDefaultSize outside the constructor or Create later has no meaning. I wanted to know if there is a method I am not seeing that does this! After some...