Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all 3212 articles
Browse latest View live

Berlin 10.1 Update 1 ListView UpdateObjects event

$
0
0

Hi,

I have noted when an app orientation changes, the TextLabels created on ListView1UpdateObjects values are getting lost (disappear)
(but the Text values populated via Livebinding are remains there).

This was not the case with Seattle. ie. TextLabels created on ListView1UpdateObjects values are also remains there after orientation changes.

(ListView ItemAppearance was set to ImageListItem in both versions of Delphi for this test app).

Any workaround to fix this issue?

Thank you,
Jey


TFDMemTable raise the error "Could not convert variant of type (Null) into type (Integer)"

$
0
0

create table t1([id1] [int] identity(1,1) not null, [s] [varchar](50))

create table t2([id2] [int] null)

insert into t1 (s) values('s')

insert into t2 (id2) values(1)

 

procedure TForm8.Button1Click(Sender: TObject);

begin

  FDQuery1.SQL.Text := 'select t1.id1 from t2 left join t1  on t1.id1=t2.id2';

  FDQuery1.Open;

  FDQuery1.SaveToFile('c:\a.txt', sfXML);

  FDMemTable1.LoadFromFile('c:\a.txt', sfXML); --raises "Could not convert variant of type (Null) into type (Integer)"

end;

 

The content of "c:\a.txt":

Column Name="id1" SourceName="id1" SourceID="1" DataType="Int32" Precision="10" Searchable="True" AllowNull="True" ReadOnly="True" AutoInc="True" Base="True" AutoIncrementSeed="-1" AutoIncrementStep="1" OAllowNull="True" OInWhere="True" OAfterInsChanged="True" OriginColName="id1" SourcePrecision="10"

If I delete or change AutoIncrementStep="-1" to AutoIncrementStep="1", then "FDMemTable1.LoadFromFile" works perfectly for me.

Right to Left Support in Firemonkey

$
0
0

is Bidi support in firemonkey planned?

any timeframe?

future version expected?

Issue Deploying iPad View in 10.1 Berlin..

$
0
0

My project in Delphi Berlin 10.1 has additional views for iPhone 4", iPhone 4.7", iPad and Android 4" which are declared as follows:

implementation

{$R *.fmx}
{$R *.iPad.fmx IOS}
{$R *.iPhone4in.fmx IOS}
{$R *.iPhone47in.fmx IOS}
{$R *.NmXhdpiPh.fmx ANDROID}

All render perfectly except for the iPad which which doesn't seem to make a difference on both the iOS simulator and the actual devices (tried on both iPad2 and iPad4).

The app is deployed and displayed in the iPhone view which is simply scaled up (X2). It seems like the iPad View is not detected and the Master View is displayed instead. I have tried deleting and recreating the views as well as ensure that everything is setup properly.

Not sure if I'm missing a step in creating ipad views or is this possibly a bug in 10.1 Berlin?

 

How do I convert TPresentationProxyFactory.Current.Register to C++ Builder

$
0
0

I am trying to subclass TCustomEdit __fastcall TAltorFMXEdit::TAltorFMXEdit(TComponent* Owner)    : TCustomEdit(Owner) I have added : __fastcall TStyledAltorEdit::TStyledAltorEdit(TComponent* Owner){}

//---------------------------------------------------------------------------

__fastcall TStyledAltorEdit::~TStyledAltorEdit()

System::TObject* __fastcall TStyleAltorEditProxy::CreateReceiver(void){return new  TStyledAltorEdit(NULL);}

Now I believe I need to register TStyleAltorEditProxy

In delphi: initialization  RegisterAliases;  TPresentationProxyFactory.Current.Register(TEdit, TControlType.Styled, TStyledPresentationProxy);

finalization  TPresentationProxyFactory.Current.Unregister(TEdit, TControlType.Styled, TStyledPresentationProxy);  UnregisterAliases;end.

Question? How and where do I register and unregister in C++ Builder Berlin Update 1. Al.

In HTML5 builder - how to change the FORM method from POST to GET?

$
0
0

