Questions tagged as 'delphi'

4
answers

How to know the size in Kb of a string?

I have a string that will be saved in xml file , and this file can not be larger than 500 kb . How can I identify the size of string that I will save in xml file ? When string is saved in the xml file, it can chan...
asked by 25.03.2014 / 19:29
1
answer

Change InputQuery box size

The InputQuery is a message where we can inform a certain value, but changing the value of the variable passed as reference, see its structure: //Função InputQuery function InputQuery(const ACaption, APrompt: string; var Value: strin...
asked by 27.04.2018 / 19:17
2
answers

How to create an AVD for Android in Delphi

I'm starting in Delphi® XE5 and would like to know how to configure / create an AVD to emulate Android applications. It only gives me the option to choose the device, but I have nothing in Target Android SDK 22.0.1     
asked by 09.02.2014 / 04:20
1
answer

Difference between AnsiString, WideString, UnicodeString, ShortString and String and how to convert

While learning Delphi, I see implementations that use AnsiString , WideString , UnicodeString , ShortString , and String but do not know the difference between them. Another thing that always occurs to me is that...
asked by 19.02.2015 / 21:18
1
answer

How to know which object is focused at runtime

I saw that you already have a similar question with mine only that is in C # . I'm doing a field check routine and when one of the date fields is blank it gives the message. I need when one of these fields is in focus, show the field nam...
asked by 06.04.2018 / 21:18
1
answer

How to get value from one form to another?

I have form 1 and it has a field that in the onExit action I search the code in the bank and if it does not, I'll send a message if I want to register a product. If yes opens form 2, now I am not able to get the generated field and send to form...
asked by 15.12.2015 / 15:06
2
answers

is it possible to leave the label and text in 90 degrees?

It is possible to make a TLabel stay vertical, but its text like this: I have tested some components, but they do not work in the Delphi-XE8 version. I was able to leave it at 90 degrees, but the numbers go one below the other...
asked by 21.12.2015 / 12:22
2
answers

How to list objects of a given class?

For example, let's say I have a class TConfiguracao . Here the constructor and destructor attributes and in some forms I create several T-type variables conf1 :TConfiguracao; conf2 :TConfiguracao; ... conf1 := TConfiguracao.Create...
asked by 04.11.2014 / 19:29
2
answers

Cut a piece of the image using mouse

Hello, I have the following situation, in a FORM I have any image, I need to select a part of the image by clicking the MOUSE, and as soon as I release the mouse button, that part I selected is SAVE! > I found a question similar to mine, but I...
asked by 07.11.2015 / 14:19
1
answer

Show hint only when the application starts for the first time

I have a desktop application that is a bit complicated, so I thought about helping the user to generate images (Hints) to help with the path. But I know how annoying this is, so I wonder if this is only possible when the application is first...
asked by 05.02.2016 / 19:12