Search found 61 matches

by mohan
Fri Jul 25, 2008 12:57 pm
Forum: C++ Development
Topic: Scrolling window help
Replies: 2
Views: 1106

Scrolling window help

Hi All, In my Onpaint event I am having a function called Draw(dc(pointer to dc)) in which i am playing a metafile.I have set manually "setvirtualsize" for scrollbars.I select a part of this metafile and zoomed it to show in the window.(derived from wxscrolledwindow) Problem faced: When I ...
by mohan
Mon Jul 21, 2008 11:25 am
Forum: C++ Development
Topic: Printing help
Replies: 1
Views: 676

Printing help

Hi,
My printing function is working fine.But it is printing so small in a A4 sheet paper.It is not occupying the whole sheet.What could be the problem?
by mohan
Wed Jul 16, 2008 6:27 am
Forum: C++ Development
Topic: zooming a image
Replies: 9
Views: 2774

I understood my problem.The rectangle gets displayed because I am getting the image from the screen.Thanks for your replies.Can you please help me how to get the region I selected using selection rectangle?.Will GetClippingRegion() function do that?
by mohan
Tue Jul 15, 2008 4:59 am
Forum: C++ Development
Topic: zooming a image
Replies: 9
Views: 2774

Thanks for our replies.I found some sample from this forum and managed to do it.I have another problem.After selecting the image and displaying in the same DC I get the drag rectangle displayed.I don't need the rectangle to get displayed.How can I do it?.Here is my code.. //on mouse button up void M...
by mohan
Mon Jul 14, 2008 4:07 am
Forum: C++ Development
Topic: zooming a image
Replies: 9
Views: 2774

I don't how to get the region(part of the image) selected by the drag rectangle.If I am able to get the data then I can zoom it.Is there any function to get the data from the selected rectangle.
by mohan
Sun Jul 13, 2008 6:25 am
Forum: C++ Development
Topic: zooming a image
Replies: 9
Views: 2774

zooming a image

Hi all,
I selected a region of a image using a drag rectangle.I want to zoom that region of the image only and show it in the full window.Can somebody please elaborate the steps to be done for this implementation. Please help me..


Thanks,
Mohan
by mohan
Fri Jul 11, 2008 7:03 am
Forum: C++ Development
Topic: rubber band effect problem
Replies: 3
Views: 1158

Thanks Grrr I found the error I was not calling refresh() in leftdown mouse event.
by mohan
Fri Jul 11, 2008 6:41 am
Forum: C++ Development
Topic: rubber band effect problem
Replies: 3
Views: 1158

Thanks Grrr It solved me the problem but the old select rectangle is still displayed if I select other position using mouse.
by mohan
Fri Jul 11, 2008 5:46 am
Forum: C++ Development
Topic: rubber band effect problem
Replies: 3
Views: 1158

rubber band effect problem

I tried to draw a rubber band rectangle.It is showing some strange results.It is not deleting the old rectangle.The code is as follows, wxPoint startpoint; wxPoint endpoint; wxPoint savepoint; int width,height; bool leftclicked=false; bool selected=false; void MyCanvas::OnLeftDown(wxMouseEvent& ...
by mohan
Thu Jul 10, 2008 5:20 am
Forum: C++ Development
Topic: Selecting a part of image and zoom
Replies: 4
Views: 1450

Thanks for your replies.I want to draw a rectangle based on the user mouse movements on the image.I want the functionality as same as "select" tool in Microsoft Paint.Can you please tell me how it can be implemented.Please post some sample code.
by mohan
Wed Jul 09, 2008 4:34 am
Forum: C++ Development
Topic: Selecting a part of image and zoom
Replies: 4
Views: 1450

Selecting a part of image and zoom

Hi All,
I wanted to select a part of the whole image and zoom it.Can you please suggest me ideas on how it could be implemented.

Thanks in advance,
Mohan.
by mohan
Tue Jul 01, 2008 5:43 am
Forum: C++ Development
Topic: how to play a metafile in frame
Replies: 1
Views: 647

how to play a metafile in frame

Hi all, I want to know how to use the wxMetafileDC and wxMetafile.I need a sample metafile to be played on the frame.I used metafile and metafileDC in Onpaint event as, wxPaintDC dc(this); wxMetafileDC *metaDC=new wxMetafileDC("C:\\GLOBE.wmf"); wxMetafile *metafile=metaDC->Close(); metafil...
by mohan
Wed Jun 25, 2008 1:24 pm
Forum: C++ Development
Topic: wxMetafile problem
Replies: 3
Views: 1127

Thanks for your reply.

That is not working.Please tell me how could I pass the (pi.hmf)handle.I am using wxdevc++ ide.It is showing as linker error undefined reference
by mohan
Wed Jun 25, 2008 11:25 am
Forum: C++ Development
Topic: wxMetafile problem
Replies: 3
Views: 1127

wxMetafile problem

Hi all, I am using wxMetafile for displaying.I have also attached the code.I am not able to display the diagram.I am seeing a blank window.Please tell me what is wrong in the code. Details of code: I am using a filter(microsoft filter) for converting a dxf file into metafile.In onpaint i am playing ...
by mohan
Tue Jun 17, 2008 9:58 am
Forum: Open Discussion
Topic: Help in importing dxfimp32.flt file
Replies: 4
Views: 3097

Thanks for your help megabyte.
Bye