|
Last week, we will continue to teach you to make a simple-to-order battery after making easy computer calculations. Readers may find that in the first four articles written by the pen, in addition to the first two, the last two articles are easy app teaching. Or maybe some friends think that if the app is so simple, then the programmer doesn't have to work?
Oh ~ Of course this is so not wrong! It's called "Delphi app", the main thing is to be able to lead more interested in the writing of the application of friends "into the door", is called "Teacher in the door, practice in a person", so the pen's idea is to let everyone in the shortest possible time to have a simple work, into the fun to learn is the most important! :)
After a bunch of crap, you continue to be in question.
1 new Firemonkey Mobile application
2 Select Blank Application empty case
3 put two elements on the canvas, Tcameracomponent and Tswitch
4 you can see that the switch element is a simple word, because of the XE6 language problem, you can refer to the "switch element simple problem " this article.
5 then select the switch element and swap to the events page and we will open (or close) the blink light in the Onswitch event.
6. Enter the above code, if switch is open (IsChecked), first check the camera element whether there is a blink light (Hasflash), and some torchon/off.
And then it was easy for us to finish the app for the phone. After four weeks of simple admission to the university, are you interested in using Delphi XE6 to write apps? Next to the teaching documents, we will slowly add more simple and interesting apps, hoping to let everyone have more of their own work. |