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

Delphi 10.1 and Android development using an Android emulator?

$
0
0

I have upgraded from Delphi XE to Berlin 10.1 hoping to be able to prove the concept of multi-target development. Rather disappointingly I find I now have to have a MAC to be able to deliver any app to an iPad and I cannot seem to find any installed emulation for any Android devices. 

A lot of answers relating to Android emulation seem to imply that older RAD Studio installs provided an environment in which you could use an Android emulator but although I see various Android devices as being 'available', in the Target Platforms (Android) Project area , there are no items listed in the 'Target' folder. Do you have to physically add an Android device connected via USB to see the results of any development you create in Delphi 10.1?

I hope this isn't posted in the wrong area and please accept my apologies if it is. Please could someone guide me?


Future of CodeSite

$
0
0

Hi,

What are your plans for CodeSite? Will there be continued development? Will Visual Studio support be maintained going forward?

Thanks....

 

ADT no longer developed by Google?

$
0
0

Hello,   Since Google stopped maintenance of ADT: how will this affect Android development with Delphi? Are there any suggestions how to continues Android development   Kind regards G.

Bad behaviour changing the device orientation

$
0
0

Hello,

I'm trying the C++ Builder for mobile development, but at the first samples that I've run, or even making a project from the scratch and adding to it any control with the Align = Client (I've tried to use the controls inside layouts, tabs, etc. as well), it does not realign the screen when you tilt the device at times. The width of the screen remains the same and sometimes the center changes as well. When the center changes the touch position have it's correct center, in this case it's a visual offset only. Is it a known issue? There is a workaround?

Correct image Bad image Uncentered client

(The number on the bottom button is the width of the Form)

 

Also, I can't fit the Client content with the status bar, the Client always uses all the screen and the status bar cover its content... Any tip to adjust it?

Status bar over the client

 

I don't know if it occurs only because I'm using the C++Builder instead Delphi... My current environment for the project:
Embarcadero® C++Builder 10.1 Berlin
Android SDK: Android N (API 24), SDK Tools 24.3.3
Devices: Asus ZenFone 2 with Android 5.0, Moto Maxx with Android 5.0.2

Thanks!


PS.: as I wrote to much, the TL;DR is marked in bold :)

BDS 2006 License server crashed

$
0
0

Dear Team,

We are working on BDS 2006 for our application development for the last 8 years. our company has procured a 5 user license from Borland (code gear not sure). License server crashed and we are unable to open  BDS 2006 due to license verification failure.

Kindly let us know the details you require to assist us in deploying the license server.

Regards,

Ramesh

 

 

WINXCTRLS.RES

$
0
0

Hi,

I get this, is there anything I can do?

[ilink32 Error] Error: RLINK32: Unsupported 16bit resource in file "C:\PROGRAM FILES (X86)\EMBARCADERO\STUDIO\18.0\LIB\WIN32\RELEASE\WINXCTRLS.RES"

Steve

Code Insight not working with Android target

$
0
0

I am developing an Android app - when the target is 32-bit Windows, Code Insight works just fine, but when I set the Target to be an Android device, Code Insight does not work at all. Is there a fix please?

PAServer can't work

$
0
0

Hi, I has C++ builer Berlin installed in my computer. This days, I update C++ builder to RAD Studio because I need Delphi. But after installed RAD Studio the PAServer can't connect any more. I get "ElnvalidPointer:Invalid pointer operation" message when I press "Test Connection" Button. I can't connect to Win64 PC or MAC OSX. All I get is ElnvalidPointer. How can I solve this issue? Thanks Eric  


Custom Cursor on Firemonky

$
0
0

I'm trying to determine if there is anyway in firemonkey to use a custom cursor on an object. I'd like to be able to use a flat hand cursor when over an image that can be panned, but cannot find anyway to use a cursor outside the standard set provide. Thanks in advance for any information.

How to simulate key down under Delphi FMX

