Posts

Showing posts from September, 2013

Hi!

Hi! I am developing an app to run on Android (later iOS) and I have noticed that int'l chars are wrong here. Is there any pagecode config I need to do or is it a bug? Example: Ç show as C, Ã as A, and so on... look likes FMX is trying to convert the characters, also, they I get an unaligned word... By the way, it will not happen with TLabel, but I have see that when using the TTabItem.Text property, TListBoxGroupHeader. It will get wrong on the device, but the IDE shows fine.

Delphi XE2, 640x480 in 16 colours. My machine rocks!

Image
Delphi XE2, 640x480 in 16 colours. My machine rocks!

Is now open.....

Is now open..... http://www.embarcadero.com/kr/coderage
AHHHHHHHH I had constant crashes with the style manager in XE2 - now I see that little has been done to remedy matters in XE3,4 and 5!  Random AV's, stuff not drawing - you can't easily build a style up from scratch still because half the objects (like the new font or colour objects used in the styling system) cannot be added to a new style without editing the actual text - I can see this is going to drive me mad again!

Does someone knows how to use TWebbrowser FMX for mobile? I have contacted Xavier who bring to us GMLib (http://www.cadetill.com/gmlib/) and would like to help him to port into mobile dev. He needs to know how to use javascript and get vars from the browser...

Does someone knows how to use TWebbrowser FMX for mobile? I have contacted Xavier who bring to us GMLib ( http://www.cadetill.com/gmlib/ ) and would like to help him to port into mobile dev. He needs to know how to use javascript and get vars from the browser... http://www.cadetill.com/gmlib/

Hi!

Hi!  just for a joke i made a "text to speech"  in delphi VCL with google translate services. it's very simple, but it works fine ( for now ... maybe in the future if google changes something ...) and in all languages.  i tested it in italian. you can use it in async mode , and in this case you must call close method manually, or in sync mod. to change language, change link const. uses MMSystem,HTTPApp ;  const   link_parla : string = 'http://translate.google.com/translate_tts?tl=it&q=%s&.mp3' ; procedure talk_close_if_async ; begin   mciSendString('close MP3', 0,0,0); end; procedure talk( sentence:string ; async : boolean = true  ) ;  var link : string ; begin   link := Format(link_parla,[HTTPEncode( sentence )]);   mciSendString('close MP3', 0,0,0);   mciSendString(PChar('open "' + link +  '" alias MP3'), NIL, 0, 0);   if async then  mciSendString('play MP3 ', NIL, 0, 0)   else begin       mciSendString(&

FYI for component developers. Quite a while back, I wrote an article about an issue I had encountered installing Delphi on my blog. Most component installers don't cause this issue, but I'd like to stress that it's very important to detect what versions of Delphi are installed in installers for components, because installing search paths for versions that aren't there can cause issues later on! http://ibeblog.com/2010/09/20/delphi-required-package-rtl-not-found/

FYI for component developers. Quite a while back, I wrote an article about an issue I had encountered installing Delphi on my blog. Most component installers don't cause this issue, but I'd like to stress that it's very important to detect what versions of Delphi are installed in installers for components, because installing search paths for versions that aren't there can cause issues later on! http://ibeblog.com/2010/09/20/delphi-required-package-rtl-not-found/ http://ibeblog.com/2010/09/20/delphi-required-package-rtl-not-found/
I'm having an issue with png images in Delphi XE2. I'm leading them using the default TPngImage class and then I'm moving them into a TBitmap32 from Graphics32. This is working fine, but it fails for palette based images which use the tRNS chunk to site transparency. When I use the code provided by GR32 to copy the image, the alpha channel is lost, because those images don't site the alpha channel in the alpha scanline. When I try assigning the palette image is completely lost. Does anyone have any idea how to handle this type of png image in Delphi?
Are there any OpenSSL .so or other binaries for Android builds? I'm trying to work with HTTPS SOAP service and cannot find any information regarding android support in new Delphi XE5

Part 2 - a functioning battery level widget, with source.

Part 2 - a functioning battery level widget, with source. http://www.deltics.co.nz/blog/posts/1791

TECNativeMap now available for #MacOSX

Image
TECNativeMap now available for #MacOSX 100% #Delphi #vcl and #FireMonkey, no WebBrowser, no Javascript for more responsiveness and less memory consumption http://www.helpandweb.com/ecmap/en/tecnativemap.htm

Kicking off another short series on Android development with Oxygene. This time: Widgets

Kicking off another short series on Android development with Oxygene.  This time: Widgets http://www.deltics.co.nz/blog/posts/1774

Blog post "New Tools in XE5 (Missing from Menu)" at http://blog.marcocantu.com/blog/new_tools_xe5_missing_menu.html

Blog post "New Tools in XE5 (Missing from Menu)" at http://blog.marcocantu.com/blog/new_tools_xe5_missing_menu.html http://blog.marcocantu.com/blog/new_tools_xe5_missing_menu.html

Because Sender = ComponentVar is just too conservative

Because  Sender = ComponentVar is just too conservative     if TBitBtn(Sender).Name='bWoodPallet'      then tPack.CarrierType:=ctWood     else if TBitBtn(Sender).Name='bPlasticPallet'      then tPack.CarrierType:=ctPlastic     else if TBitBtn(Sender).Name='pVendorPlasticPallet'      then tPack.CarrierType:=ctVendorPlastic;

TMS Component Pack v7.1 released with RAD Studio XE5 support, with 1 new component TAdvSmoothWin8Marquee, and Office 2013 style & Windows 8 ribbon style support in TAdvToolbar.

Image
TMS Component Pack v7.1 released with RAD Studio XE5 support, with 1 new component TAdvSmoothWin8Marquee, and Office 2013 style & Windows 8 ribbon style support in TAdvToolbar. Active registered users can now download v7.1 : http://www.tmssoftware.com/site/tmspack.asp

For Java & Delphi skilled people (not my case) here a how to "access a JAVA Class that you have created with ECLIPSE/ANDROID STUDIO or access a third party package."

For Java & Delphi skilled people (not my case) here a how to  "access a JAVA Class that you have created with ECLIPSE/ANDROID STUDIO or access a third party package." http://www.pclviewer.com/android/androidJNI.html http://www.pclviewer.com/android/androidJNI.html

Hello

Hello, I have a big problem after installing TMS FMX pack. RAD XE5. I can not use Firedac as "RAD XE5" crashes when clicking on the "Connection Editor .." of Firecdac FDConnection1. Step 1. I put  FDConnection1 on the Form. Step 2. right-click on compnenta FDConnection1 Step 3. they click the option "Connection Editor .." At this point RadXE5 Ent or DelphiXE5  Ent  locks. PC Features: sonyvaio VFPCF1 (i7, 8GB, Win 8 ENT 64bit) Coexist: RAD RAD XE4 Xe3 Ent and Ent. I need these versions because not all components used by me in Xe3, XE4 available for XE5.
Does anyone know if Delphi will be able to produce Android services and widgets in the (near) future? The roadmap doesn't really mention those explicitly.

I have two interns here today. They are 16 year olds, and have not done any programming before. I introduced them to the basics of Pascal this morning, and now they're having a good time in the office next door. They are playing with canvas-demos in Smart and I hear "Hey, If X is greater than this value, lets try to spin it around the other way.", and "Aha, look at that!", and "Let's try to tweak the colors!!" etc etc.

I have two interns here today. They are 16 year olds, and have not done any programming before. I introduced them to the basics of Pascal this morning, and now they're having a good time in the office next door. They are playing with canvas-demos in Smart and I hear "Hey, If X is greater than this value, lets try to spin it around the other way.", and "Aha, look at that!", and "Let's try to tweak the colors!!" etc etc. I bet you all remember the good exploration moments when learning Pascal? I look forward to introduce them to "everything" I know about sound software engineering over the next year!

Delphi Android Warriors

Image
Delphi Android Warriors Jim McKeeth posted this warrior tribe over at  http://delphi.org/2013/09/delphi-xe5-android-wallpaper/ - there even is a huge .png version found in his post. Kinda cute :)  I just hope they are not grouped to fight off flaming apes ;) #delphi   #android

Embarcadero has just released a new FireMonkey Premium Style Pack for XE5. Check it out: http://blogs.embarcadero.com/sarinadupont/2013/09/25/firemonkey-xe5-premium-style-pack-is-now-available/

Embarcadero has just released a new FireMonkey Premium Style Pack for XE5. Check it out:  http://blogs.embarcadero.com/sarinadupont/2013/09/25/firemonkey-xe5-premium-style-pack-is-now-available/ http://blogs.embarcadero.com/sarinadupont/2013/09/25/firemonkey-xe5-premium-style-pack-is-now-available/

RAD Studio XE5 Easter Egg

Image
RAD Studio XE5 Easter Egg - Go Help|About - Hold down the Alt-key and type TEAM - Double-click in the scrolling list Voila: This picture appears, and I can spot a few familiar faces :) #easteregg
Who likes last century's products?

A "mini" twist on the object pool classic.

A "mini" twist on the object pool classic. http://delphitools.info/2013/09/26/boosting-work-classes-with-a-mini-object-pool/
Hello guys, I'm testing XE5, and a test application that I'm doing runs perfectly on my Galaxy Tab 2, on a Galaxy Note II, but does not work on Atrix with Cyanogenmod, the screen goes black and shows nothing but incredible as it appears when I click the button where would the ShowMessage is presented. Any idea?
I know Googles now say to us forget about "menu" stuff, apps needs to call that another name, "action" if I can remember... anyway I do need a menu and have simulated with a TListBox, problem is: my code is fixing that position when open and I cannot set that dark grey color style. TMenu is not available to Android... Any tip?

#XE5 I fell loading my app is slower than other apps. Black screen for a while so it shows up. Is that because I am running a debug version?

#XE5  I fell loading my app is slower than other apps. Black screen for a while so it shows up. Is that because I am running a debug version?   Any chance for optimize the apk? Size is huge!!

HELP - Session lost in DataSnap

HELP - Session lost in DataSnap Hello, I try to explain my problem and sorry my english. I have a DataSnap server (XE3) using TDSServerModule and sending a command to the server where a transaction is initiated in the database and I make a update command. To finalize this transaction have to send another command. If the range of these two commands there is a drop in the network (remove the network cable from the client computer is the easiest way to simulate the problem) the session remains open in datasnap waiting for the timeout. It turns out that as I can not set the timeout and it is high I get the database locked by this transaction that was open in the session datasnap. I tried to solve this by placing an TTimer to check the time of the last call to perform the rollback, but do not know why the event is not triggered ontimer. Already read several articles and did not help me, nor with a timer or with the lost session. can someone help me?
In XE4 I could right click a FireMonkey control and select "Edit Custom Style". In XE5 this option has disappeared! Anybody know why? Without it, how do I change something simple like the background colour of a TMemo?

Hello all

Hello all, I want to detect IOS device type, I want to know device is Iphone or Ipad how i can get this info?

I'm doing a CodeRage presentation on Delphi Coding Anti-patterns, and was wondering if anyone would like to contribute their favorite. The kind of things I had in mind would be:

I'm doing a CodeRage presentation on Delphi Coding Anti-patterns, and was wondering if anyone would like to contribute their favorite. The kind of things I had in mind would be: if assigned(x) then   x.free;  //just call free!!! Over use of the with statement (that is to say using it all), using a TStringList to store references to objects, incorrect use of try...finally statements and so on.  I'm basically after short easily explainable patterns.  I currently have a few, but I'm not sure that it's half an hour of content as yet.

XE5: Does my Android app will need a TTimer to timeout and force it to close? What I mean is that when I go to the home and dont return the app keep going running.

XE5: Does my Android app will need a TTimer to timeout and force it to close? What I mean is that when I go to the home and dont return the app keep going running. Other question, same subject: how can I prevent the OS to kill my task when in bg? Can we develop a system service with Delphi that will/can start the app?
How to implement longClick em listview ?

Migration from MSSQL to PostgreSQL?

Migration from MSSQL to PostgreSQL? Has anyone of you done this? There are features that you pay mucho dollars for in MSSQL, which PostgreSQL appears to manage just fine. #sql

Good afternoon guys

Good afternoon guys, one more doubt! I have a process like runing in background so that the user to android XE5 is the same thing as creating for delphi normal? Could give an example in FireMonkey XE5? hugs

Calling .NET libs from Delphi?

Calling .NET libs from Delphi? Basically, I'd like to call sql generators from .NET System.Data.SqlClient, like it is done here: http://scriptdb.codeplex.com/SourceControl/latest#ScriptDB/DatabaseScripter.cs How much bending over backwards is required to to do this? #sql

Is there any appropied way to close an Android application? I figured out how to intercept the Back button and start a dialog so user should ask if wants to leave, but just using Halt(0) it will terminate (app.terminate, close and other not working).

Is there any appropied way to close an Android application? I figured out how to intercept the Back button and start a dialog so user should ask if wants to leave, but just using Halt(0) it will terminate (app.terminate, close and other not working). The problem above is that Delphi hang so I need to click cancel. If I allow my app to close using the Home button Delphi sees that and finish debuging fine.

TTimer in TDSServerModule

TTimer in TDSServerModule Hello, I am creating an application datasnap and server need to put a timer, however it does not run the OnTimer. Anyone know how to do this? thank you

Blog post "Assorted Delphi XE5 Links" at http://blog.marcocantu.com/blog/assorted_delphi_xe5_links.html

Blog post "Assorted Delphi XE5 Links" at http://blog.marcocantu.com/blog/assorted_delphi_xe5_links.html

I just found this in a TForm, that is used as a DataModule

I just found this in a TForm, that is used as a DataModule procedure Tvars.FormDestroy(Sender: TObject); begin   IBDatabase1.destroy;   IBTransaction1.destroy;   IBQuery1.destroy;   DataSource1.destroy;   IBQuery2.destroy;   DataSource2.destroy;   IBQuery3.destroy;   ... end; this goes on for about 50 of the Non-Visual components that are dropped on this form. Why would someone do this?

Second session in Denmark, good turnout for RAD XE5 event.

Image
Second session in Denmark, good turnout for RAD XE5 event.

Has anyone found out how to close an #XE5 app on #Android? It doesn’t seem to respond to the back button, Self.Close (I only have a single form), or even Application.Terminate: the app stubbornly remains in the air. The CloseQuery event does fire if I call Self.Close, and CanClose is set to True throughout.

Has anyone found out how to close an #XE5   app on #Android?  It doesn’t seem to respond to the back button, Self.Close (I only have a single form), or even Application.Terminate: the app stubbornly remains in the air.  The CloseQuery event does fire if I call Self.Close, and CanClose is set to True throughout. Am I missing something here?

TMS Pack for FireMonkey v2.2 is released. Now with XE5 support and ready for 4 platforms: Windows, Mac OS-X, iOS & Android!

TMS Pack for FireMonkey v2.2 is released. Now with XE5 support and ready for 4 platforms: Windows, Mac OS-X, iOS & Android! A trial version can be downloaded at: http://www.tmssoftware.com/site/tmsfmxpack.asp http://www.tmssoftware.com/site/tmsfmxpack.asp

Hello everybody

Hello everybody, I am trying to open image to full screen in Delphi XE4 IOS and i can't find not some information in internet or in Embarcadero help, if tried anyone this one, please share me how do that.

More XE5 events, Denmark today with a nice view from the room.

Image
More XE5 events, Denmark today with a nice view from the room.

Is there a way to set up projects so that object files and executables are not in documents?

Is there a way to set up projects so that object files and executables are not in documents? Documents are backed up (very) regularly but backing up object and final files is wasteful (not to mention slow), plus I would prefer to not run programs in Documents (seems obscene these days). With the XE series it looks like you should be able to do it but so far I have not managed - hopefully I am just not twisting my mind in an appropriate way.

Good night guys, I'm a Brazilian developer, so excuse my English by google translator!

Good night guys, I'm a Brazilian developer, so excuse my English by google translator! I'm having a problem to check the status of the internet connection and also with the toast friend developed by the community. On the state of the connection I caught the following code "SharedActivityContext.getSystemService (TJContext.JavaClass.CONNECTIVITY_SERVICE);" Can anyone help me know if the internet connection is active and is Wifi or 3G?

I've got a screen capture program that I had written long ago and to tell the truth I really enjoy using tools that I've made myself (ok, with a lot of help) but there is one thing I'm looking to do and thought I would ask the community if they have anything like this:

Image
I've got a screen capture program that I had written long ago and to tell the truth I really enjoy using tools that I've made myself (ok, with a lot of help) but there is one thing I'm looking to do and thought I would ask the community if they have anything like this: I'm looking to add a page tear as shown in the pic. Any ideas and/or code you can share?

at first, I was wtf?! then I've continued and, in the end, it all made sense, pure genius (:

at first, I was wtf?! then I've continued and, in the end, it all made sense, pure genius (: http://www.uweraabe.de/Blog/2013/09/23/i-had-a-dream/

hi! someone was able to made a gingerbread app working?

hi! someone was able to made a gingerbread app working?  there's a small bug creating androidmanifest.xml : delphi always add a "largeHead" options , but it's compatible only from api11, so you can't deploy. solution is manually edit androidmanifest.template in project folder and remove android:largeHead from the xml.  so it compile and deploy correctly, but app doesn't start , it always have a black screen :(

CnPack has released CnWizards_1.0.1.664_Unstable.exe that has Delphi XE5 support, available from http://www.cnpack.org/downbuilds.php?lang=en

CnPack has released CnWizards_1.0.1.664_Unstable.exe that has Delphi XE5 support, available from  http://www.cnpack.org/downbuilds.php?lang=en
Just uploaded a new version of PngComponents with XE5 support to CodeCentral. There was also a problem when working with images of height larger than 255 pixel.
How you think, it's possible to add "Order" button in the Tlistbox? i want to create  app for the Restaurant ( Android and Ios). the client chose an item and then can check out from paypall, Scrill, Visa etc..
Guys someone can tell me how to minimize Andro running app?
Android resources for Object Pascal developers

Bugs and You

Image
Bugs and You How do they get fixed? You find them. You try to find a way to reproduce them. You make an example, and/or describe in detail how and when it happens. You report it in QC. You link it here, so that people are aware and can up-vote the issue for priority. http://qc.embarcadero.com/wc/qcmain.aspx Even better: http://cc.embarcadero.com/Item/29520 When you've done the above, and only then - you have earned the right to bemoan the bug. No, seriously ;)
Work with PageControl using keyboard in FireMonkey does not work in XE5? How I can switch pages (Ctrl+Tab for windows cotrol does not work)? How I can switch focus to it using tab order - don't receive focus.

Triggered by this thread https://plus.google.com/111125161776255713104/posts/Go7rMpyGYxz I could not resist to do a cross-plattform toast component for FM.

Triggered by this thread https://plus.google.com/111125161776255713104/posts/Go7rMpyGYxz I could not resist to do a cross-plattform toast component for FM. https://www.cybertribe.de/info/components/fmx/toast/ (13/09/21 - edited the link because download via google drive is somehow unergonomic) Works only in GUI applications though. It also contains the Android-JNI-Toast unit provided by +Brian Long .
I must be completely ignorant, I can't seem to implement a android broadcastreceiver "OnReceive" event in Delphi. Either there is a big hole in it, or much more likely, That feature just isn't demonstrated/documented anywhere. I can instantiate all android classes, I cant attach to any events.

What's the future for HTML5 Builder. Now that the focus is on going native Will it remain a product? Will it remain a standalone product?

What's the future for HTML5 Builder.  Now that the focus is on going native Will it remain a product? Will it remain a standalone product? I don't see a roadmap for it . Jose leon's  blogspot has been quiet for a while. Apparently(I've been told by Embarcadero sales) the HTML5 Builder version in RADStudio XE5 has some enhancements that are not in the stand alone product. Anyone know what they are.?
Embarcadero should only announce this is FireMonkey for iOS and Android only because FireMonkey for Mac and Windows does not work well in XE4 and XE5, this only works well in XE3 Update 1
Took a day, but there it is
Splash screens were brighter last century

Modelmaker just released XE5 versions oftheir Delphi UML tool (Modelmaker) and their refactoring tool (Code Explorer).

Modelmaker just released XE5 versions oftheir Delphi UML tool (Modelmaker) and their refactoring tool (Code Explorer). Two tools that increase the value of Delphi a lot. You should give it a try if you like UML and look for refactoring possibilities beyond those already included in Delphi. http://www.modelmakertools.com/ http://www.modelmakertools.com/
I recently posted a (longish) text about how to load and interact with an external Java class contained in an APK in XE5 Delphi for Android.  Here is a link to the PDF which might be easier to read (and cut and paste from!).

Take another peek over the Oxygene fence in the Pascal field.

Take another peek over the Oxygene fence in the Pascal field. Originally shared by Jolyon Direnko-Smith Part 4 in the increasingly not so-short series on implementing a camera app for Android using Oxygene.  In this instalment:  Taking a Picture.  AutoFocus.  And ActionBar UI. I think I shall call this my "HitchHikers Guide Trilogy" series. :) Just one more to go.  I promise! http://www.deltics.co.nz/blog/posts/1658
Does anybody know VCL components (for Delphi XE) for working with MS Word, Excel docx, xlsx files - load, view, modify, save? WPCubed has such component only for RTF files, DevExpress can view XLS files.

