I have some code for converting a color bitmap to 8-bit grayscale bitmap (GrayBmp: TBitmap) which includes the following:
var
GrayPalette: TMaxLogPalette;
begin
GrayBmp.PixelFormat := pf8Bit;
SetGray256Palette(GrayPalette); // Set palette colors
GrayBmp.Palette :=...
I have several forms that use a TMainMenu. I want to display the Hint item for the various menu and (where applicable) submenu items. However none of the hints I set are displayed.
I have buttons on the same forms that correctly display their hints.
I have checked that Application.ShowHint is...
I'm trying to use the ActiveX PDF component that comes with Delphi 7. All works fine, EXCEPT the area used by the component to display the document on the form doesn't change as the form size changes. The component reports the correct changed size for both the width/height and...
I made the mistake of doing some testing on the effects of changing the user setting of the windows Font Size while having Delphi 7 open. After I changed from Normal to Extra Large my Delphi toolbar layout had been thrown into complete disarray. Worst of all after I changed back to Normal the...
The program I am working on incorporates a large amount of ascii data which is input as RC_Data within a .res file.
This data dominates the size of the executable.
Is there any way of storing the data in a compressed format (e.g. zip) within a res file, and then uncompressing when it is loaded...
I have the handle of another application's main form of a known type. I want to display that form in the foreground in the Default (Normal) condition. The current state of the form is either Minimized or Normal.
The best I have achieved is by using:
ShowWindow(FormHandle, SW_SHOWDEFAULT)...
I want to convert a truecolor bitmap with HandleType bmDIB and PixelFormat pf24Bit into a 256 grayscale with PixelFormat pf8Bit.
I have a function for converting a pf24Bit bitmap to grayscale
procedure ConvertBmpToGrayscale(var Bmp: TBitmap);
const
MaxPixelCount = 32768;
type...
I want to add appropriate exception handling with useful messages when loading and saving various descendants of TGraphic using the LoadFromFile and SaveToFile procedures.
The files are selected using the standard Delphi OpenDialog (for LoadFromFile) and SaveDialog (for SaveToFile).
What...
Really simple one.
What's the easiest way to determine the Form that contains a specified control? I know I could search up through the parents until I find type TForm, but is there an easier way?
I need to identify the supporting windows files (.dll etc) that are required to deploy the application I am developing. The Delphi help file does not say anything about how to determine what files are needed. The files I am concerned about mainly relate to the Windows API.
I am using Delphi 7...
I want to install all the following Windows OS on a single machine: 98/98se/Me/NT4/2000/XP. This machine will be used solely for testing software installation and running prior to release.
I have System Commander 7.0, but am not clear about the best way to use it so that all 6 OS are isolated...
I want to install all the following Windows OSs on a single machine: 98/98se/Me/NT4/2000/XP. This machine will be used solely for testing software installation and running prior to release.
I have System Commander 7.0, but am not clear about the best way to use it so that all 6 OS are isolated...
I want to install all the following Windows OSs on a single machine: 98/98se/Me/NT4/2000/XP. This machine will be used solely for testing software installation and running prior to release.
I have System Commander 7.0, but am not clear about the best way to use it so that all 6 OSs are isolated...
I want to install all the following Windows OSs on a single machine: 98/98se/Me/NT4/2000/XP. This machine will be used solely for testing software installation and running prior to release.
I have System Commander 7.0, but am not clear about the best way to use it so that all 6 OSs are isolated...
I want to install all the following Windows OSs on a single machine: 98/98se/Me/NT4/2000/XP. This machine will be used solely for testing software installation and running prior to release.
I have System Commander 7.0, but am not clear about the best way to use it so that all 6 OSs are isolated...
I am using a descendant of TGraphicControl as a display for a large number of objects presented on a form. I need to implement a simple capability for 2 different responses dependent on whether the user clicks or drags an object. I identify which object from the coordinates at the MouseDown...
When I open a form with a TListBox component I want to have the last used item already selected as though the user had just clicked the mouse on it.
How can I preselect a known item in a listbox when the form is first shown?
I'm trying to use the TShellTreeView component as a simple directory selector within a preferences form. Seems to work fine for what I'm doing EXCEPT when I set the Root directory as an explicit string it does not display the correct root directory name. It always seems to display the level 1...
I am currently designing a game suite which has at it's core a central set of properties, methods and sub-classes implemented in an abstract class TGameCore. Each game will be a descendant of this core, providing its own special implementation of the abstract methods defined in TGameCore.
Unit...
I have an existing program developed using the IDE with the size of the main form set by values of ClientWidth & ClientHeight in the Object Inspector. I now find I need to set the size of the main form at start up derived from data read from a file during form create.
However, deriving the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.