$
0
0

 how to simulate key down

  var Key: Word;  KeyChar: Char;

 begin

   // under FMX how to simulate key down

    // input '-' to Edit1

    Edit1.SetFocus;

    key:=0;

    KeyChar:='-';

    if Assigned(Focused) then

       Focused.KeyDown(Key, KeyChar, []);

 

    // input '-' to TNumberBox

    NumberBox1.SetFocus;

    key:=0;

    KeyChar:='-';

    NumberBox1.SelectAll;  // in order to replace current value 0

    if Assigned(Focused) then

       Focused.KeyDown(Key, KeyChar, []);

//    // Click / press CornerButton3

//    CornerButton3.SetFocus;

//    key:=vkReturn;

//    KeyChar:=#0;

//    if Assigned(Focused) then

//       Focused.KeyDown(Key, KeyChar, []);

 

RAD Studio 10 Delphi FMX project compiled in Studio 10.1 creates access violation.

$
0
0

I have a Delphi Multi platform FMX project that compiles fine in Studio 10 and runs fine on all target platforms. Windows, OSX and Android is tested so far. The project uses Styling.

When I open the project in Studio 10.1 and compile it everything seems fine. When running it in Windows the Combo Boxes do not open. If I remove the styling the Combo Boxes works as they should but when I close the application I get Access violation error. This is traceable back to the WebBrowser component. The access violation occurs in procedure TCustomWebBrowser.FormHandleDestroyed(const Sender: TObject; const Msg: TMessage) in FMX.WebBrowser. This happens even if I never accessed the WebBrowser component in my code.

Is there anything special I need to do when moving a Delphi project from Studio 10 to Studio 10.1?

I have made sure to make the RAD Studio installation on a completely clean machine. It has Windows 10, 16 GB RAM, 500 GB SSD, AMD FX-4100 processor and Radeon HD 6450 Graphics.

Debugger not working on Android devices with OS Version 6.0.1

$
0
0

Debugging on android-devices worked perfectly until the operating system was updated to 6.0.1. Now, when I launch the app, the compiler gets stuck at "launching ...", the application actually runs on the device, but I am unable to set breakpoints, inspect memory or whatever. When I close the compiler box there is an error message "unable to start start gdbserver on port 64311, port already in use". I already restarted the device, I tried several "tricks" from various forums, but no success.

Does anybody have a working solution?

I tested with a Nexus 5 and with Samsung S7; both have the same problem.

No platform available for current project.

$
0
0

Hi!

 

I have installed Trial Berlin 10.1 versiion

 

After that i get Professional lisence and add platforms via Platforms and Extensions Manager /

 

But get the same errors. when try to crate new project /No platform available for current project.

Why ? and what should i do to fix this error.

I have been trying to open project and compile but get rreor  Compiler for personality "Delphi.Personality" and platform "Win32" missing or unavailable.

Converting my apps from Delphi Seatle to Berlin need help with the new MessageDialog setup

$
0
0

I am looking for an example on how to setup TDialogService.MessageDialog

I need to convert the fmx messagedlg to messagedialog since I am getting this:[DCC Warning] MainFormU.pas(169): W1000 Symbol 'MessageDlg' is deprecated: 'Use FMX.DialogService methods'

 

Thanks

Garnett

Missing export filters in FastReport FMX 2.2.1 embarcadero edition

$
0
0

Hi,

I have installed FastReport FMX 2.2.1 for Delphi 10 Seattle on a windows 7 machine.
I have downloaded it from the "registered user downloads" section of the EDN.

Now I am trying to export a generated report from my application at runtime.
What I have understood so far, I need to drop a export filter on the form and use it as a parameter for the export method of the report view

But I can not find any export filter components.
So I tried to create a export filer object at runtime, but the IDE does not find any export filter classes.

I have uninstalled/installed FastReport a couple of times, but that does not solve the problem.

I guess its a problem with my system, but just to be sure, have anyone successfully used the export filters with Delphi 10 Seattle (FMX)?

Thanks

Axel


Using images in a vcl app created in a firemonket app

$
0
0

I have a FM app on my phone that saves pictures to a sql database blob field.

I can access them from my FM desktop app fine.

Now I need to access them from a VCL desktop app.

I can save the blobfield image to a file jpg or bmp and open them via windows file explorer

but if I try to load the file into a vcl tImage, I get a get  Bitmap Image is not valid error message.

 

What is the best way to access these images from both platforms?

