Delphi Pages Forums  

Go Back   Delphi Pages Forums > Search Forums

Lost Password?

Showing results 1 to 50 of 113
Search took 0.02 seconds.
Search: Posts Made By: TiTeaM
Forum: General 08-23-2002, 11:51 AM
Replies: 2
Views: 666
Posted By TiTeaM
RE: Formating the layout of a number

Try this :
Format('%.2f',[Value]);
Forum: General 08-23-2002, 11:47 AM
Replies: 3
Views: 1,193
Posted By TiTeaM
RE: Object Names

What do you mean by 'object name' ?

If you want to know the name property value of a component, it may be possible but only if this application is built with Delphi (because the internal way used...
Forum: General 01-02-2002, 04:09 AM
Replies: 3
Views: 853
Posted By TiTeaM
RE: My master qustion is ... How to add my program/application to ...

May you send us the source of your CPLApplet function in order to allow us to determine the origin of your problem ?

Please verify that you catch the cpl_dblClk message command...
Forum: General 12-17-2001, 09:54 AM
Replies: 4
Views: 1,586
Posted By TiTeaM
RE: Javascript to Delphi conversion driving me MAD! - not solved

Just a silly translation, but it works !


function rhex(Value: LongWord): string;
const
HexChr = '0123456789abcdef';
var
I: Integer;
begin
SetLength(Result,8);
Forum: General 12-14-2001, 11:01 AM
Replies: 4
Views: 1,408
Posted By TiTeaM
RE: How to get the color of a pixel?

Thanks to have accepted my answer ...

Hum, you may send me the German message (I speak German as bad as I speak english !)

This class seems to work without raising an error, you may use it ......
Forum: General 12-13-2001, 10:39 AM
Replies: 1
Views: 975
Posted By TiTeaM
RE: Recursion function required to populate link-list

I don't know exactly why your function doesn't work (mainly because I don't know which component is used for dirMain) but the following function, inspired from your work, seems to work ... It doesn't...
Forum: General 12-13-2001, 10:15 AM
Replies: 4
Views: 1,408
Posted By TiTeaM
RE: How to get the color of a pixel?

Perhaps creating a canvas object to wrap the screen area may help you ...

Eg :

with TCanvas.Create do
try
Handle:=CreateDC('DISPLAY',nil,nil,nil);
...
Forum: General 11-25-2001, 01:02 AM
Replies: 2
Views: 1,023
Posted By TiTeaM
RE: How to clone the window explorer

... and in Delphi 6, you have two newest component : TShellListView and TShellTreeView. They reproduce all the Windows Shell behaviours, and show how you may use COM interfaces to manage system...
Forum: General 11-24-2001, 09:34 AM
Replies: 3
Views: 708
Posted By TiTeaM
RE: Mouse Coordenates on Screen

Mouse.CursorPos property does nothing but call Windows API GetCursorPos and SetCursorPos functions and wrap them to manage Delphi exceptions on fail.

I don't see why there should be more bug using...
Forum: General 11-21-2001, 07:07 AM
Replies: 5
Views: 2,297
Posted By TiTeaM
RE: About icon 16x16...

Hum ... I don't think that it is CreateIconFromResourceEx function which is used by Windows icons manager to resize icons ...

That is said, here is a small function which returns a 16x16 icon,...
Forum: General 11-19-2001, 10:18 AM
Replies: 6
Views: 3,194
Posted By TiTeaM
RE: Problem with Memo displaying ENTER characters.

First, sorry, I have made a mistake : it is AdjustLineBreaks function and not AdjustBreakLines ... Sorry.

Then, the following function should correct this bug ... I have tried to make a function...
Forum: General 11-19-2001, 09:26 AM
Replies: 6
Views: 3,194
Posted By TiTeaM
RE: Problem with Memo displaying ENTER characters.

Try this : Memo1.Text:=AdjustBreakLines(Memo1.Text);

I do not know if this function works in Delphi 5 (it works in Delphi 6).

It is due to the fact that the break is coded as just a CR...
Forum: General 11-19-2001, 09:19 AM
Replies: 2
Views: 1,373
Posted By TiTeaM
RE: Text from a particular window

you may use the windows api function WindowFromPoint in order to know the handle of the window the mouse is over.

eg :


function GetWindowText(Wnd: hWnd; var Text: string): Boolean;
var
L:...
Forum: General 11-15-2001, 11:17 AM
Replies: 4
Views: 662
Posted By TiTeaM
RE: Help With Saving A file.. in Runtime

It works well but, hum ...
1) a class instance have to be freed when the program used to need it. (and why do a clear with a newly created StringList ???)
2) GetDir(0,s), a strange and complicated...
Forum: General 11-14-2001, 08:54 AM
Replies: 2
Views: 755
Posted By TiTeaM
RE: Problem with Scanline

