Ads

Ads

Translate

Showing posts with label Firemonkey. Show all posts
Showing posts with label Firemonkey. Show all posts

Sunday, 8 March 2015

Sourcecode HR Manager Example










Before Download u must join fb group first
Download dilinkini

Wednesday, 24 September 2014

Memodifikasi Parameter OpenGL Rendering

Contoh Kasus DelphiXE7

Untuk meningkatkan performa dari grafik aplikasi, kamu dapat memodifikasi OpenGL parameter pada iOs dan Android

Untuk contoh, jika kamu tidak ingin menggunakan 3D model, kamu dapat mendisabel depth buffer. Dan jika kamu tidak mau menggunakan filled paths atau vector canvas lainnya, amannya sih disabel saja stencil buffer. Jika kamu lebih mementingkan performa ketimbang kualitas visual, lalu gunakan saja 16-bit color depth dari 24 atau 32-bit

To memodifikasi OpenGL parameter:


  • Tambahkan FMX.Platform.pas di USES list didalam unit.
  • Tulis rendering setup procedure:
    procedure RenderingSetupCallback(const Sender, Context: TObject; var ColorBits, DepthBits: Integer;
    var Stencil: Boolean; var Multisamples: Integer);
    begin
        // Override OpenGL rendering setup to use custom values.
        ColorBits := 16; // default is 24
        DepthBits := 0; // default is 24
        Stencil := False; // default is True
        Multisamples := 0; // default depends on TForm.Quality or TForm3D.Multisample
    end;
  • Tulis registration procedure:
    procedure RegisterRenderingSetup;
    var
        SetupService: IFMXRenderingSetupService;
    begin
        if TPlatformServices.Current.SupportsPlatformService(IFMXRenderingSetupService, IInterface(SetupService)) then
        SetupService.Subscribe(RenderingSetupCallback);
        // There is also SetupService.Unsubscribe, which removes the hook.
    end;
  • Panggil RegisterRenderingSetup didalam initialization seksi dari unit.

  • Tuesday, 27 August 2013

    My first Delphi Android app

    One of the test programs I just built is an EditBox, ListBox, Button app (the same app that was the first used to launch Delphi version 1.0 and shown at the Software Development Conference in 1995 running on 16-bit Windows). Using three components and one line of code, I have the same app running on my Samsung Galaxy S4 phone.

    To develop a FireMonkey Mobile App, you can start with a mobile application project template.  I chose the "Blank Application" template for my first app.



    Next, I placed the 3 components on my main form.



    I double clicked on the button to bring up the code editor and added the one line of code inside the Button’s onClick event handler to take the contents of the editbox and add the text as a new item to the listbox.




    Finally, I selected Android as the target platform in the project manager and made sure the IDE was connected to my Samsung Galaxy S4 phone ("SCH-I545").


    I hit the run button to build the application using our true native code Delphi ARM compiler for Android to create the APK file and deploy it to my Samsung Galaxy S4 phone. I added "Hello" and "world" text in the application and pressed the power and home buttons to grab the screen (I could have also used the Palm Swipe method to capture the screen).



    What’s even cooler, the same code can be used with our Delphi true native code compilers for Intel and ARM to compile and run the same project on Windows, OSX and iOS.  All you have to do is set the target platform and use the same form and code.  With my PAServer running on my MacBook Pro, I configured my iOS Device target.

    I hit the run button again to build the same application using our true native code Delphi ARM compiler for iOS and deploy it to my iPhone.



    Going back to the Project Manager window, I activated the Win32 target and compiled the same app and ran it on my Windows virtual machine.

    .

    . .

    Sneak Peek: Android SDK, NDK and Device Support in Delphi



    A juicy sneak peek of the Android support in the SDK Manager and Project manager being developed in the beta. This video shows the updates to the SDK Manager to support the Android SDK & NDK. These can be installed and configured automatically, or you can install them on your own and configure them here. Then it shows how easy it is to add Android as a target. The project manager will automatically detect any Android Emulators or devices with USB debugging enabled and provide them as an option.


    Best Post This Year

    Install Fortesreport community Delphi 7 dan RX Berlin

    Download  Pertama2 kita harus punya file installernya terlebih dahulu, download  https://github.com/fortesinformatica/fortesrepo...

    Total Pageviews

    © 2014 Fajar Priyadi. WP themonic converted by Bloggertheme9. Published By Gooyaabi Templates | Powered By Blogger
    TOP