XE5 - Fun with external Java libraries

XE5 - Fun with external Java libraries So, having been beta testing and now with a live XE5 one of the things I have been tasked to investigate is the modularity available to Android apps - specifically using code written in Eclipse/Android studio in a XE5 Android application. Now, I have to assume a few things here - you are reasonably familiar with delphi AND you can create a library APK yourself.  It’s not hard, honest.  You DO need to be able to create an APK or JAR with a classes.dex AND I am only (for my purposes) interested in talking to a java class which I have code for - its possible to do this without the actual java code but you will need the classes.dex file. You also need to be brave to delve into the world of JNI. Android API To do any of this you have to hit the Android API support functions that are provided, specifically you need; • Androidapi.Jni • Androidapi.JNI.JavaTypes • Androidapi.JNI.Dalvik • Androidapi.JNIBridge • Androidapi.JNI.GraphicsContentViewText • FMX.H

Glad to be here in beautiful Oslo for RAD XE5 world tour seminar.

Image
Glad to be here in beautiful Oslo for RAD XE5 world tour seminar.

Looking for an expanding panel control to hide some optional fields in a form.

Looking for an expanding panel control to hide some optional fields in a form. Something with a header bar and a chevron button would be preferable. Any suggestions?
Looking for an expanding panel control to hide some optional fields in a form. Something with a header bar and a chevron button would be preferable. Any suggestions?

