vcl

C Builder TForm not allocated or created properly all its controls

I would know how i can check that all the controls on the form is created and initialized. I have form i am showing when user presses the 'update' button. It have only TProgressBar control. The handle is not NULL for this control and at random stages it can or can't set the Position/Max values. When i set TProgressBar->Max value to so...

Are we Delphi, VCL or Pascal programmers?

In terms of naming: Are we Delphi, VCL or Pascal programmers? ...

categorypanelgroup for delphi 2010

Can any one share an example on how to use the categorypanelgroup from Delphi 2010? I want to replace the to32lookoutbar from orpheous from a previous project written in Delphi 6. ...

Application.ProcessMessages hangs???

my single threaded delphi 2009 app (not quite yet complete) has started to have a problem with Application.ProcessMessages hanging. my app has a TTimer object that fires every 100 ms to poll an external device. i use Application.ProcessMessages to update the screen when something changes so the app is still responsive. one of these ...

When I add a TPanel to a TToolBar, do I get a TPanel or a TToolButton ?

When Delphi (2006) goes quantum: I've got "something" that appears to be both a TToolBar and a TPanel, depending on how you observe it. I'd like to understand what's going on. Here is how to create it and what happens: in the DFM add a TToolBar named bar; in that TToolBar, put a TPanel. in the code and at runtime: the panel appea...

How To Scroll a TStringGrid dynamically?

Hello, I am working in the Borland C++Builder IDE, using VCL controls. I am trying to get a TStringGrid component to scroll down to a row and highlight that row, based on user input in a different form. I have the highlight portion done, but I can't figure out how to scroll the grid down to the correct row. Anyone here know? ...

Ugly "disabled" images of TMainMenu

Delphi 2010, Win32 VCL. I need to create a main menu for my application with the most standard look. TMainMenu looks nice in all Windows versions, the only bad thing is when it displaying images for items with Enabled=False. Delphi has some strange method for building that disabled images (b/w extrusion with bevels, for me it looks lik...

Looking for radial popup menu component for Delphi

Radial menus have started appearing in several places. I'm curious whether anyone has seen or is working on a radial menu component for Delphi? We have a concept of what we'd like, shown in the animated gif at http://jmrsoftware.delaneyjoi.com/wheel.gif. (It takes about 10 seconds for the menu animation to start.) Does anyone know ...

how to sort in Tlistview based on subitem[x]

hey all how to sort in tlistview with data present in subitem[x] regards ...

How to detect when the mouse move away from a TPanel in Delphi 6?

Hi everyone, I am using the OnMouseMove event to detect when the mouse pointer is over my TPanel, is there a way to know when the mouse pointer had moved away from it? I need the panel to change colour when the mouse pointer is over it and return to its original colour once it moved away from it? I am using Delphi 6 by the way. Pleas...

How to mix std::stream and Delphi TStream?

I'm using C++Builder, and am trying to slowly migrate code to using C++ standard library in preference to the Delphi VCL. The VCL has a streaming architecture based around the TStream class, and I'm switching to using std::stream instead. However, in the short term, I still need a way of 'mixing' use of the two stream types. I can do ...

Delphi - What happens with un-freed (but terminated) thread when application exits?

Hello, I have multithreaded application and I've got a little problem when application ends: I can correctly terminate the thread by calling TThread.Terminate method in Form1.OnDestroy event handler, but the termination does take some time and so I can't free the memory (by TThread.Free method). Unfortunately for some other reason I mus...

Delphi : Prevent TPageControl Hint from showing on contained items.

I have a form with the following components: A TPageControl containing a single TTabSheet, containing a TEdit. I want a hint "Hello" displayed when I mouse over the pagecontrol tab, and no hint displayed when I mouse over the TEdit. The PageControl has a hint= "Hello", and showhint = true. This works as expected. The TEdit has showhin...

How can I scroll the content of a TFlowPanel ?!?

Delphi implementation of the TFlowPanel control seems to lack an important feature of the C# version, the AutoScroll one. The C# control with AutoWrap= False and AutoScroll=True behave like a horizontal scrollable list of controls. How can i mimic the behavior of the C# version of the control ? Thanks, Alin P.S. I know i can use TS...

How can I create an independent copy of a Delphi TBitmap?

I have an application that prints text and images to pages on a printer. At the footer, we output an image, which is cached by loading it once, and stored in a TBitmap. In the print routine, it creates a new TBitmap, then calls a function which assigns the cached bitmap. It then ends up calling Canvas.StretchDraw on that bitmap. Functio...

Parent/Child relationship with TControl

I want to implement Parent/Child relationship with TControl and I mean to be able to have a TControl that can serve as a container for another TControl. So far as I could see you can only do to that with TWinControl, why is that? and how I can make it to work for TControl? ...

Delphi 6 : breakpoint triggered on non-VCL thread stops main thread repaints

I have a multi-threaded Delphi 6 Pro application that I am currently working on heavily. If I set a breakpoint on any code that runs in the context of the Main thread (VCL thread) I don't have any problems. However, if a breakpoint is triggered on any code in one of my other threads, after I continue the application from the breakpoint...

Is there a selectable label control?

I'd like a selectable label control, like the one in the screenshot. It could be done with a borderless TEdit, but I was wondering if there is another way that would work with gradient background? To clarify, I'm using a simple PageControl, which since Win XP has gradient drawing, a borderless TEdit placed on a page doesn't blend in p...

Drawing Text At An Angle

I am writing a VCL/Delphi Application, and I need to draw text onto a Canvas object. I am having troubles though because I need the text to be at a variable size and angle. Is there any easy way of doing this? The TextOut method only takes arguments for the Starting Coordinates, so I dont know how i can get it to draw rotated text. Thank...

vcl.h: No such file or directory

I'm looking to compile some old source code in Visual C++. However, the first of many errors I am receiving is: vcl.h: No such file or directory This appears to be in reference to the Visual Component Library, native to Borland compilers it seems. I downloaded the free Borland C++ 5.5 command line compiler, but it doesn't seem to co...