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

Transfer license to another computer

$
0
0

In order to test Delphi Tokyo version 10.2.1,
I downloaded and installed it on a virtual machine. I have tried delphi tokyo and I see that everything is going very well, so now I want to install on the work computer to migrate the projects to that version. The question is: Can I use the same license with which to install in the virtual machine? If so, how can I transfer my work computer license?

regards


TListBox does not seem to be working correctly

$
0
0

I have a ListBox that closes on the OnMouseLeave Event. There is also a slider that appears after I have populated the list box with my items. When i try to use the slider the ListBox closes. I dont understand why the event is being triggered when im just using the slider that is part of the ListBox.

Ribbon action switches from Left click to rights click by autoscaling

$
0
0

Hello,

In our Application we got the problem that the handling of the action trigger changes depending to the Group level in the Ribbon. If a group is autoscaled it can happen that the Action is no longer triggered by left clicking the ribbon item but only by right clicking.

normal trigger                 after scaling

Has someone a solution to keep the action always triggered by left-click?

JEDI jcl don't create any kind of code, neither bpl nor others when installing for Delphi Berlin Starter :-(

$
0
0

Downloaded source from the repository and used Delphi Berlin to run compiler and checked for specific installation for Delphi 10.1 32. bits.   Installer goes ok, but, when checkin for any new bpl files, no one was generated. I use the first version of Delphi starter if that could be the case.   No errors was generated, only success reported   any suggestion why the filles disappeared, I also tried install using my admin account, but no success. No bpl, no dcu and no dcp files was generated, even the installer reported all done.

Internal error on Send Report

$
0
0

Error sending report.

When I have a IDE error, I send report. But in C++Builder 10.2.1 I can't send the report. I have the error in attached image.

I think the 10.2.1 version of this IDE is a bit buggy. For exapmple try it to use IDE in 1290 x 1080 px screen resolution and you will see windows with text not aligned.

I need also some crash when I compile old projects.

 

Regards

 

Emanuele Coli

 

How to Capture the Enter Key of a TEdit ? FireMonkey

$
0
0

How to capture the enter key of a TEdit with the KeyboardType: Alphabet ?

I can capture when the keyboardtype is as numberPad, however when it is like Alphabet, I can not capture the enter key.

Application.OnIdle in Android app (RAD Studio 10.2.1)

$
0
0

 

Behaviour of Application.OnIdle changed in the last version of RAD Studio.

Previous version (10.2.0) called this event actually when FireMonkey application becomes idle. Application created in version 10.2.1 calls this event only when renovation of form is needed.

 

"Character set" project setting

$
0
0
Under Project Options->C++ (Shared Options), I have set "_TCHAR maps to: char", but when I compile I get this error "E2342 Type mismatch in parameter 'Text' (wanted 'const wchar_t *', got 'const char *')" when using:
 
Application->MessageBoxA( "message content", "This is the title", MB_OK);
 
 
Somehow, _TCHAR is still mapping to "wchar_t" even though I've set it to "char".
 
I'm using RAD Studio 10.2 on Windows 10. I'm attempting to build a VCL Forms Application. This is the relevant documentation link: http://docwiki.embarcadero.com/RADStudio/Tokyo/en/C%2B%2B_(Shared_Options)
 
Thank you, 
 
Marco

[Tokyo] Did styles change radically?

$
0
0

Hi,

I recompiled some apps on which I used the Jet and the Diamond styles 
on iOS and Android.
The TSwitches where fine in Seattle, a little round button to switch on 
and off (left and right)

Now with Berlin and Tokyo, the same styles, those are big ugly square 
switches, much bigger than the ones under Seattle.
Even if I copy back the original Seattle Styles, it looks like the original design is ignored.
No matter what I do: controlType to Styled or Platform.

Any way to avoid this? Besides editing the styles one by one?

Steve JORDI - MSc in Geophysics/Volcanology
Geneva, Switzerland / Portland, OR, USA

unable to load dcllib240.bpl

$
0
0

I had to reinstall Delphi 10.1. Berlin I have a message "unable to load dcllib240.bpl". Indeed, this file does not appear any more on my hard disk. Please tell me which part of the IDE I have wrongly reinstalled. Kind regards   Joël  

Getting an IOS screenshot from your C++ Builder app

$
0
0

I have been publishing an ios app on appstore for some years now, but my latest version were refused by Apple because I didn't have proper screenshots from different apple devices. 

Since the app is built with C++ Builder, I cannot run the app on the simulator because it's only for Delphi. So whats the best way to get screenshots from iPhone, iPhone5, Iphone 6+ and iPad Pro if you don't want to buy all the hardware and all your friends uses Androids?

Can I export the FMX-file to an Delphi project just to capture some screenshots with the simulator?

 

Closing a "stay on top" splash screen results in undrawn controls

$
0
0

I have a splash screen that is set to fsStayOnTop during the load process. I do this to avoid the user seeing multi forms being created and docked into the final interface. 