My experimental concept on how RESTful services could be consumed.

My experimental concept on how RESTful services could be consumed. https://code.google.com/p/delphi-oop/wiki/RESTClient1?ts=1379538206&updated=RESTClient1

This is probably me nitpicking as usual, but in an API, which would you prefer?

This is probably me nitpicking as usual, but in an API, which would you prefer? A) TIntegerArray = array of Integer; B) TIntArray = array of Integer; C) Both, aliases for the win! D) None of the above? O_o
Title
Anybody have any issues installing XE5 using the ISO on Windows 8? As you may know, Windows 8 now has the ability to mount the ISO as a CD/.DVD drive.  I tried it like 3 times from the iso, and each time, it couldn't validate the license (after installation was done, but running Rad Studio for the first time).  Then I used the web installer, and it worked.  Just curious.

Hello all, I have one question:

Hello all, I have one question: in my case i want use google maps api in IOS and Android i thought its posible by TWebBrowser but i can't call javascript function or i want use WFS service,  if someone decided this problem please tell me how i can decide this task.

Here we go again RAD XE5 roadshow kicks of in Gothenburg.

Image
Here we go again RAD XE5 roadshow kicks of in Gothenburg.

Originally shared by AppWave

Originally shared by AppWave New Delphi XE5 trial available now on the AppWave Store. Try it at http://embt.co/1eNo4A9 http://embt.co/1eNo4A9

