Home » Community » Newbie corner » Help needed.
Help needed. [message #27331] |
Mon, 12 July 2010 18:28 |
281264
Messages: 270 Registered: June 2010 Location: Spain
|
Experienced Member |
|
|
Hi,
I am struggling with this dummy application I am creating. The objective is to draw lines in the application’s screen after the user has selected “line” by clicking in its corresponding button.
Allow me to explain what I have done:
1.- I have created a struct containing a menu with three buttons-only button “line” does something.
2.- I have added a SplitterFrame and put the previous struct in its left. This allows me to have the application’s window for drawing.
3.- Functionality: once the user has selected “line” from the menu the screen shows mouse coordinates. Then the user clicks again and anchors one point of the line; after a second click the line is drawn on the screen; so far so good.
4.- However, in the next steps, I am finding some problems:
a.- the last coordinates remains in the screen after line creation process; how to get rid off it?
b.- My intention is to store all the lines in a container, so they can be redraw every time is needed. So far, I am using C++ vectors. I have created a struct –line- for contain lines (with four variables). The first problem arises when I try to create a line in my application: it does not compile. Second is the usage of vectors or U++ vectors. What to use? In general, is it allow to use the STL in U++?.
Many thanks,
Javier
|
|
|
Goto Forum:
Current Time: Mon Apr 29 17:30:43 CEST 2024
Total time taken to generate the page: 0.02490 seconds
|