Home » Community » Coffee corner » Newbie Corner
Newbie Corner [message #24208] |
Tue, 05 January 2010 15:12 |
|
MAD!C
Messages: 7 Registered: February 2009 Location: Germany
|
Promising Member |
|
|
hello!
i am new to this forum and to upp. i quit programming more than 10 years ago, but i ever felt like coding again - can´t help it, can´t quit thinking in code. so i am about to jump in all this again.
searching for a lean, smart, flexible and portable dev system i came across upp and - wow - got very impressed by upp features! hats off! i hope, it turns out to be the right choice for a new start.
however, having used c++ for console applications only, i am quite new to this message driven gui concept. despite plenty of tutorials i hope you wouldn´t mind me asking some newbish questions... be certain i´ve been giving my best searching the web for answers
so my questions are:
1. i miss something like SetPixel(x,y,c) - for the moment i use DrawLine(x,y,x,y+1,c) instead, but somehow i feel this is not very clever...
2. oh my how can i call the designer on a .lay file?
3. playing around with some fractal graphics, i settled the rendering within the paint method - making me wait to finish rendering before any input message could be processed, e.g. to close the window or change it´s size...
is there any simpler approach than jumping into multithreading?
i think of calling the eventloop from within my rendering loop, or maybe to use a timer... but i´m not sure if there are any appropriate gui methods around or if i overlook something very simple... you see my lack of gui-experience? what would you propose?
thank you!
|
|
|
Re: Newbie Corner [message #24209 is a reply to message #24208] |
Tue, 05 January 2010 15:27 |
|
koldo
Messages: 3372 Registered: August 2008
|
Senior Veteran |
|
|
Hello MADIC
Quote: | i am new to this forum and to upp. i quit programming more than 10 years ago, but i ever felt like coding again - can´t help it, can´t quit thinking in code. so i am about to jump in all this again.
searching for a lean, smart, flexible and portable dev system i came across upp and - wow - got very impressed by upp features! hats off! i hope, it turns out to be the right choice for a new start.
however, having used c++ for console applications only, i am quite new to this message driven gui concept. despite plenty of tutorials i hope you wouldn´t mind me asking some newbish questions... be certain i´ve been giving my best searching the web for answers
|
No problem. I felt like you one year and a half ago .
Quote: | 1. i miss something like SetPixel(x,y,c) - for the moment i use DrawLine(x,y,x,y+1,c) instead, but somehow i feel this is not very clever..
|
See this: http://www.ultimatepp.org/srcdoc$Draw$ImgTutorial$en-us.html and read "3. Creating and altering images in the code using ImageBuffer"
Quote: | 2. oh my how can i call the designer on a .lay file?
|
See this: http://www.ultimatepp.org/www$uppweb$FAQ$en-us.html and read "How to start the layout (image) designer?"
Probably you will get better answers... but I think these are not bad .
... and you are welcome !
Best regards
Koldo
Best regards
Iñaki
|
|
|
|
|
Goto Forum:
Current Time: Sun Jun 16 15:06:59 CEST 2024
Total time taken to generate the page: 0.02330 seconds
|