Delphi Pages Forums  

Go Back   Delphi Pages Forums > Search Forums

Lost Password?

Showing results 1 to 50 of 73
Search took 0.07 seconds.
Search: Posts Made By: pascal.enz
Forum: General 03-17-2003, 02:16 AM
Replies: 3
Views: 792
Posted By pascal.enz
RE: Hi. Count the rows in a Memo

Use the following code:

var
Row, Col: Integer;
begin
Row := SendMessage(Editor.Handle, EM_LINEFROMCHAR, Editor.SelStart, 0);
Col := Editor.SelStart - SendMessage(Editor.Handle,...
Forum: General 10-29-2001, 12:10 AM
Replies: 3
Views: 1,318
Posted By pascal.enz
RE: How do I play 2 sounds at the same time?

Look for the WaveMix Unit from Carlos Barbosa. It should be available in the components section from Delphi Pages.

P.E.
Forum: General 09-19-2001, 03:42 AM
Replies: 3
Views: 987
Posted By pascal.enz
RE: Question about visual component

Explanation:

>> Button1 := TButton1.Create(Self);

Self is the owner of the button. If you free the GroupBox, the Button will be destroyed as well.

>> Button1.Parent := Self;

Self is the...
Forum: General 07-26-2001, 05:33 AM
Replies: 3
Views: 789
Posted By pascal.enz
RE: DLL functions

There is a tip available at swissdelphicenter that shows how to list all the functions that a unit exports. But I don't know how to list the parameters
...
Forum: General 07-13-2001, 04:17 AM
Replies: 1
Views: 903
Posted By pascal.enz
RE: PIDL (Pointer to ItemIDlist) where can I learn?

Have you seen the Virtual ListView Example from the Delphi Demo Projects?

...\Delphi\Demos\Virtual ListView\VirtualListView.dpr

I thank that should be a great help,
P.E.
Forum: General 07-12-2001, 11:01 PM
Replies: 2
Views: 1,168
Posted By pascal.enz
RE: How do I read Functions or Procedures fromm *.DLL?

To list all functions that are exportet by a dll show the code on the following web site:

http://www.swissdelphicenter.ch/en/showcode.php?id=247
Forum: General 07-12-2001, 07:01 AM
Replies: 2
Views: 1,077
Posted By pascal.enz
RE: Why does scanline never work?

There is a mistake in the for loop!

correct:
For J := bitmap.Height -1 downto 0 do ...
For J := 0 to bitmap.Height -1 do ...

incorrect:
For J := bitmap.Height -1 to 0 do ...
For J...
Forum: General 07-12-2001, 05:47 AM
Replies: 2
Views: 5,244
Posted By pascal.enz
RE: Timage with scrollbars??

Insert a TScrollBox on your Form where the TImage is and set the BorderStyle-Property to bsNone. Insert the TImage into the TScrollBox at position 0, 0 and set the AutoSize property of the TImage to...
Forum: General 07-11-2001, 05:30 AM
Replies: 1
Views: 1,417
Posted By pascal.enz
RE: Please help with this Rich Edit question ?

The $7FFFFFFF is a hex value and is the same like 2147483647. (Use the Windows calculator to convert).

So the following means the same and both is possible.
...
Forum: General 07-11-2001, 05:22 AM
Replies: 2
Views: 1,215
Posted By pascal.enz
RE: Dynamic Menuitems Indexes

The sender of the MenuItem's On Click event is the MenuItem. So you can find out which menu Item was clicked. Then use the MenuIndex or the Tag property to specify the item.

procedure...
Forum: General 07-09-2001, 07:05 AM
Replies: 1
Views: 1,013
Posted By pascal.enz
RE: How do I play two sounds at the same time? (Not only Wave)

Mmh, that's difficult. I think DirectX (DirectSound, DirectMusic) is the solution. But I don't know a lot of programming DirectX with Delphi.

Should it be freeware? There are a lot of very good...
Forum: General 07-09-2001, 04:22 AM
Replies: 1
Views: 1,050
Posted By pascal.enz
RE: How do I play 2 sounds at the same time?

There are two freeware components/units available at Delphi Pages. Both are from Carlos Barbosa. The first one is a component called WaveMix which uses the Windows WaveMix DLL. The other one is a...
Forum: VCL 07-05-2001, 01:39 AM
Replies: 1
Views: 2,576
Posted By pascal.enz
RE: How can I store a VCL in a DLL

The problem is, that the Application and the DLL have a own copy of the whole VCL. That means that a TObject (and all Descendent) from the Application isn't the same TObject as in the DLL. So what...
Forum: General 07-04-2001, 11:41 AM
Replies: 5
Views: 3,246
Posted By pascal.enz
RE: How to check if a string is a valid directory-name

If the directory exists, you could use the DirectoryExists function from the FileCtrl unit.
Forum: General 07-01-2001, 11:24 PM
Replies: 4
Views: 13,047
Posted By pascal.enz
RE: How can i bring my aplication to the front of screen?

All the functions BringWindowToTop, SetForegroundWindow, Form.BringToFront, Application.BringToFront doesn't work with Window98/ME/2000. Take a look at a tip on Swiss Delphi Center which shows how to...
Forum: General 06-29-2001, 07:08 AM
Replies: 2
Views: 1,089
Posted By pascal.enz
RE: Getting Windows icon from Handle...

Just assign your Handle to the Handle property of an TIcon component.

var
Icon: TIcon;
begin
Icon := TIcon.Create;
try
Icon.Handle := YourIconHandle;
Canvas.Draw(10, 10, Icon);...
Forum: General 06-28-2001, 06:53 AM
Replies: 1
Views: 775
Posted By pascal.enz
RE: Making a Component.....

This is a very simple example.

initialization

type
// The declaration of you Dialog
TForm1 = class(TForm)
private
public
end;
Forum: General 06-28-2001, 06:46 AM
Replies: 1
Views: 1,304
Posted By pascal.enz
RE: How can I replace colors of an bitmap image *fast*?

I think the following example shoud do that. It processes every pixel as vell. But it works with the fast scanline method. For more Information about scanline go to www.efg2.com

TRGBArray =...
Forum: General 06-26-2001, 11:38 PM
Replies: 3
Views: 944
Posted By pascal.enz
RE: String, Numeric etc...

var
Value, Err: Integer;

Val(Edit1.Text, Value, Err);

if Err <> 0 then
ShowMessage('String Value)
else
ShowMessage('The numeric value is' + IntToStr(Value));
Forum: General 06-26-2001, 11:33 PM
Replies: 2
Views: 1,501
Posted By pascal.enz
RE: How can I send a print job to other printer than default printer?

Uses Printers;

Printer.PrinterIndex := Printer.Printers.IndexOf('My Printer');

Is that what you mean?
Forum: General 06-21-2001, 12:10 PM
Replies: 2
Views: 1,357
Posted By pascal.enz
RE: RE: How to read ID3v2 Tag

Thanks for your help. I already know how to read a standard ID3 tag.
But I want to know how to read a version 2 tag. (With composer, lyric, etc.)
Forum: General 06-21-2001, 08:06 AM
Replies: 2
Views: 1,357
Posted By pascal.enz
How to read ID3v2 Tag

Hi,

where can I find more information about reading ID3v2 Tags from a mp3 file with Delphi? Or are there any components available?

Thanks...
Forum: General 06-12-2001, 11:45 PM
Replies: 6
Views: 4,844
Posted By pascal.enz
RE: How to prevent a form from minimize?

OK, I've found somthing.

Windows "Minimize all" doesn't really minimizes the Windows, it only sets the Desktop-Hwnd to the top of the Z-Order. The following code will stop that for my form.
...
Forum: General 06-12-2001, 03:08 AM
Replies: 6
Views: 4,844
Posted By pascal.enz
RE: RE: RE: RE: RE: How to prevent a form from minimize?

Mh, the OnMinimize-Event isn't called when Windows Minimizes all windows.
Forum: General 06-11-2001, 11:07 PM
Replies: 6
Views: 4,844
Posted By pascal.enz
RE: RE: RE: How to prevent a form from minimize?

Thanks for your answers.

This works only when I click the minimize button on the form. But my form don't has a minimize button.

I should capture the "Minimize all" command from the Windows Task...
Forum: General 06-10-2001, 11:18 PM
Replies: 6
Views: 4,844
Posted By pascal.enz
How to prevent a form from minimize?

Please help!

I don't want to minimize my application, even when the user the explorer menu "Minimize All Windows" chooses.

How can I stop that?

Thanks!
Forum: General 05-09-2001, 07:21 AM
Replies: 8
Views: 9,104
Posted By pascal.enz
RE: RE: How to scroll a TListView by Code

OK, that works. Thanks for your help.

P.S. Sorry, But now I could find ot somthing new:

TListItem.MakeVisible(False);
Forum: General 05-09-2001, 07:09 AM
Replies: 8
Views: 9,104
Posted By pascal.enz
RE: RE: RE: RE: RE: RE: How to scroll a TListView by Code

I'm using a TListView not a TListBox. There is not TonIndex Property available.

But thanks for your help.
Forum: General 05-08-2001, 10:55 PM
Replies: 8
Views: 9,104
Posted By pascal.enz
RE: RE: RE: RE: How to scroll a TListView by Code

No, the TopItem property is ReadOnly.

Thanks anyway.
P.E.
Forum: General 05-08-2001, 07:54 AM
Replies: 8
Views: 9,104
Posted By pascal.enz
RE: RE: How to scroll a TListView by Code

The Scroll function works. But It's actually for use with other ViewStyles. It's very difficult to work with pixel metrics in the vsReport ViewStyle. So I can't find out exactly if the selected Item...
Forum: General 05-08-2001, 05:51 AM
Replies: 8
Views: 9,104
Posted By pascal.enz
How to scroll a TListView by Code

Hi there,

I've got a TListView with ViewStyle = vsReport. I wrote a search function which selects a specified item. But how can I scroll the seleted Item into the visible part of the list?
...
Forum: General 04-24-2001, 08:12 AM
Replies: 2
Views: 1,378
Posted By pascal.enz
RE: Problems with SetForegroundWindow on Windows 2000

OK, guys, I could localize the problem. I used a DLL which created a component at startup and destroyd it on finalization. Windows 2000 couldn't work with it. I added two procedures (Init and DeInit)...
Forum: General 04-24-2001, 03:09 AM
Replies: 2
Views: 1,378
Posted By pascal.enz
Problems with SetForegroundWindow on Windows 2000

Hi,

I wrote a Delphi Application which worked very well on Windows 95, 98, NT, ME. But now with Windows 2000 the Application crashes after start. I could find out that the SetForegroundWindow...
Forum: General 04-20-2001, 12:57 AM
Replies: 1
Views: 2,166
Posted By pascal.enz
How to get Mouse Messages after handling WM_NCHITTEST Message

Hi there,

I'm writing a Control at the moment.

The control captures the WM_NCHITTEST message and chages the result to easy move and resize the control. But Now the Control doesn't executes the...
Forum: General 04-09-2001, 08:54 AM
Replies: 2
Views: 1,593
Posted By pascal.enz
RE: RE: tcolor to grey

Oh, I just saw that you're working with Delphi 2. I'm not sure the scanline property already exists in the Delphi 2 Version.

Don't worry, P.E.
Forum: General 04-09-2001, 08:49 AM
Replies: 2
Views: 1,593
Posted By pascal.enz
RE: tcolor to grey

Here's an example with using scanline:

type
TRGBArray = array[0..32767] of TRGBTriple;
PRGBArray = ^TRGBArray;

var
x, y, Gray: Integer;
Row: PRGBArray;
Forum: General 04-09-2001, 08:07 AM
Replies: 3
Views: 806
Posted By pascal.enz
RE: StringList to Strings

The TStringList is a descendent of TStrings and TStrings is a descendent of TPersistent. So I would recomand this way:

ListBox1.Items.Assign(StringList1);

P.E.
Forum: General 02-22-2001, 07:35 AM
Replies: 4
Views: 3,120
Posted By pascal.enz
RE: Simulate a key event

If you want to simulate a key event see the SendKey unit in the Extras folder on your Delphi CD. But for this problem you describe you wont need it. The Return key is actually #13 and #10.

The...
Forum: General 02-05-2001, 11:36 PM
Replies: 4
Views: 1,788
Posted By pascal.enz
RE: RE: Stop user from moving form around the screen?

Sorry, it is htCaption, not mtCaption.
Forum: General 02-05-2001, 11:34 PM
Replies: 4
Views: 1,788
Posted By pascal.enz
RE: Stop user from moving form around the screen?

I think the best way is to process the WM_HitTestMessage. It's the opposite of the thread "How to move a form without caption bar".

procedure OnHitTest(var Msg: TWMNCHitMessage); message...
Forum: General 02-05-2001, 02:52 AM
Replies: 2
Views: 1,126
Posted By pascal.enz
RE: How can I get info from a pointer ?

I think that should work:

MyString := PChar(Address);
Forum: General 02-02-2001, 02:46 AM
Replies: 3
Views: 3,556
Posted By pascal.enz
RE: How can I put an Updown-Object into an NumEdit-Object??

Why don't you use the TSpinEdit component from the samples palette?
Forum: General 01-30-2001, 11:02 PM
Replies: 1
Views: 3,789
Posted By pascal.enz
RE: 16-Bit resource editor (HACKER)

Look for the Borland Resource Workshop 4.5 (Free). It is on the Delphi 5.0 Professional CD. My be you can find it somewhere in the internet.

Good luck...
Forum: General 01-24-2001, 11:27 PM
Replies: 2
Views: 2,453
Posted By pascal.enz
RE: How can I draw figures directly on the screen

There is an example, which shows, how to create a canvas for the Desktop. You can draw directly on it or read from it. I would recommand to maximize a form without a border, copy the desktop canvas...
Forum: General 01-24-2001, 02:09 AM
Replies: 1
Views: 2,008
Posted By pascal.enz
RE: PLEASE HELP! (How to get my app to ignore the system settings?)

I dont really know how to ignore the system settings. But there are two important properties for the problem with large fonts:

-TCustomForm.PixelsPerInch (Standard: 96; Large Fonts: 120)...
Forum: General 01-23-2001, 11:07 PM
Replies: 2
Views: 3,724
Posted By pascal.enz
RE: RE: How can I check if a file is LOCKED

The easyest way is to work with a try...except structure. If en exception is raised while opening the file, the file must be locked.

try
OpenFile(Filename);
except
...
Forum: General 01-22-2001, 11:12 PM
Replies: 2
Views: 2,458
Posted By pascal.enz
RE: How do I list all the Files & folders in a directory (dir command)

You can list all the files with a FindFirst...FindNext structure. On this way it's possible to find out more about every file.

procedure ReadDir;
var
SR: TSearchRec;
Res: Integer;...
Forum: General 01-22-2001, 11:08 PM
Replies: 1
Views: 2,195
Posted By pascal.enz
RE: How a screenbuffer works

It's very simple to use a screen buffer. Create an Image in memory, draw or copy all your graphics on it and copy the hole canvas to your form.

procedure PaintIt;
begin
var
Bmp: TBitmap;
...
Forum: General 01-22-2001, 11:01 PM
Replies: 1
Views: 2,279
Posted By pascal.enz
RE: Which Database should I use???

I can recomand Borland Interbase. It is fast, easy to use and open source. It isn't neccessary to have Delphi C/S. You can find more information on http://www.borland.com/interbase
Forum: General 01-22-2001, 12:26 AM
Replies: 4
Views: 2,940
Posted By pascal.enz
RE: RE: Setting the windows WallPaper

Sorry, mistake by type: finaly = finally!
Showing results 1 to 50 of 73

 
Forum Jump

All times are GMT. The time now is 10:15 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.