FMX ListView and ListItemEmbeddedControl

$
0
0

I have an FMX Listview in an application. When adding rows I have also add an object that descends from TListItemEmbeddecControl. In the container of the object I create a TEdit control

It all works great. I can see the edit box. It's place in the correct location, height and all. It accepts text input programmatically. How the TEdit does not respond to Keyboard input. When the mouse is placed over the component, the cursor converts to a caret. The TEdit responds to mouse clicks. Just not to keyboard input. 

I am certain I am missing something fundamental.

Here the code for the unit

 

unit uMOP;

interface

uses  FMX.ListView.Types, FMX.ListView.Appearances, FMX.Edit, FMX.Dialogs, Classes,

      FMX.ListView.Adapters.Base, FMX.ListView, FMX.Types, System.UITypes, System.SysUTils;

type

    TListItemQtyBox = class(TListItemEmbeddedControl)

    public

      QtyBox : TEdit ;

      Constructor Create( const AOwner : TListItem); override;

      Destructor Destroy; override;

      procedure QtyOnClick(Sender : TObject);

      procedure KeyDown(Sender: TObject; var Key: Word; var KeyChar: WideChar; Shift: TShiftState);

 end;

implementation

procedure TListItemQtyBox.QtyOnClick(Sender: TObject);

begin

   MessageDlg('Clicked',TMsgDlgType.mtInformation,[TMsgDlgBtn.mbOK],0) //just for test purposes

end;

procedure TListItemQtyBox.KeyDown(Sender: TObject; var Key: Word; var KeyChar: Char; Shift: TShiftState);

begin

   QtyBox.Text:= keychar; //for test purposes

end;

constructor TListItemQtyBox.Create(const AOwner: TListItem);

begin

    inherited;

    QtyBox:= TEdit.Create(nil);

    QtyBox.Parent:= Container;

    QtyBox.Name:= 'eQty';

    QtyBox.Width:= 30;

    QtyBox.Align:= FMX.Types.TAlignLayout.Right;

    QtyBox.MArgins.Top:= 10;

    QtyBox.Margins.Bottom:= 5;

    QtyBox.OnClick:= QtyOnClick;

    QtyBox.OnKeyDown:= KeyDown;

end;

destructor TListItemQtyBox.Destroy;

begin

  // do more stuff here

end;

end.

 

 

From the app, this is what calls the creation of each line item

 

procedure TfrmMain.lvResultsUpdateObjects(const Sender: TObject;  const AItem: TListViewItem);

var

   eQty : TListItemQtyBox;

begin

   Case AItem.Purpose of

   TListItemPurpose.none:   begin 

            eQty:= AITem.Objects.FindObject('sQty') As TListItemQtyBox;

                              if not Assigned(eQty) then

                                begin

                                  eQty:= TListItemQtyBox.Create(AItem);

                                  eQty.QtyBox.Text:= '1';

                                end;

                            end;

   end;

end;

IDE is freezing

$
0
0

I keep having the problem that when I am adding available source code to my current project the IDE starts hanging/freezing - sometimes a few seconds but now most of the time for indefinite times. I have disconneted network connections but could see no influence. I have disabled "TwineCompile" but could hardly see any difference.
Sometimes in the past setting up an entirely new project helped.

I also keep getting a frozen IDE when I have loaded a large project, changed something in the project settings and just save the project. It keeps using up an entire CPU-core for a very long time.

I am working under Win7 64 Bit professional.

Does anyone have an idead how to solve this annoying situation?

Converting from messagedlg to the new MessageDialog Method

$
0
0

I am looking for an example on how to setup TDialogService.MessageDialog for Delphi Berlin

I need to convert the fmx messagedlg to messagedialog since I am getting this:[DCC Warning] MainFormU.pas(169): W1000 Symbol 'MessageDlg' is deprecated: 'Use FMX.DialogService methods'

 

Thanks

Garnett

Linking problem

$
0
0

Hi,

According to the map file both Indy and Datasnap are being included in my app.

But I am no longer using either of these items.  And I think I have removed all references to them.

How can I find out what units are referencing them?

Gary

Viewing all 3212 articles
Browse latest View live