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

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.

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?

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


Listview with dynamic appearance and Android view not working

$
0
0

With XE 10.1 does anyone get "Cannot assign a TAppearanceObjectItem to a TAppearanceObjectItem" if you have a multidevice application with a listview on it set to dynamic appearance and you then create an Android View from the Master view. I am sure this must be a know issue but I am having trouble finding anything about it. Thanks

TScrollBox Not Working On OS X

$
0
0

I've a problem with TScrollBox not showing scroll bars on OS X, works fine on Windows.

Tried running Samples\Object Pascal\Multi-Device Samples\User Interface\ControlsDesktop\ControlsDemo and get same problem. You may want to modify random position generation on line 353-354 of ctrlsdemofrm.pas to have smaller values, I set them to be 800 and 400.

I'm using RAD Studio 10 Seattle (Recharge)

Anyone else have this problem?

10.1 C++ Run Command from Menu broken

$
0
0

Since 10.1 Berlin when I click on "Menu->Run->Run" or enter a key which I had assigned via GExperts to the "Run"-Command it only functions at the first attempt, if I try it again, the command "build all" was executed instead. This worked in version 10 seattle. I have a project group with about 70 projects in it. Someone has seen this also? Thanks in advance, Harald

How do I update an expression calculated field before changes are posted?

$
0
0

I have a calculated field that is editable, when the value changes it updates the underlying database field that it is calculated from, however as soon as I move to another cell (without posting) the value reverts to the old calculated value.  This is understandable, because the calculated field is still showing the previously calculated value.

How do I cause the calculated field to recalculate based on the current (edited) value before the record is posted?

 

How can I set PrintDialog's options in background.

$
0
0

Hi everybody.

 

I want to print something with Printer of "Microsoft Print to PDF" and file name of "myfile.pdf".  But I do not want to show any dialog box.

/* This is a code displaying PrintDialog and SaveDialog */

if ( PrintDialog->Execute() ) {

    Printer->BeginDoc();

    // some code

    Printer->EndDoc();

}

 

Is there anybody knows how to do this?

 

Thanks.

 

 

Debuggen DELPHI 10.1 Berlin

$
0
0

Wie kann ich mit 10.1 Berlin debuggen und nur in meinen eigenen Sourcen bleiben (kein Aufruf/Übergang in VCL/System oder sonstige  Module). Ich bin von DELPHI XE2/3 umgestiegen und habe das Problem, dass ein zeilenweises Debuggen praktisch nicht mehr möglich ist. Ich finde auch keinerlei Einstellungsmöglichkeiten in der IDE oder beim Projekt.

Danke für die Hilfe

Error with the datasnap rest client module wizard

$
0
0

Hi, I have a DataSnap Rest Server created with Delphi Berlin and DataSnap Rest Client Module both in a local development without problem. I created one DLL with the wizard for IIS and the server is running and display the methods but when i want to create a DataSnap Rest Client Module with remote server i have a next problem:  

 

 

Somebody have a idea how to solve?? Thank´s


drawer not overlapping TWebBrowser Component

$
0
0

I'm developing a web browser with C++Builder 10.0 Seattle that uses a drawer as its master navigation, but the drawer does not overlap the web browser component. I've tried everything but cannot seem to get it working.

SCPI commanmds in Delphi?

$
0
0

Does anyone have any info on how to implement SCPI commands in Delphi? I need to capture data from a digital multimeter. Thanks.

How can I create an event handler for a non published but public event in Delphi?

$
0
0

In RAD Studio 10.1 Berlin quite a few things has changed from previous version. In FMX there are a few previously published events that has now been changed to only be public.

I have a Multi Platform Project that uses a TStringGrid component and the OnDblClick event. When opening this project in Studio 10.1 I get warned that the Property OnDblClick does not exist.

The question is now how I can use the no longer published event?

(I must say that It's hard to understand why they haven't set mouse events to Published anymore. As far as I know most regular PCs and OSX machines doesn't have touch. A true Multi Target Project should be able to target these systems without hassle as they did in Studio 10 Seattle)

parse an Uri Androidapi::JNI::Net

$
0
0

Hello to everyone!!!

I want to launch google maps with some coords that i have on my app.

Acording google´s documentation i have to add to my intent an uri.

// Create a Uri from an intent string. Use the result to create an Intent.
Uri gmmIntentUri = Uri.parse("google.streetview:cbll=46.414382,10.013988");


however i cant find the parse method in Androidapi::Jni::Java::Net::_di_JURI

how can i achieve this?

thank you!

XE8 Build release IOS App error ERROR ITMS-90502: "Invalid Bundle. Apps that only contain the arm64 slice must also have 'arm64' in the list of UIRequiredDeviceCapabilities in Info.plist."

$
0
0

I receive the error:

ERROR ITMS-90502: "Invalid Bundle. Apps that only contain the arm64 slice must also have 'arm64' in the list of UIRequiredDeviceCapabilities in Info.plist."

I Try ser the UIRequiredDeviceCapabilities to YES and/or TRUE and/or amrv7 and/or and standard but not work.

My xcode is 6.1

please i need help.

Viewing all 1963 articles
Browse latest View live


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