Jan Blomqvist

Member since: Thursday, 28 May 2015
Last login: 4 years ago
Profile viewed: 2,216 views

Your Rank: 64
Points: 30

Robert B10508 is friends with Jan Blomqvist

Jan Blomqvist created a new topic ' How can I have a TFrame depending on a TDatamodule' in the forum. 5 years ago

A Mobile MultiDevice application.
I want do develop many applications with a similar look and feel, so I have assumed that making the main TabControl from a TFrame is the best way to do this. I can change graphics and colors on each separate App, but the code behind is the same.
However when the Frame is Initialized (my call), to create the TDataModule
procedure TMyFramer.Initialize;
begin
if not Assigned(MyDataModule) then [size= 12.16px; line-height: 15.808px]MyDataModule[/size][size= 12.16px; line-height: 1.3em].DataModuleCreate(self); {???}[/size]
end;

procedure TMyDataModule.DataModuleCreate(Sender: TObject);
var
SettingsFile : string;
begin
SettingsFile := TPath.Combine(TPath.GetDocumentsPath,'settings.ini');
FSettings := TIniFile.Create(SettingsFile); CRASH!!!

How should I handle the TDataModule from within a TFrame?
Thanks,
Jan

Read More...

Jan Blomqvist started a new discussion Distribute iOS AdHoc App for t... 6 years ago

Has anyone successfully deployed an AdHoc App using the 'wireless distribution model'? So that the test user only has a link on a webpage to download the App.ipa. I have found this site (http://www.diawi.com), but I am not sure what they mean by ‘provioning profile file’, which is the ‘provisioning’ file in the Embarcadero release folder? ...

Jan Blomqvist added a reply in discussion Other TabControl transitions t... 6 years ago

Thanks Paul! Any chance you might share some of that code.? How to copy a form to an Image. How to use an animation for the Flip transition. The sample code (even though its using D.P.F) might reveal how I should do it? Jan...

Jan Blomqvist started a new discussion Other TabControl transitions t... 6 years ago

How can I accomplish other Transition effects when changing Tabs (to the user more like change form). I want: Flip (like turning around and showing the backside) SlideUp, SlideDown I guess that some kind of animation should be used, but I need examples. And the same when changing between forms (Flip, SlideUp, SlideDown). Thanks Jan...

Jan Blomqvist added a reply in discussion How can TListViewItem in TList... 6 years ago

Hello Luis, It did'nt work in my scenario. Is there a place were we can exchange files (test project)? Kind regards, Jan...

Jan Blomqvist added a reply in discussion How can TListViewItem in TList... 6 years ago

Sarina: I would like a routine that calculate the Item height based on font and real text(character) height. Any technician at Embarcadero that could give you a hint how that should be solved? Luis: Yes, it works ok in Windows, but on my iPhone 5 it calculate wrong, so all the text is not do not fit in the reserved height. And I do not know ...

Jan Blomqvist started a new discussion How can TListViewItem in TList... 6 years ago

MakeTListViewItem change the height depending on text length. How can aTListViewItemautomatically change its height so that all text in Text or Detail can be shown in the Item. I have found one example here, but it does not work for me: http://www.dfwlt.com/forum.php?mod=viewthread&tid=1796 Link ...

Jan Blomqvist added a reply in discussion Deploying SQLite database (on... 6 years ago

It worked when the database file is added using Project -> 'Add to project'. The Deployment is then automatically and correctly filled in for both IOS and Android. Instructions here:http://docwiki.embarcadero.com/RADStudio/XE7/en/Mobile_Tutorial:_Using_FireDAC_and_SQLite_(iOS_and_Android) Read section under: "Setting up Your Databas...

Jan Blomqvist is now ranked up to New Member... ! 6 years ago
Jan Blomqvist started a new discussion Deploying SQLite database (on... 6 years ago

It seems deploying database files (SQLite) to Iphone (IOS 8.1.2) fails to include the database file. I have also tested to include a simple text file, but it is not found on device after deployment. The App works fine on Windows, but not on IOS. In FDConnection.BeforeConnect() S := TPath.Combine(TPath.GetDocumentsPath, 'Employees.db'); if ...