There is a circle made with the help of canvas method MainForm -> Canvas -> Ellipse(350,100,550,300). The question is to change size of canvas by clicking "+" or "-" buttons. Are there any methods?
Change size of canvas by click
751 Views Asked by DNilla At
1
There are 1 best solutions below
Related Questions in C++
- C++ using std::vector across boundaries
- Linked list without struct
- Connecting Signal QML to C++ (Qt5)
- how to get the reference of struct soap inherited in C++ Proxy/Service class
- Why we can't assign value to pointer
- Conversion of objects in c++
- shared_ptr: "is not a type" error
- C++ template using pointer and non pointer arguments in a QVector
- C++ SFML 2.2 vectors
- Lifetime of temporary objects
- I want to be able to use 4 different variables in a select statement in c ++
- segmentation fault: 11, extracting data in vector
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- How can I print all the values in this linked list inside a hash table?
- Configured TTL for A record(s) backing CNAME records
Related Questions in GRAPHICS
- Removing flashiness/ shakiness from scrolling text
- Algorithm for drawing tiles on screen
- Can this kind of SVG be simplified?
- Interactive bend image
- Plot: Add legend that overlay several Frames
- I made a function that uses graphics and I wanted to call it in the main it did not work
- Creating new shape palettes in ggplot2 and other R graphics
- How to move everything in Graphics2D by x,y coordinates.
- Java Graphics Dispose Method
- How can I convert PNG to GIF keeping the transparency?
- Java repaint() not calling paintComponent
- 1080p resolution is not detected by screen.bounds and reverts to 720p
- Creating a Texture2DArray and populate it with solid values
- paintComponent method not being called by repaint
- Dealing with and printing large text files
Related Questions in 2D
- Algorithm for drawing tiles on screen
- Object doesn't moving well in rotation
- Cocos2d : Shooting a ball in the direction of the mouse click/Touch
- Error: cannot convert 'int (*)[3]' to 'int (*)[100]' for argument '1' to 'void repl(int (*)[100], int, int)'
- How to add a string to a 2D array in C
- Fitting 2D sum of gaussians, scipy.optimise.leastsq (Ans: Use curve_fit!)
- Java 2D game random rectangles
- 2D perspective transform in JavaScript
- List of 2D Arrays with numpy
- Make two physics objects not collide but do detect collisions in Unity
- Index of an array from a 2d np.array in Python?
- Generate 2D grid with alternation probability
- how to add Scoring to unity3D 2d top down car game?
- Blurring in PyGame
- Destroy Gameobject according to distance value
Related Questions in VCL
- Borland c++: Error while assigning OnChange to another function?
- multiple dialogs inside one dfm
- Indy TCP client in thread
- TScrollBox with dynamically created Memos issue
- cannot download TeeChart Pro VCL
- Thread safety for taking screenshots on Windows with C++ Builder
- sql and delphi devexpress tcxtreelist
- Visual bug in Windows title bar with VCL Styles enabled application and display scaling
- How to vertically center the Edit Text in Vcl.ExtCtrls.TButtonedEdit?
- Change size of canvas by click
- Delphi Components Collector for non visual components
- TCombobox with gestures?
- Calling Show() of embedded form should show parent form
- Transparency in component component overlay
- Missing keyboard input on custom VCL control
Related Questions in BORLAND-C++
- DB ASM variable in Inline ASM C++
- Special character in Borland c++ Builder
- Blurry print with legacy borland software
- Difference between Turbo C++ and Borland C++ compiler
- Give Changing Different colors to a shape
- Pragma packing and effect on inheritance ? Packing is not lifted eventhough specified?
- Change type of base class variable in controlled situation?
- Change size of canvas by click
- C++: program version?
- scanf in Borland C++ Builder
- VS2005 and Borland C++ Builder Integration
- borland sdac inserted record is not shown when I try to fetch record from within the same connection
- How to compile and run (by a single command) a C++ program manually on MS DOS instead of Borland?
- Borland C++ - Multithreaded TCPServer Issue
- How to use Borland C++ in VS Code?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
for resizing ellipse:
create some global or Form member variables:
int x0=350,y0=100,x1=550,y1=300;create some draw function (member to form or not)
for example:
create events on resize and on paint for the main form and add draw(Canvas); call in booth
create on (mouse) click event
X,Y,Shiftholding mouse statex1=X; y1=Y; draw(Canvas);That is all ... hope I did not make some typo (wrote from memory directly here)
If you need to resize the form then:
x1=X, y1=Y;doClientWidth=X+32; ClientHeight=Y+32;SetBounds(Left,Top,X+32,Y+32);+32is resize area to ensure you can also enlarging ...[edit1] did miss the +/- buttons (I assumed mouse resize) so here are the buttons
create on + button click event:
leave the existing code as is and add to the event code this
that will enlarge booth semi-axises by 16 on each click
create on - button click event:
code is similar to +
that will shrink booth semi-axises by 16 on each click and stop on size 1
if you need the form to resize then adapt the above code ... like in the on mouse event example