Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7983695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:02:28+00:00 2026-06-04T11:02:28+00:00

Am i missing something here? I purchased Smart Mobile Studio two days ago, and

  • 0

Am i missing something here? I purchased Smart Mobile Studio two days ago, and been trying its features. I would expected that it would at least emulate delphi’s event model. No?

Shouldn’t I be able to click on a control and have access to an events tab (as we do for properties), and add a delphi style event, such as OnClick for a Button (which would then be translated into a javascript event). I would expect to see not only the OnClick event in my forms unit, but the button as well. Seems that there is no reference to the button either.

What am i missing?

I see how i can do it at runtime, but i still can’t fugure out how to do it at design time. Can someone please help me?

Runtime…

unit Form1;

interface

uses w3system, w3ctrls, w3forms, w3application;

type
 TForm1=class(TW3form)
 private
 { Private methods }
 FButton : TW3Button;
 protected
 { Protected methods }
 Procedure InitializeObject;override;
 Procedure FinalizeObject;override;
 Procedure StyleTagObject;override;
 end;

Implementation

Procedure TForm1.InitializeObject;
 Begin
 inherited;
 FButton:=TW3Button.Create(Self);
 FButton.Caption:=’Load’;
FButton.OnClick:=procedure (Sender : TObject)
 begin
 //do something
 end;
 End;

Procedure TForm1.FinalizeObject;
 Begin
 inherited;
 End;

Procedure TForm1.StyleTagObject;
 Begin
 inherited;
 StyleClass:=’TW3CustomForm’;
 End;

end.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T11:02:29+00:00Added an answer on June 4, 2026 at 11:02 am

    As of writing, the smart IDE does not support code generation for delegates (or event objects). But this is scheduled to be added.

    It is important to understand that smart does not try to be another delphi. That would ruin the richness of both object pascal and javascript by imposing limitations. Instead the central function of the product is to replace javascript with object pascal – which in turn adds to javascript (things like interfaces, inheritance and more).

    At present, writing mobile apps is a bit of a black art. Freepascal users do their work by code only, as does C# developers (although we used to connect to the xcode designer .nib files) and naturally also javascript developers. Smart mobile, while it does require you to write more code, is still way ahead of the average javascript developer.

    The time saving factor is that you dont have to write it all using javascript, but rather in a language you already know and love.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm probably missing something obvious here but here's what I'm trying to do. From
Could someone please tell me if I am missing something here... I am trying
Well i guess im missing something here.. Any way im trying to make a
Its possibly im just missing something here but, when I write some code for
I'm clearly missing something here. I'm trying to install the torquebox gems and am
I am not sure if I am missing something here. I would like to
I'm obviously missing something here. Same project I've been working on for a number
I know I'm missing something here. In the XSLT transformation below, the actual result
Im sure I am missing something here but none the less. foo['bar'] = nil
I might be missing something here but am unable to understand the true purpose

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.