In HTML5 Builder,  how can I change the data transfer method of a form, from POST to GET?   (I need my pages to have different addresses, but they all come as unit1, though have different content.  In generated HTML - the form method defined as "POST". How to change it for GET (command line parameters)?

To Sarina D.

$
0
0

Dear Sarina, 

Sorry to write you at this way, i tis not possible to post comment to Your article, I guess some bug at the website. 

May i ask if You could update this article, with:

1. How could we draw a continues line with when the location info is changing (user is moving), like a tracking thing?

2. How could we add a small image in the marker?

3. How could we cache a given size area of the map, so it could be used even offline?

BIG BIG thank you for your time, kindness and help,

Moore

PS: personal dream : would be so great if an xample like this could have C++ Builder version too ? (I know that Delphi is very similar, but sometimes for an amateur like myself is pretty hard to "convert" between Delphi example and C++ Builder. 

Android Splash Screen Image Orientation in Delphi

$
0
0

I am finally getting around to deploying an Android app.  I have run into an issue with the splash screen images.  Everything works, except the required splash images in Project/Options are landscape, but landscape images don't behave properly at runtime (position & scaling are all wrong).  The visuals at runtime suggested that portrait images are actually required.  So I went ahead and created portrait images, and renamed them to match the landscape file names (to fool the IDE, which won't allow portrait images).  The portrait images work perfectly.

So... could I be doing something wrong to cause this problem, or is this a known issue?  It's weird because the specs in the Android docs match the requirements of the Delphi IDE, so it appears to me that the IDE is just doing what it is supposed to do.  Which leads me to believe that I am missing something very basic. But the behavior at runtime suggests otherwise.

Any brief explanation would be greatly appreciated.


STL's string could not allocate memory

$
0
0

Dear all, Good day or night!   Did anyone have troubles with memory allocation for std::string? Actually this could happen with any other type, not a string only. This happens when I take a substring (substr method). It worked all the time on taking substrings from millions or billions of strings, but now it could not and a kind of memory allocation error appears. The arguments are ok, no problems from this part. My program is constantly increasing the number of objects involved in it. And now when I started to add more objects this error happened. For the time being I'm not using multithreading and in memory my program took around 1.8 GB. Computer's parameters are: Physical memory (available): 26239 MB, Number of CPUs: 24, . With such configuration memory allocation should not be a problem at all. Maybe I should use multithreading in order to solve this problem?   Thank you in advance for any help or suggestion.   Regards, Bakhtiyar  

STL's string could not allocate memory

$
0
0

Dear all, Good day or night! Did anyone have troubles with memory allocation for std::string? Actually this could happen with any other type, not a string only. This happens when I take a substring (substr method). It worked all the time on taking substrings from millions or billions of strings, but now it could not and a kind of memory allocation error appears. The arguments are ok, no problems from this part. My program is constantly increasing the number of objects involved in it. And now when I started to add more objects this error happened. For the time being I'm not using multithreading and in memory my program took around 1.8 GB. Computer's parameters are: Physical memory (available): 26239 MB, Number of CPUs: 24. With such configuration memory allocation should not be a problem at all. Maybe I should use multithreading in order to solve this problem? Thank you in advance for any help or suggestion. Regards, Bakhtiyar  

Why has Delphi Starter dissapeared after I installed C++ Builder Berlin Update 1 Professional?

$
0
0

The installer removed the Delphi personality from the IDE, something which I actually needed to recompile the third party components I use! I don't know how to use command compiler.

 

Why does it remove an installed option? It placed a RAD Studio icon on my desktop, but says Delphi Personality not installed.

 

If I use the Platforms and Extensions manager, Delphi no longer appears?

 

I have spent 2 days trying to get a solution, completely uninstalling RAD Studio, and then installing Delphi Starter to try compile components, then removing RAD Studio to install C++Builder professional, and then failing to install .dpk because Delphi not installed!

 

ARRRRGGGHHH!

 

 

E2003 Undeklarierter Bezeichner: 'Synchronize'S

$
0
0

E2003 Undeklarierter Bezeichner: 'Synchronize' what can i do

App Crash with IFMXPhotoLibrary Delphi XE 10.1

$
0
0

I have problem to develop iOS app with Delphi XE 10.1. My app will crash when click on save image (save to camera roll) by use IFMXPhotoLibrary. 

It happened only with iPad 4 iOS 10.0.2, But When I try with iPad 2 iOS 9.3.5 It can work with no problem.

Below is source code:

if TPlatformServices.Current.SupportsPlatformService(IFMXPhotoLibrary, Service) then
Service.AddImageToSavedPhotosAlbum(imageMain.Bitmap);

ライセンス認証の上限で登録できなくりました

$
0
0

導入PCが調子悪くリカバリ・PC交換を何回も処置しておりました。上記のようなのが発生した場合に、毎回手続きを取らなくてはならないのでしょうか? ある程度上限回数を増やして頂くことは可能でしょうか? 交換したPC等については、ソフトはアンインストールを実施しています。

Delphi Berlin - Listview (A-Z headers duplicate)

$
0
0

Hi,

In Delphi Seattle I was able to add A-Z headers to my list view using Livebindings and FillHeaderCustomFormat = Substring(%s,0,1).

After upgrading to Delphi Berlin the A-Z headers will no longer group together in groups. Instead of having one header with the first letter of the text of the item - I now have one header per Item, ergo, the items are no longer group under the same header.

The following picture shows my problem:

What am I doing wrong?

 

Best regards

Jacob


Berlin 10.1 Update 1 ListView UpdateObjects event

$
0
0

Hi,

I have noted when an app orientation changes, the TextLabels created on ListView1UpdateObjects values are getting lost (disappear)
(but the Text values populated via Livebinding are remains there).

This was not the case with Seattle. ie. TextLabels created on ListView1UpdateObjects values are also remains there after orientation changes.

(ListView ItemAppearance was set to ImageListItem in both versions of Delphi for this test app).

Any workaround to fix this issue?

Thank you,
Jey

TFDMemTable raise the error "Could not convert variant of type (Null) into type (Integer)"

$
0
0

create table t1([id1] [int] identity(1,1) not null, [s] [varchar](50))

create table t2([id2] [int] null)

insert into t1 (s) values('s')

insert into t2 (id2) values(1)

 

procedure TForm8.Button1Click(Sender: TObject);

begin

  FDQuery1.SQL.Text := 'select t1.id1 from t2 left join t1  on t1.id1=t2.id2';

  FDQuery1.Open;

  FDQuery1.SaveToFile('c:\a.txt', sfXML);

  FDMemTable1.LoadFromFile('c:\a.txt', sfXML); --raises "Could not convert variant of type (Null) into type (Integer)"

end;

 

The content of "c:\a.txt":

Column Name="id1" SourceName="id1" SourceID="1" DataType="Int32" Precision="10" Searchable="True" AllowNull="True" ReadOnly="True" AutoInc="True" Base="True" AutoIncrementSeed="-1" AutoIncrementStep="1" OAllowNull="True" OInWhere="True" OAfterInsChanged="True" OriginColName="id1" SourcePrecision="10"

If I delete or change AutoIncrementStep="-1" to AutoIncrementStep="1", then "FDMemTable1.LoadFromFile" works perfectly for me.

Right to Left Support in Firemonkey

$
0
0

is Bidi support in firemonkey planned?

any timeframe?

future version expected?

Issue Deploying iPad View in 10.1 Berlin..

$
0
0

My project in Delphi Berlin 10.1 has additional views for iPhone 4", iPhone 4.7", iPad and Android 4" which are declared as follows:

implementation

{$R *.fmx}
{$R *.iPad.fmx IOS}
{$R *.iPhone4in.fmx IOS}
{$R *.iPhone47in.fmx IOS}
{$R *.NmXhdpiPh.fmx ANDROID}

All render perfectly except for the iPad which which doesn't seem to make a difference on both the iOS simulator and the actual devices (tried on both iPad2 and iPad4).

The app is deployed and displayed in the iPhone view which is simply scaled up (X2). It seems like the iPad View is not detected and the Master View is displayed instead. I have tried deleting and recreating the views as well as ensure that everything is setup properly.

Not sure if I'm missing a step in creating ipad views or is this possibly a bug in 10.1 Berlin?

 

How do I convert TPresentationProxyFactory.Current.Register to C++ Builder

$
0
0

I am trying to subclass TCustomEdit __fastcall TAltorFMXEdit::TAltorFMXEdit(TComponent* Owner)    : TCustomEdit(Owner) I have added : __fastcall TStyledAltorEdit::TStyledAltorEdit(TComponent* Owner){}

//---------------------------------------------------------------------------

__fastcall TStyledAltorEdit::~TStyledAltorEdit()

System::TObject* __fastcall TStyleAltorEditProxy::CreateReceiver(void){return new  TStyledAltorEdit(NULL);}

Now I believe I need to register TStyleAltorEditProxy

In delphi: initialization  RegisterAliases;  TPresentationProxyFactory.Current.Register(TEdit, TControlType.Styled, TStyledPresentationProxy);

finalization  TPresentationProxyFactory.Current.Unregister(TEdit, TControlType.Styled, TStyledPresentationProxy);  UnregisterAliases;end.

Question? How and where do I register and unregister in C++ Builder Berlin Update 1. Al.

Viewing all 3212 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>