Все вопросы: [vcl]

93 вопросов

похожие теги: vcl-stylesvarnish-vcl
14
голосов
12ответов
3974 просмотров

Determine if running as VCL Forms or Service

I have code which is used both in services and within VCL Form applications (win32 application). How can I determine if the underlying application is running as a NT Service or as an application? Thanks.

2
голосов
3ответов
3082 просмотров

VCL forms application writing to stdout

My company has a large Windows application with a document-object model: open application, open a file, make some changes, save, close. I'm attempting to cut the GUI off of the top and create a console application that accepts some parameters, opens a file, does something useful, saves, closes t...

3
голосов
2ответов
1584 просмотров

Delphi 2009 - Handle when window is restored via double clicking the SysMenu?

I need to handle when the user restores the form by double clicking the title bar. I tried handling the WM_SYSCOMMAND window message however this only works if the user restores the form via clicking the restore button in the system menu. I am using DevExpress ribbon form components if this matt...

3
голосов
3ответов
1083 просмотров

VCL for Web skins/themes?

Has anyone created a skin/theme wrapper for Intraweb/VCL for Web ? The default look of the grids etc are very dated.. Any info appreciated.

0
голосов
2ответов
502 просмотров

Borland C++ localization

I am currently using Codegear RAD Studio 2007. One of my company clients' decided that he would be interested in localized version of our software (to Russian - I don't know if it matters, that we won't be able to use standard windows code page). As a part of our software we are using RAVE to gen...

11
голосов
1ответов
13872 просмотров

Remove Item from ListBox?

Is there any way to remove item from listbox based on it's name but not index value? I would like to remove item named "Mouse" (which index # changes all the time).

3
голосов
2ответов
1917 просмотров

Finding out position of a control inside TGridPanel

How I can find out the position (row and column index) of controls inside TGridPanel? I'd like to use common OnClick event for number of buttons and need to know the X,Y position of the button. I'm using Delphi 2007.

14
голосов
4ответов
4805 просмотров

Delphi VCL for Win32 - multiple event handlers

I'm looking for some code allowing easy asigning many event handlers to a single event of object... I needed it very much for my plugin architecture, so I implemented some replacement for that, however I don't like my solution for that, so I'd like to know what is yours idea/solution/tip ... My s...

2
голосов
1ответов
1471 просмотров

Terminate Excel Application using OLE

