Search found 54 matches

by dqf88
Sun Dec 16, 2018 3:54 am
Forum: C++ Development
Topic: How to calculate the new point when i zoomed the canvas using SetUserScale method?
Replies: 1
Views: 105

How to calculate the new point when i zoomed the canvas using SetUserScale method?

How to calculate the new point when i zoomed the canvas using SetUserScale method? I want the point got by mouse to be changed with zooming
by dqf88
Mon Nov 19, 2018 11:46 am
Forum: C++ Development
Topic: about SetUserScale
Replies: 4
Views: 194

Re: about SetUserScale

firstly, i draw line on the canvas, then i zoom the canvas, the problem comes as the following pictures.

before zooming the canvas
1.png


after zooming the canvas
2.png
by dqf88
Mon Nov 19, 2018 12:24 am
Forum: C++ Development
Topic: about SetUserScale
Replies: 4
Views: 194

Re: about SetUserScale

when zoom the canvas, the lines deviate from its original position
by dqf88
Sun Nov 18, 2018 1:40 am
Forum: C++ Development
Topic: about SetUserScale
Replies: 4
Views: 194

about SetUserScale

I have drew lines on the background picture with mouse, when zooming the canvas with SetUserScale method, there comes the problem(see the following pictures), how to solve the problem? void AAFrame::PrepareDC(wxDC& dc) { dc.SetLogicalOrigin( m_xLogicalOrigin, m_yLogicalOrigin ); dc.SetAxisOrient...
by dqf88
Sat Nov 17, 2018 3:11 pm
Forum: C++ Development
Topic: about wxVector [SOLVED]
Replies: 3
Views: 340

Re: about wxVector [SOLVED]

for循环中调用vector容器erase函数 代码示例 int main(){ vector<int> a; a.push_back(3); a.push_back(2); a.push_back(3); a.push_back(3); a.push_back(5); vector<int>::iterator b; int x = 3; for(b=a.begin();b!=a.end();b++) { if(*b==x){ b=a.erase(b); } } for(b=a.begin();b!=a.end();b++) { printf("value=%d\n", ...
by dqf88
Sat Nov 17, 2018 3:09 pm
Forum: C++ Development
Topic: about wxVector [SOLVED]
Replies: 3
Views: 340

Re: about wxVector [SOLVED]

Code: Select all

wxVector<Line>::iterator i;
for(i=lines.begin(); i!=lines.end();)
{
    if((*i).isSelected)
    {
        i=lines.erase(i);
    }
    else
    {
        i++;
    }
}
by dqf88
Sat Nov 17, 2018 1:44 pm
Forum: C++ Development
Topic: about wxVector [SOLVED]
Replies: 3
Views: 340

about wxVector [SOLVED]

what's wrong with the following code? struct Line { wxPoint ptStart; wxPoint ptEnd; bool isSelected; } ; wxVector<Line> lines; Line l; l.ptStart=wxPoint(20,30); l.ptEnd=wxPoint(270,390); l.isSelected=true; lines.push_back(l); wxVector<Line>::iterator i; for(i=lines.begin(); i!=lines.end(); i++) { co...
by dqf88
Fri Mar 09, 2018 12:16 am
Forum: Compiler / Linking / IDE Related
Topic: The sample "wxWidgets app" application can't be compiled smoothly [SOLVED]
Replies: 4
Views: 892

Re: The sample "wxWidgets app" application can't be compiled smoothly [SOLVED]

Thanks, the libraries requested are in the "MinGW\lib" folder
by dqf88
Thu Mar 08, 2018 8:17 am
Forum: Compiler / Linking / IDE Related
Topic: The sample "wxWidgets app" application can't be compiled smoothly [SOLVED]
Replies: 4
Views: 892

Re: The sample "wxWidgets app" application can't be compiled smoothly [SOLVED]

I can't find these two libraries after compiling the wxwidgets3.1.1
by dqf88
Thu Mar 08, 2018 6:18 am
Forum: Compiler / Linking / IDE Related
Topic: The sample "wxWidgets app" application can't be compiled smoothly [SOLVED]
Replies: 4
Views: 892

The sample "wxWidgets app" application can't be compiled smoothly [SOLVED]

I can't compile the sample application "wxWidgets app" using wxwidgets3.1.1 and codeblocks17.12, but there is no error using wxwidgets3.1.0 and codeblocks17.12, why ? -------------- Build: Release in SS (compiler: GNU GCC Compiler)--------------- windres.exe -IC:\wxWidgets-3.1.1\include -I...
by dqf88
Thu Aug 18, 2016 2:02 am
Forum: Compiler / Linking / IDE Related
Topic: CodeBlocks IDE has no "wxWidgets 3.1.x" option [SOLVED]
Replies: 6
Views: 1525

Re: CodeBlocks IDE has no "wxWidgets 3.1.x" option [SOLVED]

New Pagodi wrote:I wrote about some solutions here.

The error occured when I builded the program with "wxWidgets is built as a monolithic library" option
by dqf88
Thu Aug 18, 2016 12:42 am
Forum: Compiler / Linking / IDE Related
Topic: CodeBlocks IDE has no "wxWidgets 3.1.x" option [SOLVED]
Replies: 6
Views: 1525

Re: CodeBlocks IDE has no "wxWidgets 3.1.x" option [SOLVED]

New Pagodi wrote:I wrote about some solutions here.

Thanks
by dqf88
Tue Aug 16, 2016 5:00 am
Forum: Compiler / Linking / IDE Related
Topic: CodeBlocks IDE has no "wxWidgets 3.1.x" option [SOLVED]
Replies: 6
Views: 1525

CodeBlocks IDE has no "wxWidgets 3.1.x" option [SOLVED]

CodeBlocks IDE has no "wxWidgets 3.1.x" option, how to solve this problem? Thanks
by dqf88
Wed Aug 10, 2016 1:04 pm
Forum: Announcements and Discoveries
Topic: ANN: wxSQLite3 3.3.1 released
Replies: 5
Views: 1290

Re: ANN: wxSQLite3 3.3.1 released

doublemax wrote:WXSQLITE_LIMIT_WORKER_THREADS is defined in wxsqlite3.h. Maybe you forgot to update it or it's included from an older version?


I build the project in wxSQLite3 3.3.1
by dqf88
Wed Aug 10, 2016 12:33 pm
Forum: Announcements and Discoveries
Topic: ANN: wxSQLite3 3.3.1 released
Replies: 5
Views: 1290

Re: ANN: wxSQLite3 3.3.1 released

-------------- Build: DLL Release Win64 x64 in wxsqlite3 (compiler: GNU GCC Compiler)--------------- mingw32-g++.exe -D_WINDOWS -D_CRT_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DNDEBUG -D_USRDLL -DWXMAKINGDLL_WXSQLITE3 -D_UNICODE -DWXUSINGDLL -D__WXMSW__ -DwxUSE_DYNA...

Go to advanced search