Does anyone think there's hope for DevX and FMX in 2014?

Does anyone think there's hope for DevX and FMX in 2014? http://www.devexpress.com/Support/Center/Question/Details/Q428652

EMBT Forums Down.

EMBT Forums Down. Pinging Marco Cantù and Embarcadero Technologies ! forums.embarcadero.com

A little annoying bug in FireMonkey XE5, selecting text with the mouse in a TEdit does not work, have to use the...

A little annoying bug in FireMonkey XE5, selecting text with the mouse in a TEdit does not work, have to use the keyboard ... In a TMemo it works normally. Tested in the trial version maybe it's fixed in the final version ...

A little annoying bug in FireMonkey XE5, selecting text with the mouse in a TEdit does not work, have to use the keyboard ...

A little annoying bug in FireMonkey XE5, selecting text with the mouse in a TEdit does not work, have to use the keyboard ... In a TMemo it works normally. Tested in the trial version maybe it's fixed in the final version ...

Playing with generics, code to filter items of a given class, using an anonymous procedure. (Already saw FMX.Types TEnumerableFilter used in TListBox, but wanted to do something different).

Playing with generics, code to filter items of a given class, using an anonymous procedure. (Already saw FMX.Types TEnumerableFilter used in TListBox, but wanted to do something different). For example if you have a Form or Control and you want to do something only with its TButton children controls: uses MyFilter; // FireMonkey: procedure TForm1.CheckBox1Change(Sender: TObject); begin   TEnumerableFilter (Children).Find(procedure(Sender:TButton)      begin        Sender.Visible:=CheckBox1.IsChecked;      end); end; // VCL: procedure TForm1.CheckBox1Click(Sender: TObject); begin   Find (procedure(Sender:TButton)      begin        Sender.Visible:=CheckBox1.Checked;      end); end; (The VCL version is a proper "class helper", as its not possible to create class helpers for generic types). The code for FireMonkey: uses   System.Generics.Collections; type   TFindProc =reference to procedure(Sender:F);   TEnumerableFilter =class(TEnumerable )   public     procedure Find(const APro

