Hi,
Apparantly there are several issues with printing a bitmap (such as the size).
The code below should solve most of them:
var
Info: PBitmapInfo;
InfoSize: DWORD;
Image: Pointer;
ImageSize: DWORD;
Bits: HBITMAP;
DIBWidth, DIBHeight: LongInt;
begin
Printer.BeginDoc;
try...
Hi,
For some drag drop operations of data between a combobox and a listview I need the OnMouseOver and OnMouseUp events for the ComboBox. Does anyone know how to do this or where I can find a TComboBox with these events added?
Thanks,
Raoul
Hi,
I am trying to change popup window contents in a treeview depending on the node that is rightclicked.
It seems that when you release the mouse button after right clicking, the previously selected node gets selected. You first have to left click on the node to keep the node selected. This...
Hi,
I have a form with a lot of TEdits. I would like to fill the text property of each of them through a for statement.
I can't figure out how to refer to the specific TEdit dynamically. I know I can use an array of TEdit but isn't there another solution like:
for i := 1 to 45 do
('P'+i as...
After looking at the BDE I am now trying to figure out how to work with ADO.
I am trying to show the records of a paradox file in a dbgrid. With the BDE you can connect directly from a TTable to a table. With ADO it seems you first have to create a Data Source (after selecting Microsoft OLE DB...
Hi,
Anyone knows something about delphi and the photoshop .pds format. Is it possible to create a drawing application in delphi and save it in pds format (including layers)?
Thanks,
Raoul
I have two problems with deleting multiple (selected) items in a listview.
with ListView1 do
for j := 0 to Items.Count - 1 do
if Items[j].Selected then
ListView1.Items[j].Delete;
The problems are caused by the fact that apparantly it is not possible to manipulate the j integer...
Hi,
I have a TListView with an OnCustomDrawItem event. Visibility of Column 9 is set to false. This column is used as a flag in the OnCustomDrawItem event which looks like this:
procedure TEmailClientForm.ListView1CustomDrawItem(Sender: TCustomListView;
Item: TListItem; State...
Hi,
I am trying to pass a stringlist to a thread. Not much success so far. In brief this is what I have:
unit MailThread;
interface
Uses Classes, SysUtils, IdBaseComponent, IdComponent,
IdTCPConnection, IdTCPClient, IdMessageClient, IdSMTP, IdMessage,dialogs;
Type
TMailThread = Class(...
Hi,
I like to delete selected listview item using the Delete key. I tried the onKeyPress event handler but it doesn't work on the Del key.
How can I do this?
Hi,
Is it possible to use the standard windows glyphs directly in a program? I am working on an email client as part of a program and would like to use some of the outlook express glyphs.
thanks,
Raoul
Hi,
I looked for this on the Internet and also here in the search files. It seems there are several options like using the registry.
However all options I found fail. Whether I am connected or not it always returns the same state. So to me those options do not seems very reliable. I am on an...
This is probably not possible but I thought I ask anyway, just in case.
Can you write a tjpegimage directly into the document of a twebbrowser or is this only possible with standard html image tag and the jpeg saved to disk?
Raoul
Hi,
I have 2 tables and would like to return the name of an agent from table 2 by its ID in table 1. In php/MySql I would do something like this:
However in Delphi using a TQuery I have problems with the syntax as the table names are identified by their filename.
I tried:
But no results...
Hi,
I now understand the basics of the TreeView Component. The next step is inserting images. I found the following problems so far.
1. When you use 'AddChild' or 'AddChildObject' to add a node, The manual says that the new node is returned after the function is executed. But how can you...
Hi,
I am trying to get familiar with the treeview component.
What I basically try to do is dynamically create 3 root nodes. Add 2 nodes to the first rood node and add nodes to these nodes (3rd level). This third level also needs to get the Data property filled.
for example something like...
Hi,
I am currently adding email options to an app and would like to allow html emails. For this I need something like outlook express: text editor tab, html source code tab, preview tab.
The text editor tab will be more or less a basic wysiwyg html editor field (including font, image and table...
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.