Hello,
I am trying to create a WPF application that will have a custom rectangle shape. Since Rectangle is a sealed class I have to inherit from Shape class. Basically my rectangle will consist of four corners (triangles) and 4 edges (trapezoids) that the user can interact with by selecting and dragging the edge or corner to resize the rectangle. Each side/corner will highlight when the mouse is over it (opacity on or off). The body...
Search Result
Collapse
4 results in 0.0040 seconds.
Keywords
Members
Tags
-
How to Create a Custom Shape using Inheritance?
-
How to shape div tag in a following shape? (see image attachment)
Hello,
I need to shape a div tag in the shape like in this image:
[imgnothumb]http://bytes.com/attachments/attachment/5205d1307460155/div.jpg[/imgnothumb]
because I want to have a hover event when div with this shape changes color. I know how to make this shape from 2 divs, but then hover event would only work on one of them and I need whole div to change color.
Thnx ))))...Last edited by Niheel; Jun 7 '11, 04:35 PM. -
How do I remove a shape on mouse click?
I'm trying to find out how to remove a shape on mouse click, but I can't find any solid information on how to do it. Is this possible at all? I'll be creating multiple shapes (They're the same shape, just in different locations) and I want to make it so that the user can remove individual shapes if necessary.
Can anyone please help me out with this one? -
braineater started a topic I have to create an abstract class "shape" with one pure virtual function print, thain CI have to create an abstract class "shape" with one pure virtual function print, tha
I have to create an abstract class "shape" with one pure virtual function print, that outputs the name of the shape. Derive class circle and rectangle from the shape. In the main function create an array that can hold any type of the derived classes. Put one circle and one rectangle into this array. Print the names of the objects. Delete objects (that means that you have to have a destructor . You do not have to put any code in the destructor,...