Official GExperts 1.37 for RAD Studio XE4 released and XE5 version is on its way...

Official GExperts 1.37 for RAD Studio XE4 released and XE5 version is on its way... http://www.gexperts.org/

XE5 event kicks off in Stockholm.

Image
XE5 event kicks off in Stockholm.

Show Notification in System Bar:

Show Notification in System Bar: uses   FMX.Notification; var   FNotificationCenter: FMX.Notification.TNotificationCenter; ... FNotificationCenter := FMX.Notification.TNotificationCenter.Create(Application); ... procedure TTabbedForm.Button1Click(Sender: TObject); var   LNotification: TNotification; begin   LNotification := FNotificationCenter.CreateNotification;   try     LNotification.Name := 'TestNotification';     LNotification.AlertBody := 'AlertBody';     LNotification.AlertAction := 'AlertAction';     LNotification.Number := 1;     LNotification.FireDate := IncSecond(Now, 5);     LNotification.HasAction := False;     FNotificationCenter.PresentNotification(LNotification);   finally     LNotification.Free;   end; end; :) #android   #delphixe5   #xe5   #fmx
someone found how to do an android  "toast" message with delphi xe5?
I'm normally in Oslo for the annual Delphi product launch. This year I happen to be in Prague and just received an email from the organiser telling us to get there early as they have over 330 attendees registered! Are people getting excited about the Android functionality? :o)

