Jump to content
IElite

When is the next contest?

Recommended Posts

That is a good question! I arranged a "Raspberry PI 2" contest last summer on component writing, but sadly few people seem eager to write their own components, so we had to pospone it.

 

BUT, it's a good idea to hold another compo! Let me think up something cool and we'll get on it soon!

Share this post


Link to post
Share on other sites

re:Raspberry PI 2" contest last summer on component writing

 

It's not that we are non interested but I think that allot of us are still learning and struggling with the basic concepts of SMS . At least I am. Writing components  is something to look forward to but I have to learn the basics first. Maybe someone can do a detailed tutorial on how to make a basic component and make a contest on how it can be enhanced.

 

:)

Share this post


Link to post
Share on other sites

Like any other company, the priority is on new features and upgrades then on technical documentation, demos, and how-tos.

 

I'm still waiting for update to Smart Book 

 

I think the community should spend more time sharing.  Maybe SMS administrators can create a Forum topic where we can share applications, tips and tricks, etc. that we have learned along the way. Maybe it can be broken down into topics such as Mobile Apps, Games, graphics, Browser Apps, etc

Share this post


Link to post
Share on other sites

re:Raspberry PI 2" contest last summer on component writing

 

It's not that we are non interested but I think that allot of us are still learning and struggling with the basic concepts of SMS . At least I am. Writing components  is something to look forward to but I have to learn the basics first. Maybe someone can do a detailed tutorial on how to make a basic component and make a contest on how it can be enhanced.

 

:)

 

The easiest way to learn how to make components is to look at the RTL files. Start with something simple, like TW3Panel, then have a look at TW3Label and so on.

 

A simple component is just:

 

type

TMyComponent = class(TW3CustomControl)

protected

  procedure InitializeObject;Override;

  procedure FinalizeObject;Override;

  procedure Resize;Override;

end;

 

Next, to style it, add a style with the same name as the component to the CSS files, like this:

 

.TMyComponent {

  background: #FF00FF;

}

 

And thats essentiallty it.

To make it do something you populate it with child objects (or set the events, override the event handlers etc), and make use of the beginUpdate() / endUpdate() mechanisms (together with AddComponentState) to avoid updating the view to much.

If you have made components with Delphi before, some of these things should be familiar.

 

Again, the best way to learn is by looking at the components in the RTL.

 

What "basic concepts" of SMS are you struggling with?

Share this post


Link to post
Share on other sites

A repost from Facebook - dated January 9
 

"Mid february it's time for a Smart competition again! This time the winner recieves the Asus Tinkerboard which is an absolute power-house of a SBC (single board computer). We ourselves use this board for running Smart Mobile Studio via EXAGEAR (x86 emulation for ARM devices), and also as a node.js and Android deployment device.

Like our sister group, Delphi Developer, we are printing a special edition white "retro case" for this fantastic little machine (fresh off the mint, they were done printing yesterday at 25 hours each).

The lucky winner recieves the following (pre assembled ofcourse):

1 x "Special Edition" White Retro Case
1 x Asus Tinkerboard
1 x 32 Gb Samsung class 10 SD card
1 x Fan to ensure reliable operational temperature
1 x Red light diode power indicator
1 x Smart ready Ubuntu installation

(*) Samba is setup and registers on the network as "SmartDevice". PM2 which is the node.js clustering software used to run large Smart Mobile Studio cloud services is also "ready to go". Sftp is likewise there, so you can upload your compiled code as part of your build process (Smart has project options for this).

More information about the competition will be released in due time (at least a month from now), but if you have been waiting for a nice competition - now is the chance to create, port or implement something amazing 1f60e.png😎

Looking forward to the submissions. We are lucky to have so many fine developers using Smart!"

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×