Delphi

Removing firemonkey from Windows taskbar

℡╲_俬逩灬. 提交于 2020-01-01 12:33:08
问题 Is there a way, to remove my firemonkey application form Windows XP/vista/7 taskbar? There is no info when i google. The problem: How to hide the form that is located in a dll from the Windows taskbar. 回答1: NB: Talibek answered his own question within the question, for clarity I have moved it here. You need to get your main form handle ( Form1.Handle ), because there is no Application.handle in firemonkey, then convert it with FmxHandleToHWND ( FMX.Platform.Win ) to normal window handle. From

Is it possible to add a history list dropdown to Delphi's TButtonedEdit?

倖福魔咒の 提交于 2020-01-01 12:32:31
问题 I'm using Delphi XE2's TButtonedEdit but I would like to add a dropdown list for the history (like TComboBox). I know that TComboBox is a glorified TEdit, so is there a message I can send to TButtonedEdit to add this functionality please? Thanks. 回答1: You can use the IAutoComplete2 interface to accomplish this task. Check this sample code (adapted for TButtonedEdit and Delphi XE2), based on this answer (Auto append/complete from text file to an edit box delphi) from Ken White uses Winapi

Is it possible to add a history list dropdown to Delphi's TButtonedEdit?

瘦欲@ 提交于 2020-01-01 12:32:02
问题 I'm using Delphi XE2's TButtonedEdit but I would like to add a dropdown list for the history (like TComboBox). I know that TComboBox is a glorified TEdit, so is there a message I can send to TButtonedEdit to add this functionality please? Thanks. 回答1: You can use the IAutoComplete2 interface to accomplish this task. Check this sample code (adapted for TButtonedEdit and Delphi XE2), based on this answer (Auto append/complete from text file to an edit box delphi) from Ken White uses Winapi

Performing OpenGL Drawing from within a Thread

狂风中的少年 提交于 2020-01-01 12:31:51
问题 I've been wrapping the core OpenGL functionality within a Delphi VCL custom control. Currently, I am doing a loop using a TTimer created within this control. I strongly feel using a timer is completely wrong, as drawing could both overlap and have delays. Instead, I would like to put this drawing loop within a thread. Please refer to my original question with some issues of flickering - which I'm putting the blame on the TTimer which I'm using. Question Is OpenGL safe to use inside of a

Performing OpenGL Drawing from within a Thread

时间秒杀一切 提交于 2020-01-01 12:31:09
问题 I've been wrapping the core OpenGL functionality within a Delphi VCL custom control. Currently, I am doing a loop using a TTimer created within this control. I strongly feel using a timer is completely wrong, as drawing could both overlap and have delays. Instead, I would like to put this drawing loop within a thread. Please refer to my original question with some issues of flickering - which I'm putting the blame on the TTimer which I'm using. Question Is OpenGL safe to use inside of a

How can I communicate with WCF from Delphi using Named Pipes Binding

人走茶凉 提交于 2020-01-01 12:12:11
问题 Can I use Delphi 2007 to communicate with a WCF service using the netnamedpipebinding ? If so, then how? 回答1: I suggest that you create a COM-visible proxy for your service using .NET (and WCF!), then consume it from Delphi as you would any COM object. There are several reasons why implementing a native client for a WCF service listening on a NetNamedPipesBinding endpoint is extremely complex. See http://blogs.charteris.com/blogs/chrisdi for more details. 回答2: Yes, you should be able to do

Why shouldn't you use a handle during component creation or streaming?

别等时光非礼了梦想. 提交于 2020-01-01 12:08:30
问题 I want to make a custom VCL control that wraps a SDL rendering surface via the SDL_CreateWindowFrom function. SDL_CreateWindowFrom takes an existing HWND handle and puts a high-performance rendering context (it has several backends available, including DirectX and OpenGL) onto it. The helpfile says "Do not refer to the Handle property during component creation or streaming." But it doesn't say why. It says that the first time you try to access the Handle property, it'll call HandleNeeded to

MainFormOnTaskbar + tooltip causes focus-stealing

孤街浪徒 提交于 2020-01-01 12:04:11
问题 I built the code below using Delphi XE2. It creates Form1, and Form1 immediately creates an instance of Form2. When I press the button on Form2 a second Form2 is created. Now if I hover the mouse over the button on this second, topmost, Form2 and wait for the tooltip to appear, the moment the tooltip appears, the first Form2 comes to the front, stealing focus. The problem occurs only if Application.MainFormOnTaskbar is True . It also relies on the first Form2 being created from Form1's

MainFormOnTaskbar + tooltip causes focus-stealing

坚强是说给别人听的谎言 提交于 2020-01-01 12:03:14
问题 I built the code below using Delphi XE2. It creates Form1, and Form1 immediately creates an instance of Form2. When I press the button on Form2 a second Form2 is created. Now if I hover the mouse over the button on this second, topmost, Form2 and wait for the tooltip to appear, the moment the tooltip appears, the first Form2 comes to the front, stealing focus. The problem occurs only if Application.MainFormOnTaskbar is True . It also relies on the first Form2 being created from Form1's

How to fire events in a Delphi application from another Delphi application?

a 夏天 提交于 2020-01-01 11:55:12
问题 Please read before tagging as duplicate . I'm creating a set of applications which rely on smart cards for authentication. Up to now, each application has controlled the smart card reader individually. In a few weeks, some of my customers will be using more than one application at the same time. So, I thought maybe it would be more practical to create a service application which controls the authentication process. I'd like my desktop applications to tell the service application they are