Amazing Javascript

Image
Amazing Javascript The script animates it's own source code! #javascript   via Thomas Morffew  Originally shared by Steve Mayne Javascript ASCII-art globe.  If you're not impressed, have a look at the source code! http://aem1k.com/world/

does anybody encounter a Limit on the number of items on Enumerated sets? I cannot put more than 32 items

does anybody encounter a Limit on the number of items on Enumerated sets? I cannot put more than 32 items Edit: Sample Code type   TTablesDef = (tbl1,tbl2,...,tbl33,tbl34);   TTableSet = set of TTablesDef;   TSomeClass = class(TSomeClassAlso)   private     FTables : TTableSet;   public    procedure SomeMethod(someparam:dword) ;    constructor Create(someparam) : override;     destructor Destroy;   end;    procedure TSomeClass.SomeMethod(someparam:dword); begin   FTables := TTableSet(someparam); end;

Documentation Insight 3 Sneak Preview #1

Documentation Insight 3 Sneak Preview #1 http://www.devjetsoftware.com/?p=1275 http://www.devjetsoftware.com/?p=1275

Get Early Access to Documentation Insight 2 with XE5 support.

Get Early Access to Documentation Insight 2 with XE5 support. http://www.devjetsoftware.com/?p=1272 http://www.devjetsoftware.com/?p=1272

For any Delphi developers curious about using Oxygene for Java to target the Android platform.

For any Delphi developers curious about using Oxygene for Java to target the Android platform. Originally shared by Jolyon Direnko-Smith Part 2 in a walk-through of developing the camera app I mentioned recently.  In this post I look at listeners, including how they differ from events in Delphi. http://www.deltics.co.nz/blog/?p=1624

Essentially works, but there is a tiny gotcha...

Essentially works, but there is a tiny gotcha... http://delphitools.info/2013/09/16/dwscript-now-supports-delphi-xe5/

I released new version of Lazy Delphi Builder yesterday.

I released new version of Lazy Delphi Builder yesterday. Originally shared by Lazy Delphi Builder New version released. Several bugs were fixed. New bugs were added. Features: can compile for Win64 and (probably) for OSX platforms. See link for details: http://www.lazyproject.info/en/lazy-delphi-builder-1-9-7-251-15-sep-2013/ http://www.lazyproject.info/en/lazy-delphi-builder-1-9-7-251-15-sep-2013/

GExperts for XE5 Experimental Build

GExperts for XE5 Experimental Build http://delphi.org/2013/09/gexperts-for-xe5-experimental-build/

I'm really loving XE5 and Android. Working with FireMonkey can be a challenge though due to all the new concepts.

I'm really loving XE5 and Android. Working with FireMonkey can be a challenge though due to all the new concepts. Is anybody working on a FireMonkey book, especially one that focuses on mobile apps?

My experience with XE 5 and android not so good parts:

My experience with XE 5 and android not so good parts: 1. When u press run, to slow to see result on emulator or android device. 2. Hello world is like 5-6MB, comparing with eclipse where is my application 124 KB with database. 3.U can use only on new android devices cause u need NEON capabilities, like on Tegra 3 +. Embarcadero forgot to tell us on their delphi-android videos if u planing to start your application on android VM u must check 'Use Host GPU'

Is Delphi xe5 supporting Arabic text?

Image
Is Delphi xe5 supporting Arabic text? In my sgs phone all things running good.. Display,input text in english and/or Arabic ..but with small delphi app I get wrong characters!

Right, load a external APK containing a java library. Got it. Find a class thats defined? Got it. Call some methods. Yup.

Right, load a external APK containing a java library.  Got it.  Find a class thats defined? Got it.  Call some methods.  Yup.  Loving XE5.

What is the fastest way to draw lines in FireMonkey? (thousandths of them)