ok, but at this time, what is the interest to use the ScanLine system, if we have to wait for the Pixels very slow property ...
Forum: General 11-14-2001, 08:51 AM
Replies: 8
Views: 1,339
Posted By TiTeaM
RE: Do you have any idea about making small size applications.

Create an application without using VCL, as Luke has suggested, is certainly the better way to create a very small executable application. (10ko without Dll ! I have never seen it before)

But we...
Forum: General 11-13-2001, 01:37 PM
Replies: 3
Views: 735
Posted By TiTeaM
RE: LongDate to RegularDate

Perhaps it could be work :

function DecodeLongDate(const Source: string): TDateTime;
var
Temp,Buffer: string;
P: PChar;
CharKind, BufferKind: (Number,Letter,Symbol);
procedure...
Forum: General 11-13-2001, 12:13 PM
Replies: 2
Views: 1,573
Posted By TiTeaM
RE: PlaySound() without Application Freeze?

Try :

PlaySound(PChar(userpref.Alerts.Audio.FSndMsg), 0, SND_FILENAME or SND_ASYNC);

Read the Windows API Documentation for more details (particulary if you want to have a better control on the...
Forum: General 11-13-2001, 09:32 AM
Replies: 2
Views: 1,380
Posted By TiTeaM
RE: Show App when clicking on Start Menu Button?

But it is even more funny if you wrap clicks directly on the true start button, isn't it ?

Here it is a small unit you may integrate to your project which will broadcast an event on each click on...
Forum: General 11-13-2001, 08:37 AM
Replies: 3
Views: 7,246
Posted By TiTeaM
RE: Copy all text in memo by clicking a button

I'm agree with you when you say that it will be better to use classic coding method and your suggestion about using a TStringList is correct.

But NO ! A TStringList object has not an handle...
Forum: General 11-12-2001, 11:12 AM
Replies: 7
How
Views: 899
Posted By TiTeaM
RE: Could it be read from the reqistry?

I have never said that you was stupid ;-)

function GetApplicationDirectory: string;
begin
Result:=ExtractFilePath(ParamStr(0));
end;

somewhere (+ uses Registry;):
with TRegistry.Create do...
Forum: General 11-12-2001, 11:00 AM
Replies: 7
How
Views: 899
Posted By TiTeaM
RE: Could it be read from the reqistry?

What directory ?
The current directory is not stored in the registry !
Forum: General 11-12-2001, 10:02 AM
Replies: 1
Views: 1,149
Posted By TiTeaM
RE: Listview & Treeview

You have to check whether the extension have already been added.

Eg :
procedure TForm1.Button2Click(Sender: TObject);
var
NewNode: TTreeNode;
ListItem: TListItem;
FileExtention: String;
...
Forum: General 11-12-2001, 09:52 AM
Replies: 7
Views: 8,277
Posted By TiTeaM
RE: DoubleToInt, FloatToInt, or ExtendedToInt?

It is not possible in the extent of you cannot preserve the floating precision (you have to reduce your number to an integer approximation).

But Delphi allows you to round or trunc a floatting...
Forum: General 11-12-2001, 09:40 AM
Replies: 4
Views: 1,070
Posted By TiTeaM
RE: Add items to listbox with add feature!

NO ! ;-)

TStrings is a class, also when you type :

