Quantcast
Channel: Recent Topics - Forum - Embarcadero Community - Embarcadero Community
Viewing all 3677 articles
Browse latest View live

OSX Firemonkey maximized modal form problem - by: Don

$
0
0
In RadStudio 10.2.3, I created a new Firemonkey multi-device c++ blank application.. Main form/unit is 20. ShowFullScreenIcon and FullScreen are both false. I then created a new multi-device c++ form/unit 21. I put a TButton on form 20. OnClick does Form21->ShowModal(). A TButton on form 21 returns mrCancel. On OSX Sieraa 10.12.6, I click the maximize icon (ShowFullScreenIcon is false), and click the button on main form 20. Form 21 appears maximized as a 2nd tab. Clicking the form20 tab locks up the program requiring a Force Quit. Restarting and clicking the "Cancel" button in Form21 returns to Form20, still maximized, but now behind the top menu bar and dock, hiding the top and bottom of Form20. I tried:
void __fastcall TForm20::FormShow(TObject *Sender)
{
BringToFront();
}
with no change. Is there something else I need to do to run a form with ShowModal() maximized? Thanks in advance for any enlightenment.

10.1 Berlin Sample "AdapterBindSource" produces invalid JSON error - by: Robert

$
0
0
10.1 Berlin Sample "AdapterBindSource" produces invalid JSON error The 10.1 Berlin Sample "AdapterBindSource" has a bug - I need a work around or a fix please.

In this sample the TGrid values can be pushed to JSON and visa-versa. Very nice.

BUG: If you enter a \ character it isn't escaped. If should appear in the JSON as \\. The result is an invalid JSON error. Other characters like " (quote) are escaped correctly to \"

"really quit?"-dialog on android and ios - by: Wolfgang

$
0
0
hi,

I'm looking for a way to intercept the termination of an app on Android or iOS in the program and to provide a security query (like "really quit?"). Subsequently, the program should remain open or actually closed.

I tried several things but could not find a working solution right now. Any help is appreciated! thx,

Wolfgang

closing the soft keyboard - by: Wolfgang

$
0
0
hi again,

i'm searching for a solution to close the virtual Keyboard on Android and iOS. I tried some things with

IFMXVirtualKeyboardService and TVirtualKeyboard - but i only get crashes or simply nothing happens :/

any help is appreciated! thx,

Wolfgang

calling MDI Child gives debug output message - by: W.

$
0
0
When calling a MDI Child form from a MDI Form, debug output shows:
windows\dwm\dwmapi\attribute.cpp(92)\dwmapi.dll!73013CF4: (caller: 709D90ED) ReturnHr(2) tid(1fb8) 80070006 De ingang is ongeldig.

Can it do any harm? Can it be solved?

.Net DLL/WSDL Import Utility for Delphi - by: Bismark

$
0
0
The .Net DLL/WSDL Import Utility for Delphi is used for importing .Net assemblies as dll files, WSDL or web service XML schema and generates Delphi classes from the types of the imported assemblies.

The Import .Net Assemblies Wizard is used for importing .net assemblies and generating Delphi classes from the types of the imported assemblies.

The Import WSDL/Web Services Wizard is also used for importing Web Service Description language file/url or XML schema that describes a web service and generates Delphi classes from the types of the imported WSDL assemblies.

Features
- Import any .Net Libraries.
- Import any assemblies from the Global Assembly Cache (GAC)
- Import any Web Services Definition Language(WSDL)
- Uses the Host Class Library and the Framework Class library to host the .net runtime (CLR) and access the imported assemblies or WSDL without registering the .net dll as COM.

To download the latest version, go to CrystalNet Download Page
For more information, go to .Net DLL/WSDL Importer for Delphi Page .

Android apps must support Android 8 by August 2018 - by: Remy

$
0
0
delphiworlds.com/2018/05/targeting-android-8-and-higher/

