vcl

Delphi VCL "TaskDialog" problem in Windows 7

I'm developing an windows app on Delphi 2007 and I'm using "Ttaskdialog" component in it. Using windows XP it runs normally, but in Windows 7 I'm getting the following message: TtaskDialog requires themes to be enabled Any clues how to fix it? ...

Docking using VCL: How to make vertically docked Forms prevail over horizontally docked Forms?

Hi I am using docking (VCL) in Delphi 7. In my main form, two other forms are docked: One vertically at the left edge, one horizontally at the bottom edge. Problem: The form docked at the bottom edge takes the full width of the form, limiting the height of the form that is docked at the left edge. I would like the opposite behaviour: ...

VCL/Delphi/BCB - which IDE/language should I use?

I bought Delphi 1 when it came out - and was hooked. When BCB came out (around D3, iirc), I switched, mainly because I have used C/C++ professionally for a few decades. I have "been away" for 7 or 8 years and am now returning. I still have BCB 6 & Delphi 7 (not to mention Kylix). I always felt more comfortable with C++ than Pascal - p...

VCL form and control font settings under Russian version of MS Windows

I have a Borland C++ Builder VCL app (so I am not working with Unicode yet), I want to provide a simple translation of controls' caption text to Russian at runtime. I can easily use EnumChildWindows to get the English caption, then lookup the translation and replace the caption text using SetWindowText. This does work well for my weste...

Inherited TShape.Paint does not work after overriding Shape property

I'm to code a TExpandedShape class inherited from TShape. TExpandedShape must act like TShape and be able to draw extra shapes: Polygon and Star. Here is my code unit ExpandedShape; interface uses SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls, Windows; type TExpandedShapeT...

Is there a Delphi dropdown notification component?

You know how in Firefox, if something happens that requires your attention but isn't immediately urgent enough to require a modal dialog, it will drop down a little strip at the top of the tab with a question on it? I'd like to be able to put functionality like that in a Delphi app, but I don't know if there's a component for that. Doe...

Delphi: How to diagnose sluggish UI?

i have a form, which you can pretend is laid out like Windows Explorer: panel on the left splitter client panel +------------+#+-----------------------+ | |#| | | |#| | | |#| | | |#| | | Left |#| ...

Conditional directive to identify C++ Builder personalities

Hello, I have a Delphi component which I want to install and have it available at the component palette in Delphi but not in C++ Builder. In BDS/RAD 2006 and above I can either have it installed for both personalities or none. I need to do so because this component uses 3rd party libraries that doesn't support C++ Builder. I have look...

Set designed Tframe on some Tpanel

I am totally novice in C++ Builder. Never tried working with VCL frames. So, i have some Tform with Tpanel and two frames designed. How can i display designed frames on my forms panel? Tired searching similar examples. ...

Disable hotkey on vcl controls

I do have a TPageControl that I do add and remove TTabsheet's from, and in the TTabsheets there are 2 TEdit's that the user can type firstname and lastname, when they do the Tab Caption does show what they have written. But if the user add a '&' somewhere in the TEdit (and they are allowed to do) the tab do get the char after '&' as (un...

RichEdit's EM_AUTOURLDETECT message not always sent

To describe this issue, the best would that you would test my application with following usecase: Application: http://ubuntuone.com/p/nF/ Open application; Click on the ">" captioned button; Click on same button again; Click on the same button again. As you can see - URL is correctly detected in first expanding, but in any further ...

C builder RAD 2010 RTL/VCL Application->Terminate() Function NOT TERMINATING THE APPLICATION

I have a problem also described here: http://www.delphigroups.info/3/9/106748.html I have tried almost all forms of placing Application->Terminate() func everywhere in the code, following and not 'return 0', 'ExitProcess(0)', 'ExitThread(0)', exit(0). No working variant closes the app. Instead the code after Application->Terminate() s...

Should app using VCL migrate?

Is VCL dead, or does it have a future as a GUI library? As CLX ended, is there any chance for cross-platform support in future releases? I've had to do some work with legacy app that uses Borland's VCL(BCB6). Now that new features have to be implemented, it's necessary to revalue alternatives. Whether to stick with VCL or migrate to som...

TVirtualStringTree - resetting non-visual nodes and memory consumption

I have an app that loads records from a binary log file and displays them in a virtual TListView. There are potentially millions of records in a file, and the display can be filtered by the user, so I do not load all of the records in memory at one time, and the ListView item indexes are not a 1-to-1 relation with the file record offset...

The ribbon control of Delphi 2010 has footer content in the application menu?

I'd like to put some buttons in the footer content like the image below. Is there a way to do this? ...

Correct Delphi compiler switches to stop in the user's code, not my component's

I'm modifying our VCL components so the end user's application links to our dcu files, instead of building our source code each time. We have everything working, but I want the debugger to stop on the user's code when an exception is raised. At first it would stop in our dcu and open the CPU window. I was able to prevent that by removing...

TStringGrid with BOTH editing AND range selection?

Question: Can anyone point to an article or code samples anywhere on how to provide BOTH editing AND range selection in a TStringGrid? Yes, I KNOW there are third-party grids that do this, but it's frustrating that the built-in grid lacks this basic capability. Background: It's pretty normal to expect to be able to both edit a cell...

How to localize Developer Express VCL components at Design Time in Delphi 2006?

I can only translate my application to my language using TcxLocalizer at runtime, but I need this working also in design-time. Does anyone has some suggestion? Thanks in advance ...

Embed Delphi window in another Delphi application

I have a frame in a Delphi 2007 application that I want to embed on a form in a Delphi 2010 application. I have control over both applications, so the interface between them can be anything both versions support. There will have to be some communication between the two. The two approaches I can think of are using CreateParented and me...

How to get a component's parent form in Borland VCL?

Hi, I'd like to determine which form a given component belongs to in my application. Neither the Parent nor the Owner property can be assumed to be the form itself, so I can't simply use this. I guess I could just go through the Parent property recursively until I arrive at something derived from TForm, but is there a better way to do ...