The problem is that after I close the splash screen many of the controls on the main form are not drawn. This only appears to be a problem on some systems and I cannot reproduce the issue in the IDE. Below is a screen shot of the problem. As the end user moves the mouse over each button they get redrawn.

Currently on the destroy event of the splash screen I do an "Invalidate" on everything and this I thought had solved it but its still being seen on some systems. 
Any suggestions for this problem would be appreciated.

Delphi 10.2 Tokyo - Update 1

Screen Shot

Martin

std::isfinite(x)

$
0
0

I have been investigating the Armadillo: C++ linear algebra library using the 64-bit compiler.

Armadillo makes use of std::isfinite(x) for C++11 compilers. But std::isfinite(x) is not available

in Rad Studio 10.2 Tokyo. Why is this so?

Objects added to TVertScrollbox - problem in scrolling

$
0
0

I'm using a TVertScrollBox and i add some objects from code (TFrame with a Layout and three Label inside). The objects appear correctly, but when I move the scroller, the position of some labels, font size and bold status change in a random way. This happens in the same manner on Win32 and on Android.
The problem doesn't appear if i add manually (but is unuseful for my application) the Frames with the designer, inside the ide.
Someone can help me? Where is my mistake?
Thank you
Fabio


A fragment of my code, used for test. I assign Parent property of the Frame to the VertScrollBox. I have tryed the InsertComponent method too, but with no result.

...
arr : array[0..50] of TFrameValue;


...
procedure TForm1.FormShow(Sender: TObject);
var
  i : integer;
begin
  VertScrollBox1.BeginUpdate;
  for i := 0 to 20 do
    begin
      arr[i] := TFrameValue.Create(nil);
      arr[i].Parent := VertScrollBox1;
      arr[i].Name := Format('frame%d',[i]);
      arr[i].Align := TAlignLayout.Top;
      //VertScrollBox1.InsertComponent(arr[i]);
    end;
  VertScrollBox1.EndUpdate;
end;

Several notes after update RAD Studio to the recent 10.2.1

$
0
0

 

I've updated RAD Studio 10.2 to the recent 10.2.1 release. I found out strange behaviour of last version RAD Studio which is different from RAD Studio 10.1. All notes are valid for Android platform.

 

  • Method “Application.Run” in DPR file should call main message loop and program should wait for terminate message. But it is not right because calling Application.Run does not stop stepping code in debug mode.

  • During creation and showing form are called events: FormCreate, FormShow, FormActivate. I always supposed that event FormActivate should be called when form is visible. It is not true for platform Android. Handler of event FormActivate is called but form is not visible.

  • FMX form has event which is created when virtual keyboard is showed (FormVirtualKeyboardShown) and when keyboard is hidden (FormVirtualKeyboardHidden). Both event handlers get same parameter Bounds which describes size of keyboard. Height of Bounds is correct only for handler FormVirtualKeyboardHidden. Handler FormVirtualKeyboardShown gets invalid height of parameter Bounds (in my case 24).

 


Code insight for #include

$
0
0

Hello my programmers friends, I use the C ++ Builder Starter in my case I'm using Windows 10 Pro.Except that the code insight shortcut is not working for #include CTRL+SPACE What configuration do I have to use to list the classes of all systems?Thank you in advance.

Error FireDac, TFDBatchMove, CommitCount

$
0
0

I need to do the transaction management, but:

Help TFDBatchMove.CommitCount:

"The CommitCount property is set to 100 by default. Setting CommitCount to 0 disables transaction handling." 

<**< zero disables transaction handling >**>

 

Code:

BatchMove.CommitCount:= 0;

 

Compiling, ok

 

Execute program, error:

"[FireDAC][Comp][DM]-611. CommitCount must be greater than zero"

 

 

Thanks

Why TAddressBook is not showing the contacts of my phone

$
0
0

I'm trying to use TAddressBook in my project. Unfortunately it does not display the contacts present on my Android phone. I followed the steps in the docwiki, but with no success. The example that comes with C++ Builder works the same way, also not showing anything.

Property error: TFDBatchMove.CommitCount

$
0
0

The help says:

"Specifies how many records are batch moved before a commit occurs.

The CommitCount property is set to 100 by default. Setting CommitCount to 0 disables transaction handling. "  

*** 0 disables transaction handling. ***

 

Code:

BatchMove.CommitCount:= 0;

 

Execute:

Error: [FireDAC][Comp][DM]-611. CommitCount must be greater than zero  TFDBatchMove

 

I need to handle manual transaction.

Thank

Delphi Project UI Flicker

$
0
0

We have a couple of Delphi developed applications (Win32). Recent complaint from the users is that there is substantial UI flickering on Windows 10 when the Group Policies are being pushed to the PC. Sometimes it lasts for about 30 seconds and it does not allow the user to properly access the application.

Group policies by default are pushed every 60-90 minutes, to replicate the behavior just run "gpupdate /force" in a command prompt when you're on a windows domain. Even the Delphi IDE (10.1) does it.

Newer windows applications are not affected by this and it did not happen in Windows 7.

Any ideas on how to correct this?

Thanks in advance.

Viewing all 1888 articles
Browse latest View live