What is the fastest way to draw lines in FireMonkey? (thousandths of them) The fastest I've found so far is       Canvas.DrawLine(c, p, 1); but it's still about 20 times slower than the same rendering in Chrome Canvas (JS), and twice slower than in VCL TCanvas (but which isn't antialiased) I've tried to use a TPathData and DrawPath, but it's even slower, and "freezes" in DrawPath when there are two many lines (about 10 to 20k)

I still have problems with the Rad XE 5 Android deployment.

I still have problems with the Rad XE 5 Android deployment. Applications don't start on the emulator and I can't seem to hook up the fysical device to the IDE.  Have you guys more luck than me?

Anders Ohlsson posted

Anders Ohlsson  posted  http://delphihacker.blogspot.no/2013/09/wideorbit-is-hiring-delphi-developers.html

Serious Bug in XE5 - texture leaks every screen paint!

Serious Bug in XE5 - texture leaks every screen paint! This applies to all platforms! Take any 3d app sample, helloworld3d, or 3dTextEditor whatever run and see how app EATS GPU memory (use Process Explorer from http://technet.microsoft.com/en-US/sysinternals ) till the OS crash! If you set ReportMemoryLeaksOnShutdown := True; will see TTexture leaks at the end! Posted in qc http://qc.embarcadero.com/wc/qcmain.aspx?d=118923 , but no respond at all! And this problem for all the 3d programs in FM XE5! My XE5 version is 19.0.13476.4176  It take place in Windows 8 x64-32, on my 3 nvidia + intel video cards  How they test FM framework????????????????????

In case that not yet posted ...

In case that not yet posted ... http://forms.embarcadero.com/13Q3RADSurveyWhitepaper http://forms.embarcadero.com/13Q3RADSurveyWhitepaper

Is anyone else having problems burning XE5 to a DVD? It seems the ISO is a hair larger than the 4.7 GB DVD+R blank disks I have in stock. I guess I need to buy some dual-layer blanks.

Is anyone else having problems burning XE5 to a DVD?  It seems the ISO is a hair larger than the 4.7 GB DVD+R blank disks I have in stock.  I guess I need to buy some dual-layer blanks. I hate the web download installer since I have to install on several machines (yes I own 2 licenses) and downloading 19+ GB is not fun over our crappy bonded T1 lines.  I  would also like to have a master archive copy for future reinstalls.
OK, so for someone looking to dive into DSharp and Spring4D, any suggestions? Are any of the Java Spring books worth reading for the concepts? For me, this is one of those situations where I seem always to be busy draining the swamp, and lacking the time to learn these libraries, which would probably simplify some of my work.

TeeChart Pro Beta for RAD XE5 available now, full sources included.

TeeChart Pro Beta for RAD XE5 available now, full sources included. http://www.teechart.net/files/beta/teechart/vcl/TeeChart_VCL_FMX_Beta_2013.htm

Hi! Just installed Delphi XE5. :) Grate.

Hi! Just installed Delphi XE5. :) Grate.  1. Can't find the way to call other activity and get data back from it.  2. make my application to be called as activity by others.  Any Ideas? thanks.

Delphi XE5 Fix list

Delphi XE5 Fix list "272 bugs reported via Quality Central were fixed in RAD Studio XE5". http://dn.embarcadero.com/article/43359

Delphi xe5 - VCL and win32.

Delphi xe5 - VCL and win32. I know that the big news is the xe5 Android, however I wonder if there was some improvement in vcl. Knew that there would be improvements in datasnap but I knew not what. Anyone know anything about this?

Stanford online cryptography course started this monday - https://class.coursera.org/crypto-008 .

Stanford online cryptography course started this monday -  https://class.coursera.org/crypto-008 .

Originally shared by Lars Fosdal

Originally shared by Lars Fosdal Android Application Events There are a few differences between a Windows App and an Android App that puzzled me initially.  Why doesn't my application get FocusChanged Activate/Deactivate or Close when switching between or terminating apps on Android? Turns out that FireMonkey has extra trickery for that in FMX.Platform. You need to hook your own event handler in.   function TBasicAndroidForm.AppEventHandler(AAppEvent: TApplicationEvent; AContext: TObject): Boolean; begin   Result := True;  // Does it matter what result you return?   LogEvent('AppEvent ' + TRttiEnumerationType.GetName (AAppEvent)); end; procedure TBasicAndroidForm.SetupAndroidEventHook; var   ApplicationEventService: IFMXApplicationEventService; begin   if TPlatformServices.Current    .SupportsPlatformService(IFMXApplicationEventService, IInterface(ApplicationEventService))     then ApplicationEventService.SetApplicationEventHandler(AppEventHandler); end; I've attached

Want that app 'to go'? RAD Studio dev tool now supports Android, iOS

http://www.pcworld.co.nz/article/526234/want_app_go_rad_studio_dev_tool_now_supports_android_ios/

Delphi Programming Tutorial #95 - Margins and Padding

http://www.youtube.com/watch?v=puO2XLR0azI
I wonder how many times we must to report same bugs in Embarcadero, because this the second time that I report the same bug that suppose it would be fixed in XE5, but the bug persist in XE5
Not news, judging by the posts here already, but here's my ha'penny's worth.
Is it possible for me to install the XE5 trial on my machine without messing up any of my XE2 setup, if I just disable extension associations?  Because I'm having trouble getting my Android phone hooked up to my VirtualBox vm where I'm testing XE5.

Is full source code included for FMX?

Is full source code included for FMX? Does XE4 or XE5 Enterprise [with mobile support] or Mobile Add-On packs come with full source code for FMX?  By that I mean, if I don't opt for the maintenance support, can I fix framework or FMX components myself and recompile the FMX framework for use with my apps?
Title

