Search found 184 matches
- Tue Mar 12, 2024 9:32 am
- Forum: C++ Development
- Topic: Making win10 Magnifier with wxWidgets: is it feasible?
- Replies: 5
- Views: 156
Re: Making win10 Magnifier with wxWidgets: is it feasible?
I assume under Window the Magnification API is used, which does all the heavy lifting: https://learn.microsoft.com/en-us/previous-versions/windows/desktop/magapi/magapi-intro I've stumbled on this page: https://blogs.windows.com/windowsdeveloper/2019/09/16/new-ways-to-do-screen-capture/ and other t...
- Mon Mar 11, 2024 4:56 pm
- Forum: C++ Development
- Topic: Making win10 Magnifier with wxWidgets: is it feasible?
- Replies: 5
- Views: 156
Re: Making win10 Magnifier with wxWidgets: is it feasible?
I doubt it's possible with wxWidgets methods alone, you'll probably need some platform specific code. For a start, wxScreenDC is the only way to access the screen content, and i wouldn't know any way to exclude your own window from it. I assume under Window the Magnification API is used, which does...
- Mon Mar 11, 2024 3:17 pm
- Forum: C++ Development
- Topic: Making win10 Magnifier with wxWidgets: is it feasible?
- Replies: 5
- Views: 156
Making win10 Magnifier with wxWidgets: is it feasible?
I'm investigating if making a program similar to the Windows 10 Magnifier using wxWidgets is doable. The goal is to have a full-screen window which shows a zoomed portion of what is under the mouse, and that allows the user to click on what is shown. This makes me think immediatly at two problems: c...
- Thu Dec 07, 2023 9:27 am
- Forum: C++ Development
- Topic: can wxGraphicsContext be used to draw on a child control?
- Replies: 1
- Views: 1205
can wxGraphicsContext be used to draw on a child control?
I've learnt how to draw what i want using DC in the OnPaint event of a wx<something> (i usually derive my components from wxPanel).
I wonder if i can do the same drawing from OUTSIDE, so (as example) drawing a gradient from the main form on a child wxPanel.
There's a way do it?
I wonder if i can do the same drawing from OUTSIDE, so (as example) drawing a gradient from the main form on a child wxPanel.
There's a way do it?
- Thu Nov 09, 2023 11:29 am
- Forum: C++ Development
- Topic: How to get a nested sizer?
- Replies: 2
- Views: 2207
Re: How to get a nested sizer?
Thanks a lot.
- Thu Nov 09, 2023 9:23 am
- Forum: C++ Development
- Topic: How to get a nested sizer?
- Replies: 2
- Views: 2207
How to get a nested sizer?
This is part of how my app is built: wxCrafterTree.png How can i get a wxGridBagSizer* to grbHelp_MAIN ? If i call m_Page_15_HELP->GetSizer() i get a pointer to boxSizer5409 ... There's a way to get it starting from m_panHelp_HOME ? It would be more handy as that hierarchy will never change, while t...
- Wed Oct 11, 2023 9:13 am
- Forum: C++ Development
- Topic: Flashing screen for feedback when taking a screenshot: is it possible?
- Replies: 1
- Views: 2469
Flashing screen for feedback when taking a screenshot: is it possible?
On my kiosk app there's a key combo that saves a screenshot. I would like to give a bit of feedback to the user, and the Android way to "flash" the screen when you do it seems a pretty good one. So i wonder if i could do the same (so, an "all white" screen for some fraction of a ...
- Thu Sep 28, 2023 8:03 am
- Forum: C++ Development
- Topic: wxRenameFile() and filenames with spaces
- Replies: 11
- Views: 9297
Re: wxRenameFile() and filenames with spaces
Which filesystem does that partition use? ":" might not be a valid character for a filename. Try renaming a file manually to confirm. THIS IS IT!!! The destination folder is in a Fat32 USB dongle, which can't take that filename. This fact slipped under my eyes 'cause the debian file manag...
- Wed Sep 27, 2023 3:04 pm
- Forum: C++ Development
- Topic: wxRenameFile() and filenames with spaces
- Replies: 11
- Views: 9297
Re: wxRenameFile() and filenames with spaces
What is the code? wxString fn = wxFileNameFromPath(FileList[i]); wxRenameFile(FileList[i], NEW_PATH + "/" + fn) FileList is a wxStringArray containing all the ".graph" filenames in the folder /home/fc/MSXPG/MSXPG/bin/debug/DataFiles . The problematic file name is " MSXPG_Gr...
- Wed Sep 27, 2023 2:43 pm
- Forum: C++ Development
- Topic: wxRenameFile() and filenames with spaces
- Replies: 11
- Views: 9297
- Wed Sep 27, 2023 2:37 pm
- Forum: C++ Development
- Topic: wxRenameFile() and filenames with spaces
- Replies: 11
- Views: 9297
Re: wxRenameFile() and filenames with spaces
Doublemax is right: the problem are not the spaces. Are the ":" in the filename
How to handle them?
AND/OR:
what exception should i catch to hide any messagebox? i tried "catch(...)" but i still get the error message popup.
How to handle them?
AND/OR:
what exception should i catch to hide any messagebox? i tried "catch(...)" but i still get the error message popup.
- Wed Sep 27, 2023 2:22 pm
- Forum: C++ Development
- Topic: wxRenameFile() and filenames with spaces
- Replies: 11
- Views: 9297
Re: wxRenameFile() and filenames with spaces
But it still gives me the error.doublemax@work wrote: ↑Wed Sep 27, 2023 2:07 pm Spaces in filenames are only a problem on the command line or as program parameters.
You should not have the start and end quotes here.Code: Select all
wxRenameFile(FileList[i], "\"" + NEW_PATH + "/" + fn + "\"")
- Wed Sep 27, 2023 1:33 pm
- Forum: C++ Development
- Topic: wxRenameFile() and filenames with spaces
- Replies: 11
- Views: 9297
wxRenameFile() and filenames with spaces
I need to move (rename) files in an app which works both on Windows and Linux. I have problems handling filenames with spaces in them. I tried by adding quotes around the new filename, with: wxString fn = wxFileNameFromPath(FileList[i]); wxRenameFile(FileList[i], "\"" + NEW_PATH + &qu...
- Thu Jul 27, 2023 2:26 pm
- Forum: Component Writing
- Topic: How to use wxGraphicContext to draw on a wxBitmap?
- Replies: 2
- Views: 6558
Re: How to use wxGraphicContext to draw on a wxBitmap?
https://docs.wxwidgets.org/trunk/classwx_graphics_context.html#ad7330b5f52ade60e5f42492dc0686e2e Oh... that's the way. Thanks. FWIW: When the background has only little content, i don't think this optimization is worth the effort (yet). Well, the bars needs to be updated the fastest i can, and the ...
- Thu Jul 27, 2023 1:54 pm
- Forum: Component Writing
- Topic: How to use wxGraphicContext to draw on a wxBitmap?
- Replies: 2
- Views: 6558
How to use wxGraphicContext to draw on a wxBitmap?
I'm building a component which shows a vertical bar chart, using wxGraphicContext to get a nice antialiasing. The "draft" works, but it needs some optimization. One of them is to draw the fixed part of the chart (axis, labels, grid, etc) on a bitmap each time the component changes size, an...