From August 2018, all new apps on Google Play must target Android 8 (API level 26) or higher, and from November 2018, all app updates on Google Play must do the same.
...
Up until now, by default, Delphi targets Android 4.0 (API level 14, otherwise known as Icecream Sandwich). The value (14) is inserted as the targetSdkVersion value in the AndroidManifest.xml file which is deployed with your app.
...
With the requirement for new apps to have the target API level of 26, there is at least one feature that is yet to be catered for in Delphi apps. In Android 6 (API level 23), requirements were introduced regarding application users privacy; namely that some resources are now designated “dangerous”, and applications will need to explicitly request permission to access to these resources at runtime, as well as having the permissions listed in the manifest.

In order to handle requests for permissions correctly, the application should call the requestPermissions method (of the Activity class), and the activity must override the onRequestPermissionsResult method of the Activity class in order to determine whether the user granted or denied access. Unfortunately at present, this method is not implemented by the FMXNativeActivity class (part of the FMX Java runtime), so unless you’re keen on modifying the FMX Java source and recompiling it, a little bit of “hacking” is required.

FireDac Error Message - by: Daniele

$
0
0
Good afternoon to all,
i have a little problem with firedac connection error message (FDConnection).
With this code

repeat
try
OK:=True;
FCon1.Connected:=True;
except
on E: EFDDBEngineException do
begin
// FCon1.Connected:=False;
OK:=False;
if E.Kind=ekServerGone then
begin
// Server non connected message
end;
Application.ProcessMessages;
end;
end;
until OK;

It's wait for server connection, if not ... i show an error message.
But, for any reason, after (about) 30 seconds firedac show it's own message error, over my message, like

[FireDac][Phisis][FB] Unable to complete the request ......

Semms to be timeout error.
There's a way to handle/hide this message?

Thank's for all

Daniele

Strange break points placement in IDE - by: John

$
0
0
Hello,

I have this issue where the break points after building my app are placed offset by one line and so debugging is difficult, see attachment for a sample screenshot. Is there anything I can look for a fix?

Thank you all for your time

Strange break points placement - by: John

$
0
0
Hello,

I have a strange issue where after building my app break points appear shifted by one line ( www.screencast.com/t/KNU3jGzqrnb ) and so debugginh is hard. Is there something I can do to fix this without having to uninstall everything? I am using the latest 10.2.3 Delphi

Thank you very much for your time

DBXPRESS CONNECTION - by: Carlo

$
0
0

File Attachment:

File Name: dbxconnections.zip
File Size: 1 KB
Hello I'm developing with Rad Studio 10.2.2 Tokyo
My application stands ovaer MSSQl DB
I use Firedac Direct Access
I need to connect via dbExpress Report Manager 3.1.1 which is part of the application
If i setup Native Cleint Sql 2008 with dbxmss.dll version 14 and fbclient.dll over a bare machine connection workks
When I do the same thing on my Developer Machine ( where Rad is installed a nd so also dbxmss version 25 )
Igete DBXerror driver could not be properliìy initalizet..
Anybodo who experienced the same ( possibly involving ReportMan ..), or some workaround?

Use this DBXCONNECTION.INI
[MSSQLCONNECTION]
DriverName=MSSQL
SchemaOverride=%.dbo
DriverUnit=Data.FBCLIENT
DriverPackageLoader=TDBXDynalinkDriverLoader,DBXCommonDriver180.bpl
DriverAssemblyLoader=Borland.Data.TDBXDynalinkDriverLoader,Borland.Data.DbxCommonDriver,Version=18.0.0.0,Culture=neutral,PublicKeyToken=91d62ebb5b0d1b1b
MetaDataPackageLoader=TDBXMsSqlMetaDataCommandFactory,DbxMSSQLDriver180.bpl
MetaDataAssemblyLoader=Borland.Data.TDBXMsSqlMetaDataCommandFactory,Borland.Data.DbxMSSQLDriver,Version=18.0.0.0,Culture=neutral,PublicKeyToken=91d62ebb5b0d1b1b
VendorLibWin64=sqlncli10.dll
HostName=DELLESI\SQLEXPRESS
DataBase=DBGP2S
User_Name=CTS
Password=CTS
BlobSize=-1
ErrorResourceFile=
LocaleCode=0000
IsolationLevel=ReadCommitted
OS Authentication=False
Prepare SQL=False