RAD Studio XE5 is now GA - Delphi Overview page - http://embt.co/DelphiXE5

RAD Studio XE5 is now GA - Delphi Overview page - http://embt.co/DelphiXE5 http://embt.co/DelphiXE5

Need to report Delphi issues?

Need to report Delphi issues? QC Plus is the better choice. That said -  we should port the whole thing to FireMonkey (Desktop and Mobile) and modernize the UX a bit! Quality Central Web Service documentation http://edn.embarcadero.com/article/33866 http://blogs.embarcadero.com/dclegg/2013/09/02/156#comment-1295

AFAIK, there is no Validation Framework in Delphi, something similar to this

AFAIK, there is no Validation Framework in Delphi, something similar to this http://fluentvalidation.codeplex.com/ Should I (or someone else) create one (even a basic one)  ? http://fluentvalidation.codeplex.com/

GetNumericValue has a very weird behaviour.

GetNumericValue has a very weird behaviour. Consider this code: uses Character; //... procedure TForm1.cxButton1Click(Sender: TObject); var S: String; begin   S := 'Test';   ShowMessage( FloatToStr( GetNumericValue( S [ 1 ] ) ) ); end; It always returns -1 . I am working on Windows 7 x64 - Delphi XE . Anybody experiencing the same? Something obvious I am missing? Regards, A

Fun with generics...

Fun with generics... Well, in Delphi it's a bit hard. I'm used to C++ templates, which allow for much more flexibility. I'm trying to get back into using generics instead of templates, and I could use a bit of help getting out of the box I feel generics trap me in... Here's my attempt at writing a generic Kahan summation algorithm (those of you who read non-tech might recognize it). I've included a toy fixed point type, to make sure it works with custom number types. Now, what I don't like is that due to the Delphi compiler's inept parameter deduction, I have to write mySum := TAlgorithms.Sum (myArray); The declaration of Sum is function Sum >(const A: TArray ): T; Now, here's where I'm rusty... Is there any way to change this code so that I only have to specify one of the parameters, for example mySum := TAlgorithms.Sum (myArray); At least then I wouldn't have to worry about matching two parameters all the time. http://nopaste.dk/p60306

I made the following suggestion to the Delphi Mocks project.

I made the following suggestion to the Delphi Mocks project.   Thoughts? https://github.com/VSoftTechnologies/Delphi-Mocks/issues/13 https://github.com/VSoftTechnologies/Delphi-Mocks/issues/13
Does anyone know of a public PascalScript fork that offers better performance than RemObjects' official copy?
Title

Came across this quote - thought you all might like it:

Came across this quote - thought you all might like it:   "The young man knows the rules, but the old man knows the exceptions." -- Oliver Wendell Holmes, Jr.
I need to build a small app to repair malformed RTF content, as automagically as possible. RTF formatted comments are being imported from an old DB, and some of them have in some way been damaged. The goal is to either convert them to plain text, or to minimally formatted RTF. Any suggestions? Has anyone found any open source RTF parser/fixer tools?
Title

We're excited to announce the initial release of a new set of components for true native Mac OSX application development : TMS mCL v1.0

Image
We're excited to announce the initial release of a new set of components for true native Mac OSX application development : TMS mCL v1.0 No compromises: finally a 100% Mac OS-X look and feel! Download the fully functional trial version from our website now: http://www.tmssoftware.com/site/tmsmcl.asp

Blog post "Pizza Time: Azure Data on Android with Delphi" at http://blog.marcocantu.com/blog/pizza_azure_data_android_delphi.html

Blog post "Pizza Time: Azure Data on Android with Delphi" at http://blog.marcocantu.com/blog/pizza_azure_data_android_delphi.html http://blog.marcocantu.com/blog/pizza_azure_data_android_delphi.html

I have a (third-party) visual component for which I would like to make a general fix in the form of a class helper method. Can I:

I have a (third-party) visual component for which I would like to make a general fix in the form of a class helper method. Can I: a) hide an existing method of the component with a helper of the same name and  b) gain access to the original method within the helper by qualifying with Self.?

Using IOCP for Worker Threads - DelphiTools.info

http://delphitools.info/2013/09/03/using-iocp-for-worker-threads/

If you are interested in smoothing data, I've written a small program showing how to smooth measured data. More on that can be found here: http://delphi-bits.blogspot.co.at/2013/09/smoothing-data.html

If you are interested in smoothing data, I've written a small program showing how to smooth measured data. More on that can be found here: http://delphi-bits.blogspot.co.at/2013/09/smoothing-data.html

anyone else ran into the following situation in Delphi 2010 or newer?

anyone else ran into the following situation in Delphi 2010 or newer? I have a TActionList on a data module, whenever I double-click it, it should open the action list editor, however, that's not always the case. If IDE is freshly started, the action list editor behaves, however, after I edit a main menu or popup menu, the action list editor no longer pops up as expected, it doesn't matter if I double-click it or invoke it with it's pop-up menu. It would be nice if any of you have some idea on how to solve this without having to restart the IDE each time I need to edit the friggin' actions.... If I add another TActionList on the data module or copy-paste the problematic one, it will properly invoke the action list editor, which is extremely weird Thank you!

Delphi XE5 Mobile REST Client Demo

http://www.youtube.com/watch?v=OkRVbgF4VMI