Information[Length(Information) - 1] := RichEdit2.Lines;

you doesn't copy the strings but you make a second reference to the same string...
Forum: General 11-12-2001, 09:04 AM
Replies: 7
How
Views: 899
Posted By TiTeaM
RE: How

NO ! GetDir, like GetCurrentDir, returns the current directory where the user is : it is not the executable directory ! Eg. : if your application has a file dialog, and if the user opens or saves a...
Forum: General 11-12-2001, 08:55 AM
Replies: 1
Views: 1,059
Posted By TiTeaM
RE: Delphipages Forum NEVER CAN HELP ME?! ! ! DirectSound Question

Use a fast fourier transformation on your buffer ...

It is a math problem, not a Delphi one !

But I have made a whole unit which encapsulates all you need to use sounds with Windows (it is yet...
Forum: General 11-12-2001, 08:50 AM
Replies: 3
Views: 1,104
Posted By TiTeaM
RE: Retrieve "Folder Modified" Date

Your problem is due to FileAge function uses a classic search routine in order to retrieve file informations and skips (for an unknown reason) all directories ...

Perhaps this following function...
Forum: General 10-07-2001, 02:29 AM
Replies: 2
Views: 1,095
Posted By TiTeaM
RE: how to send the history-list of an opendialog to registry or ini

In order to use only one value of the registry, you may also use commatext ...

Two procedures in order to write and read TStrings to and from a registry value
procedure RegWriteStrings(Registry:...
Forum: General 10-06-2001, 08:20 AM
Replies: 2
Views: 3,704
Posted By TiTeaM
RE: Dynamic Timer - NON GUI - OnTimer Event Problem

First of all, an event must be linked to a method and not to a standard procedure. That's to say that you have to create a class with a method which will be linked to your OnTimer event.

Then, you...
Forum: General 10-05-2001, 10:29 AM
Replies: 1
Views: 858
Posted By TiTeaM
RE: keyboard

Where do you want to disable these keys ?

- In your application -> you have to write a manager for the OnKeyPress event and put the Key variable to #0 when the Key must be disabled.

- In the...
Forum: General 10-05-2001, 10:27 AM
Replies: 1
Views: 1,016
Posted By TiTeaM
RE: editing registry

You may simply use the TRegistry object in the Registry unit.

Eg:

uses
Registry;

begin
with TRegistry.Create do
try
Forum: General 10-05-2001, 09:24 AM
Replies: 7
Views: 1,369
Posted By TiTeaM
RE: Flashing icon on tray

Theorically, a process (a program) can have as many thread as it needs (the execution of each threads is independant).

But, when your program has too many threads (eg. more than 16), it can...
Forum: General 10-04-2001, 12:16 PM
Replies: 7
Views: 1,369
Posted By TiTeaM
RE: Flashing icon on tray

Gloups, if you want that your thread makes the icon blinking every 0.2s, you have to replace my stupid Sleep(5000) by a Sleep(200) !!!
Forum: General 10-04-2001, 12:14 PM
Replies: 7
Views: 1,369
Posted By TiTeaM
RE: Flashing icon on tray

You may follow this two ways :

1) Progressive copy

You may copy a single long file in several blocks, and between each block, do a ProcessMessages in order to execute your Timer.

eg :
...
Forum: General 10-03-2001, 11:24 AM
Replies: 5
Views: 1,711
Posted By TiTeaM
RE: How to change the order of chars in a string

I have written the following algorithm which is much more optimized than the first ! (about 10 times faster ...)


function Scramble(const S: string): string;
var
I,L: Integer;
C: Char;
...
Forum: General 10-03-2001, 09:29 AM
Replies: 5
Views: 1,711
Posted By TiTeaM
RE: How to change the order of chars in a string

Maybe it may help you ...

function Scramble(const S: string): string;
var
I,L: Integer;
C: Char;
begin
Result:=S;L:=Length(Result) shr 1;
for I:=1 to L do
begin
Forum: General 10-03-2001, 09:15 AM
Replies: 2
Views: 914
Posted By TiTeaM
RE: How to make an item remain highlighted when not focused?

You may lower HideSelection property to false. However, the highlight will become gray when the ListView loses the focus.
Forum: General 10-03-2001, 09:12 AM
Replies: 2
Views: 837
Posted By TiTeaM
RE: Small question

No, sorry.

In fact, a function's result is managed like a standard variable the type of which is the type of the function (in your case, integer). That is to say that this result value, like any...
Forum: General 09-14-2001, 09:22 AM
Replies: 1
Views: 1,654
Posted By TiTeaM
RE: 10-channel equalizer

It is possible.

First, in order to acquire sound data or play it, you should use the Windows WaveForms API.

Then, in order to make an equalizer, you have first to convert wave data...
Forum: General 09-14-2001, 09:13 AM
Replies: 2
Views: 2,961
Posted By TiTeaM
RE: Move cursor

Certainly, but why should we use the Windows API when Delphi's object set allows us to do this with an easier and more portable (Kylix) method ?

To set the mouse cursor position at a point the...
Forum: General 09-09-2001, 12:53 PM
Replies: 4
Views: 1,108
Posted By TiTeaM
RE: Please! I need to know how to use custom cursor in popupmenu!!!

And what about a second small window without caption ? (if you want to customize the cursor, you have probably used also CustomDraw functionnalities, so you have just to redirect your customdraw...
Forum: General 09-09-2001, 12:46 PM
Replies: 5
Views: 3,647
Posted By TiTeaM
RE: RE: Frames in a DLL

Second gloops (I'm very tired !) :

SelectHostNext function must verify that there is a next control before focusing it. I am sorry for this mistakes ...

function SelectHostNext(GoForward:...
Forum: General 09-09-2001, 12:16 PM
Replies: 5
Views: 3,647
Posted By TiTeaM
RE: RE: Frames in a DLL

Gloops, if we want to be complete, we have to manage the case of the frame window is empty (either it has no sub window controls (eg. only labels or speedbuttons) or it has not been opened) and that...
Forum: General 09-09-2001, 12:06 PM
Replies: 5
Views: 3,647
Posted By TiTeaM
RE: RE: Frames in a DLL

First, I have forgotten an important point in my last answer : the docked form must be shown so as to be visible.

For managing the tab key, I have not found a smart and nice way ... However I have...
Forum: General 09-09-2001, 08:33 AM
Replies: 9
Views: 1,421
Posted By TiTeaM
RE: Revers to CommaText

Well, well, well, you want retrieve the first line in a stringlist converted into a commatext ? And why don't you do that :

function GetLineOf(const AText: string; LineIndex: Integer): string;...
Forum: General 09-09-2001, 06:24 AM
Replies: 5
Views: 3,647
Posted By TiTeaM
RE: Frames in a DLL

I have worked around a similar problem for a Delphi 4 application, without using frames since Delphi 4 did not have this functionnality ...

I used a standard form which has no border. When I want...
Forum: General 09-09-2001, 01:05 AM
Replies: 9
Views: 1,208
Posted By TiTeaM
RE: You helped out the first time already

TQuestion = class
constructor Create;
destructor Destroy;override;
private
FQArray: TStringList; // I have chosen a TStringList in order to store the virtual array content in the memory
...
Forum: General 09-08-2001, 04:45 AM
Replies: 2
Views: 776
Posted By TiTeaM
RE: Help meeeee!!!

Winprocs and Wintypes are Delphi 1 units which encapsulate procedures and types of the Windows API. Procedures and types had been separated since Pascal 16-bit compiler didn't able to compile units...
Forum: General 09-08-2001, 04:36 AM
Replies: 13
Views: 1,756
Posted By TiTeaM
RE: Question for a math genius...

... But it is not so far from the true answer !

function ConvertFileSize(Source: Integer;
SourceUnit, TargetUnit: Integer): Integer;
begin
if SourceUnit>TargetUnit then
Result:=Source...
Showing results 1 to 50 of 113

 
Forum Jump

All times are GMT. The time now is 05:18 PM.


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