How can I mannually terminate an excel application using OLE Automation? I would like to do this in some exception handling so that an excel process does not remain running if a function throws an error. Currently I use the below code to open excel: Variant excel = Variant::CreateObject("Exce...

3
голосов
3ответов
3062 просмотров

How to create a non-rectangular button with Delphi?

How to create a transparent non-rectangular button with Delphi?

1
голосов
3ответов
833 просмотров

TabSheet does not display images

Is there any reason why images are not being displayed if I place it into tabsheet? Just shows white background instead.

1
голосов
2ответов
264 просмотров

C++ Builder 2007 message dialog problem

My message dilogs seem to disppear below the main form. This only random. Most of the time it displays correctly on top, but some times disppear behind the main application form . What could be the reson? Thanks

1
голосов
1ответов
738 просмотров

Error on setting TDateTimePicker.Font.Style to italic in Delphi 5

Is it possible to set TDateTimePicker’s font to italic? I am doing it in this code var DatEdit : TDateTimePicker; begin //I know Canvas is a stupid name for TPanel DatEdit:=TDateTimePicker.Create(Canvas); DatEdit.OnEnter := CtrlInputProc; DatEdit.OnExit := CtrlExitProc; DatEdit.Enab...

4
голосов
4ответов
1358 просмотров

Checking for Copy vs. Move in Delphi Drag and Drop

Using the 'standard' VCL drag and drop events OnDragOver and OnDragDrop, how can I distinguish between "Copy" and "Move" operations? I don't seem to have a TDragType available, and the keyboard Shift state isn't passed to these events.

1
голосов
3ответов
1979 просмотров

How can parent form tell if a non-modal form is still open?

If a Modal form creates a form and does .Show, how can the parent later determine if the non-modal form is still open or if the user closed it?

1
голосов
1ответов
6137 просмотров

Showing cell content on hint in DevExpress grid

I am using TcxGridDBTableView from DevExpress. Some of the cells contain really long strings, so I want to be able to show them to users using Hints. I want also to be able to do have line brakes in hint in places of semicolon in my text. Do you know how to simply achieve this?

1
голосов
2ответов
521 просмотров

How can different instances of the same form class use different window class styles?

I try to use the following technique in order to enable/disable the shadow effect for a window: (The CreateParams is of course overriden. The TToolWindow descends from TForm). procedure TToolWindow.CreateParams(var Params: TCreateParams); var LShadow: boolean; begin inherited; if (Win32...

3
голосов
5ответов
5517 просмотров

How to tile a Image in TImage?

How do I tile an image in a TImage in Delphi? Why I need it: Instead of creating more TImages at runtime, I could create one and store my image there knowing that it will be 'fit' until it reaches TImage's height and width. Please suggest any ideas to do this. Thank you! EDIT: Please note, I'...

4
голосов
3ответов
4198 просмотров

How to disable/hide icon from a form?

How do I create a second form with a close button,but without an icon.

2
голосов
2ответов
6132 просмотров

DBGrid scroll page instead of row

Well I have an issue with DBGrid vertical scrolling. When I scroll it vertically with mousewheel or vertical scrollbar it moves selected row up and down. I want to make it scroll not selected row but entire grid. Just like it works in Microsoft Excel for example (just to let you know what I mean)...

44
голосов
3ответов
61974 просмотров

What's the difference between Refresh, Update and Repaint?

I don't know which of those three methods suits me most. They all work for me. Does anyone know the difference between Refresh, Update and Repaint?

2
голосов
3ответов
2082 просмотров

Creating a custom form designer

I'd like to create a custom "datamodule" in Delphi, a TDataModule like (maybe inherited) class which would have a custom grid based design interface (one component per line, some properties as columns). Is this possible? Where should I start? I'm currently using Delphi 2007.

4
голосов
3ответов
1097 просмотров

Under what conditions will a TForm fire OnResize on show?

As an extension of this question: TForm.OnResize is sometimes fired before a form is first shown, but not always. For example, if BorderStyle is either bsDialog or bsNone, then OnResize will not fire. For all other BorderStyle values (and with all other properties at their defaults), OnResize do...

3
голосов
1ответов
623 просмотров

Will a Delphi form always fire OnResize when it's shown?

If I create a new Delphi form, hook its OnResize event, and run the app, OnResize is fired before the window is shown. What I don't know is whether this will always happen, for any window. (For anyone familiar with the Windows API, I've traced it to the ShowWindow call in TCustomForm.ShowingChan...

0
голосов
1ответов
377 просмотров

Problem with IDropTarget when using with a VCL Form

I have a VCL gui developed in Codegear. I have created a DropTarget for the mainform and the DropTarget object implements the IDropTarget interface which allows me to drag and drop files from explorer. Now because I only want some of the child components to be drop targets (not the whole form), I...

1
голосов
3ответов
275 просмотров

What is a "customizable VCL designer guideline" in Delphi?

The web page http://www.codegear.com/en/products/bds2006 starts with a list which includes this line: Ensure visual consistency with customizable VCL designer guidelines. Is this related to the 'laser-line' guidelines? How can these guidelines be 'customized'? Edit: This page gives ...

2
голосов
1ответов
1200 просмотров

Converting C++ Builder code to C# .NET (TComponent, TOjbect, TList, etc.)

Where can I find API documentation for TComponent, TObject, TList, etc.? I am converting some C++ code that was written using C++ builder into C#. I'm having trouble finding related documentation for these classes in order to find a C# equivalent.

10
голосов
5ответов
21392 просмотров

How to set two radiobuttons in one group and two in another group?

I have total 4 radiobuttons on my form,I want to set the first two buttons in one group and the second two in another group so that I can check one from the first group and one from the second group. Right now,if I check one from the first group,the one from the second group becomes unchecked. ...

1
голосов
3ответов
1651 просмотров

Component disabling and enabling at runtime in Delphi 2K9. Weird problem

Here is code: procedure DisableContrlOL(const cArray : array of string; ReEnable : boolean = False); // can be called from VKP / RAW / Generation clicks var AComponent: TComponent; CompListDis, CompListEna : TStringList; begin CompListDis := TStringList.Create; CompListEna := TStringList...

2
голосов
2ответов
3858 просмотров

Use of Frames in Delphi for GUI information hiding

I have been learning Delphi for the last 3 years, on a hobby/occupational level. I am happy to say that I have now progressed to the point that I can look back on my early code with horror and embarrassment. So I am now going through some of my early apps and rewriting/ refactoring them. One of ...