Text input, dragable, pinchable (resizable) and lot of -able...from newbie

Hi there everybody.

I would like to know if it’s possible to have an “text field” that we can drag, resize change the font and even change the color of the text (let’s say 5 colors) 

I’ve been searching and searching, trying to figure out how to do, and i just realize that there is no tutorials for this kind of project!

As i am a big big newbie (let’s face it i don’t understand anythingg at all) i would like to know if somebody would kindly (corona’s staff   as well)  point out or create a little tutorial with the elements i wrote.

Sure that could help lot of people ( including me)!

Hi @contact36,

This is a multi-faceted concept, so I think you’ll need to take it step by step and learn how to program it. The best place to begin is Corona University guides and tutorials, where you can see how to touch/drag things, display text, change the color of it, etc. There are also many sample apps in your local Corona application directory: CoronaSDK > SampleCode.

http://www.coronalabs.com/resources/tutorials/getting-started-with-corona/

Best of luck!

Brent Sorrentino

Hi Brent,

Sorry for the late answer, guess i didn’t see the notification on that thread.

Can i ask you something,

I’ve been through lot of tutorials but i didn’t find a way to change the color of a text (same one) with buttons.

Can you point me a tutorial ?

Thank you for your answer

color change sample

-- create table of colors local colors = { {255,0,0,255},{0,255,0,255},{0,0,255,255},{255,255,255,255},{0,0,0,255}} -- create text local txt = display.newText("This is my Text", 0, 0, nil, 32) txt.x = display.contentCenterX txt.y = 50 -- create buttons and color change function for a = 1, #colors do   local btn = display.newCircle( (a-1)\*50+60,300, 20)   btn:setFillColor(colors[a][1], colors[a][2], colors[a][3], colors[a][4])   btn.color = a   function btn.touch(self, event)     if event.phase == "ended" then       txt:setTextColor(colors[self.color][1], colors[self.color][2], colors[self.color][3], colors[self.color][4])     end   end   btn:addEventListener("touch", btn) end

Hi @contact36,

This is a multi-faceted concept, so I think you’ll need to take it step by step and learn how to program it. The best place to begin is Corona University guides and tutorials, where you can see how to touch/drag things, display text, change the color of it, etc. There are also many sample apps in your local Corona application directory: CoronaSDK > SampleCode.

http://www.coronalabs.com/resources/tutorials/getting-started-with-corona/

Best of luck!

Brent Sorrentino

Hi Brent,

Sorry for the late answer, guess i didn’t see the notification on that thread.

Can i ask you something,

I’ve been through lot of tutorials but i didn’t find a way to change the color of a text (same one) with buttons.

Can you point me a tutorial ?

Thank you for your answer

color change sample

-- create table of colors local colors = { {255,0,0,255},{0,255,0,255},{0,0,255,255},{255,255,255,255},{0,0,0,255}} -- create text local txt = display.newText("This is my Text", 0, 0, nil, 32) txt.x = display.contentCenterX txt.y = 50 -- create buttons and color change function for a = 1, #colors do   local btn = display.newCircle( (a-1)\*50+60,300, 20)   btn:setFillColor(colors[a][1], colors[a][2], colors[a][3], colors[a][4])   btn.color = a   function btn.touch(self, event)     if event.phase == "ended" then       txt:setTextColor(colors[self.color][1], colors[self.color][2], colors[self.color][3], colors[self.color][4])     end   end   btn:addEventListener("touch", btn) end