vcl

Install both Delphi 2010 and XE3 on the same Windows?

风流意气都作罢 提交于 2019-12-13 04:27:33
问题 My Win7 now installed RAD Studio 2010 with Delphi 2010, can I install Delphi XE3 separately? So both Delphi 2010 and XE3 work on the same Windows? Thanks! 回答1: Yes you can. You can install all versions of Delphi side by side on a single machine. I'm currently sitting at a machine with D6, 2010, XE, XE2 and XE3. Different people have different ways to organise side by side installations. I personally remove all references to Delphi from my system PATH variable. Then if I need to do anything at

Add resource file by code with Delphi

久未见 提交于 2019-12-13 04:24:01
问题 I have a custom res file "myres.res". In this moment I use it on my application, I have add {$R myres.res} under {$R *.res} line inside my DPR project file and it work very well. Now I'd like creare a VCL component with a boolean property "UseCustomRes". If I set UseCustomRes=True I'd like add the res file when I compile my project but if I set UseCustomRes=False I don't want use res file when I compile my project. Is this possible? I don't know if it possible and how it is possible. 回答1:

How to set textalignment in TEdit control

孤者浪人 提交于 2019-12-13 00:45:12
问题 I'm using turbo c++ explorer edition (the free edition). Is there somebody that know how i can set the textAlignment of a TEdit control? 回答1: You might find this solution to the problem interesting: http://bcbjournal.com/bcbcaq/?loc=edits&caq=28 It makes the edit box right aligned by enabling the ES_RIGHT Windows style for the control, however it does this when creating the component. For historical reasons the standard windows edit control does not support changing alignment after it has

How do I make my custom treeview accept the Enter key?

别等时光非礼了梦想. 提交于 2019-12-12 16:01:59
问题 I've got a custom control that descends from TTreeView. I'm trying to give it special behavior when the user presses ENTER while the control is focused, by giving it a WM_CHAR handler that responds to VK_RETURN, but it never gets called. I tried making sure that it would accept all keyboard input by adding a WM_GETDLGCODE handler that says msg.Result := msg.Result or DLGC_WANTALLKEYS; . Now it receives the ENTER key, but the arrow keys no longer work! Anyone have any idea how I can fix this

TColorProperty Delphi Berlin 10.1.2?

◇◆丶佛笑我妖孽 提交于 2019-12-12 13:23:31
问题 I'm trying to convert a component from Delphi 7 to Delphi Berlin (flatstyle component: https://sourceforge.net/projects/flatstyle/) After many changes in the source, i´m stuck in TColorPorperty See below: type TRxColorProperty = class(TColorProperty) public function GetValue: string; override; procedure GetValues (Proc: TGetStrProc); override; procedure SetValue (const Value: string); override; In Delphi 7, this class is in VCLEditors unit. But i can´t find in Delphi Berlin. Someone can tell

How to set form height larger than 1096 pixels?

☆樱花仙子☆ 提交于 2019-12-12 10:37:06
问题 I am using C++ Builder XE7 and having a strange problem. I need a form height to be about 1500 pixels. The problem is that object inspector does not allow me to specify value that is larger then 1096 pixels. If I set any larger value it is automatically set to 1096.. The problem exists on any existing or new form. I'm using Windows 7 with screen resolution 1920x1080. 回答1: The reason for this behavior is that when you do not set constraints for the form size, Delphi will automatically get

Add a property on TWinControl Class

送分小仙女□ 提交于 2019-12-12 07:38:02
问题 I want to add a published property into TWinControl. Is there someway to do this without the necessity of recompiling the base source code ? If not, some way to recompile the base source code without too much troubles ? Tks in advice... EDIT 'CAUSE OF NEW IDEAS Alright, What I'm thinking to do I'm trying to override the _GetMem from System.pas for classes inherited from TWinControl. Why ? 'Cause I'll alloc some extra space to the objects enough to an integer. Why an integer ? 'Cause this way

How do you line up a TPopupMenu so that it accurately positions itself above a button?

笑着哭i 提交于 2019-12-12 07:35:27
问题 I want a popup menu above a button: Delphi wraps the Win32 menu system in a way that seems to preclude every mode or flag that the underlying Win32 API provides that was not in the VCL author's brain on that day. One such example appears to be the TPM_BOTTOMALIGN which can be passed into TrackPopupMenu but, the Delphi wrapper appears to render this not only impossible in the stock VCL, but by injudicious use of private and protected methods, is impossible (at least seems to me to be

How do I avoid invalid-index errors when removing user-selected items from a TreeView in a loop?

廉价感情. 提交于 2019-12-12 06:56:25
问题 I have a treeview and a listview, and a button that should move selected items from the treeview to the listview. The selection and the transfer are happening perfectly fine, but deleting the items from the treeview is not. It only works if I select a single item under the treeview. When I have TreeView1.MultiSelect := True , then there is a problem. Here is the code I am using: For i := 0 to TreeView1.Items.Count-1 do Begin If TreeView1.Items[i].Selected then Begin Itm := ListView1.Items.add

Delphi 10.2 Tokyo VCL sources

非 Y 不嫁゛ 提交于 2019-12-12 05:28:21
问题 I've just installed RAD 10.2 Tokyo, from the official ISO, but using a trial period serial number. It says "Architect" when I start it (though I wanted to trial Entreprise edition). Now inside Delphi's folder, when I go to sources, I find a few subfolders like rtl, but no VCL subfolder. Does anyone have these files? Am I missing them because I installed a trial version, did Embarcadero stop providing them? In my old Delphi XE2, I also have FireMonkey framework sources, but here, nothing...