TMemo in Android - by: Iain

$
0
0
When using SaveToFile with the TMemo component in Android the text limit seems to top out around 130kb in Delphi 10.2.3, if you Load the text file, managed to cut the text size down but although the text looks complete the code fails to run (javascript), encoding of the file is ANSI.
The javascript SaveToFile works sweet in Lazarus on the same OS.
Any ideas what I am doing wrong in Delphi?

many problems with mulitview component - by: Wolfgang

$
0
0
I'm using Delphi 10.2 Enterprise Version 25.0.29899.2631

hi, so here are the problems or bugs:

visual state differs from real state: buttons/checkboxes in a Multiview component:
i placed several checkboxes on a multiview component (drawer-mode) reflecting a set of user-settings.
Now everytime i open the multiview on my iPad or Android-phone it shows random states; however, the real states are correctly saved in the checkboxes.

for example:
3 checkboxes on my multiview
i check checkbox1, Checkbox 2 and 3 remain unchecked.

i close the multiview and re-open it. now the checkboxes show (only show!) random states.
for this example lets say, all checkboxes show now "checked" state.

when i click on box1 once, it gets disabled, so its state was enabled before and correctly shown.
when i click on box2 or box3 once, nothing changes, so its state was "unchecked" before even though it showed "checked".

Multiview visibility in IDE:
In the IDE i always need to change its mode from "Drawer" to "docked area" (Panel?) ("Angedockter Bereich" in german), to get it visible.
Simply clicking on "Show" ("Einblenden" in german) in the Right click menu or clicking "visible" to true in the object inspector doesnt work (or at least does very, very rarely work).

Multiview mode in IDE:
The 6 modes in the object inspector are shown in this order:
Custom, Drawer, Navigation Pane, Panel, Platform Behaviour, Popover

In the structure view, the right click menu shows 6 modes in another language and in another order :
Plattformverhalten, Angedockter Bereich, Popover, Schublade, Benutzerdefiniert, Navigationsbereich
which is in english
Platform Behaviour, Docked Area (which is supposed to be "Panel"), Popover, Drawer, Custom, Navigation Pane
As you can see, the order is different. Not a real problem but perhaps source for a bug? however, i wanted to mention it.

when i change the mode in the object inspector, the right click menu in the structure view does not change corresponding to it. It keeps showing the old setting. Which state is now active?
The other way around works.

Is there anything i can do? Any known workarounds or patches?


One last Thing: Please disable the autocorrection for spelling in this Editor. It uses my local language and there is no Option to Change or disable it. And ist constantly making Things worse. As you can see These last sentences are full of spelling mistakes (esp. case but also "its" is corrected to "ist").

Reading DBFfiles with long names - by: André

$
0
0
On a form I made a TFDConnection with as DriverID=MSAcc and also the FDPhysMSAccessDriverLink with ODBCDriver=Microsoft dBase Driver (*.dbf).
To connect to a dbf file I gave ODBCAdvanced parameters: ODBCAdvanced=Driver={Microsoft dBase Driver (*.dbf)};CollatingSequence=ASCII;Dbq=D:\Projecten\P00043\menyanthes\2018ANBR\basis_mtr1993_men;Deleted=1;DriverId=277;MaxBufferSize=2048;MaxScanRows=8;PageTimeout=600;SafeTransactions=0;Statistics=0;Threads=3;UserCommitSync=Yes

I tested the connection with the FireDAC Connection Editor and the result was succes full. After that I tried to read the dbf-file "basis_mtr1993.dbf" on the sheet "SQL script" with the command: “select * from basis_mtr1993”.
Than I received an error: ERROR: SQL state: 42S02. Native error: -1305. Error message: Which mean that the [Microsoft][ODBC dBase-stuurprogramma] De Microsoft Jet-database-engine cannot find the object "basis_mtr1993".
If I change the filename into "mtr1993.dbf" and run the command "select * from mtr1993" than I see the records. Obvisously the ODBC-driver can only read 8.3 files. Because many of my files have long names I need another way. Has someone a solution for reading dbf-files with FireDAC-components that have long filenames?
Thanks in advance.
André Niemeijer

How to request Authorization token with c++ builder 6 - by: Marina Brusa

$
0
0
I'm an Italian programmer and I’m using C ++ builder 6.
I have to connect to a webservice. I have available a Wsdl that I downloaded and compiled, but ... unlike what was previously developed, I am now asked for an authorization token, POST method.
In practice, while in the previous application (10 years ago) I called a service with url, username and password, now with username and password I have to request a guid and, got it, submit to the server' username = ...... token = ... .. "
Can you first tell me if I can do it with C ++ builder 6? I've seen several Soap components but I can not use them!
Thank you for your support . Excuse my English

Marina

Delphi Starter installation not working properly. - by: Joseph

$
0
0
I just installed the free starter for Delphi in order to review some old code I wrote in 2006 and the IDE is not working properly with several problems. (Using WIndows 10)

<ol>
<li>When I start the install after downloading, the program asks for the serial number I was emailed, but then does not accept it and offers the option to retry which simply repeats the same message after I reenter the number. If I opt to exit, it then continues installing and starting the IDE. The IDE will not open projects but will open *.pas units. However the IDE is not fully operational since the files cannot be closed, nor can I exit the program using the "X" or file close commands. I must resort to using task manager to exit. </li>
<li>When I attempt to create an new project, nothing happens. </li>
<li>WHen I attempt to open one of my old projects either nothing happens or I get an error message stating that the delphi.personality is not avaliable. (Several forum suggestions state that the enivronmental variable "Platform" should be deleted, but I it is not one of my variables.)</li>
</ol>
Can assist or direct me to resources?

Delphi 10.2.3 Starter Edition - by: Piotr

$
0
0
I was trying to install Delphi Tokyo Starter Edition (with default settings) parallel to Delphi XE and Delphi Berlin (10.1 Update 2). There was no problem during installation process but when the IDE was starting I got a bunch of errors. Most of them were exceptions like:

"Exception EPackageRegistratioException in module coreide250.bpl at 0003D46B. Registration procedure, MSTemplate.IDERegister in package [...] codetemplates250.bpl raised exception class Exception: Application is not licensed to use this feature".

Those exceptions were followed by some AVs like:

"Access violation at address: xxxx in module 'rtl250.bpl'",
"Access violation [...] in module 'coreide250.bpl'".

And then some other errors like:

"Can't load package [...]\DataExplorerDBXPlugin250.bpl'", "Can't load package [...]\DataExplorerDBXPluginInt250.bpl'"...

Did anyone experience similar problem? Or am I alone?

Listbox to multiple database records - by: Iknow

$
0
0
Hello Group,

I have a delphi 7 project underway that requires a OrderID combobox and is populated with the SQL query sql.text :='SELECT ORD.orderID FROM FOYB_Orders ORD where ord.orderID not in (select OrderID from [foyb_order details]);';
The ProductsID listbox has a list of all current products, One order can have multiple Products, I would like to append the orderID and selected ProductID to a new row if more than one item is selected in the Listbox

Thanks for the help

It's possible to create Custom ItemStyle for TListBox? - by: Eko

$
0
0
Dear All,

It's possible for us to create custom ItemStyle for TListBox. There is sample for Custom Appearance for TListView, but not for TListBox.

I think, more better to use TListBox than TListView for my needs.

Regard,

ES

RAD Studio 10.2.3 IDE Debug problem? - by: Chris

$
0
0
I'm trying to debug a program (Win32) and having a bit of an issue with the IDE. I set a breakpoint and run and wait for the condition to be met and program execution stops, however under watch list the one watch I have is greyed out and options in the run menu Run F9, Step Over F7, RunTo Cursor F4 are all greyed out as well and I'm unable to debug at this point.

In the past (with previous versions of RAD Studio) I've found that doing a program reset Ctrl-F2 and exiting the IDE and reseting and trying again (and sometimes rebooting) fixed the problem but in this instance nothing I do seems to make any difference and when program execution stops on the breakpoint I can't add or view any watches nor can I step through the program.

Anyone seen this behavior? Any idea's how to overcome this problem?
Viewing all 3677 articles
Browse latest View live


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