Delphi Pages Forums  

Go Back   Delphi Pages Forums > Search Forums

Lost Password?

Showing results 1 to 50 of 500
Search took 0.02 seconds.
Search: Posts Made By: gLes
Forum: General 03-20-2006, 12:52 AM
Replies: 5
Views: 1,213
Posted By gLes
RE: Global Variables

One second thought...forget it, it wouldn't work, sorry, been doing too much C programming lately :)

So I suggest that you declare your global variable under the interface clause in your main unit...
Forum: General 03-20-2006, 12:48 AM
Replies: 5
Views: 1,213
Posted By gLes
RE: Global Variables

In the IDE, Project menu, View source item, you'll get the project sourcecode, enter define your global variables here:

program Project1;

uses
Forms,
Unit1 in 'Unit1.pas' {Form1};

{$R...
Forum: General 03-04-2006, 06:27 PM
Replies: 3
Views: 542
Posted By gLes
RE: Who runs/owns this forum?

support@delphipages.com

gLes
Forum: General 02-18-2006, 12:34 PM
Replies: 12
Views: 1,302
Posted By gLes
RE: Listing EXE files

Most likely you forgot to add the unit containing the EXE_Running function to the uses clause or the name might be mistyped somewhere...

gLes
Forum: General 02-18-2006, 09:20 AM
Replies: 2
Views: 956
Posted By gLes
RE: Query1.SQL.Text length

I think the only restriction might be the amount of RAM in your or the database server machine.

gLes
Forum: General 02-18-2006, 09:17 AM
Replies: 11
Views: 1,424
Posted By gLes
RE: 200,000 Record Array!?? too slow!!!

What does a record contain? Wouldn't it be easier to use database tables? Delphi has a good implementation of database engines, you might wanna try that :)

gLes
Forum: General 02-17-2006, 08:09 AM
Replies: 2
Views: 1,053
Posted By gLes
RE: App to block Orkut.com and MSN Messenger!

Perhaps you should add the hosts necessary for these services to the "hosts" file in the %systemroot%\system32\drivers\etc\ directory. I think MSN messenger uses the *.msgr.hotmail.com hosts...
...
Forum: General 02-11-2006, 03:46 AM
Replies: 8
Views: 1,273
Posted By gLes
RE: TParity Question

As I see this TParity type is an enum type, which means it is compatible with an Integer, so you can do this:

ApdComport.Parity := RadioGroup2.ItemIndex;

Just make sure the items in the...
Forum: General 02-06-2006, 09:33 PM
Replies: 2
Views: 554
Posted By gLes
RE: Browser Links

Have a look at this thread:

http://www.delphipages.com/threads/thread.cfm?ID=35568&G=35568

gLes
Forum: General 02-05-2006, 11:31 AM
Replies: 3
Views: 959
Posted By gLes
RE: Hiding Form After First Show

Go to Project menu, select View Source, now enter this line before Application.Run;

Application.ShowMainForm := False;

Hope that helps...


gLes
Forum: General 02-05-2006, 11:30 AM
Replies: 4
Views: 752
Posted By gLes
RE: How do I do the following

No actually the handle you received won't change until you do something with it, since it's just a result of the function you called to open the port. You see port opening should be just like opening...
Forum: General 02-05-2006, 09:22 AM
Replies: 1
Views: 511
Posted By gLes
RE: Another Cookie issue..

You need to assign a TidCookieManager component to it's CookieManager property (you'll find it on the Indy Misc tab). And you'll find plenty about it in the help file :)

gLes
Forum: General 02-05-2006, 09:16 AM
Replies: 4
Views: 752
Posted By gLes
RE: How do I do the following

While the filehandle is open it should be all yours :)

gLes
Forum: General 02-05-2006, 09:15 AM
Replies: 1
Views: 473
Posted By gLes
RE: Manipulating Another Window

1) http://msdn.microsoft.com/library/en-us/gdi/pantdraw_2him.asp
2) http://msdn.microsoft.com/library/en-us/gdi/devcons_7e2b.asp
3)...
Forum: General 02-05-2006, 09:10 AM
Replies: 3
Views: 959
Posted By gLes
RE: Hiding Form After First Show

If the form doesn't show then except for the OnCreate event, the others won't execute...ofcourse you can execute them "manually" from the OnCreate event:

procedure TForm1.FormCreate(Sender:...
Forum: General 02-05-2006, 09:07 AM
Replies: 2
Views: 3,428
Posted By gLes
RE: Subtracting from TDateTime value ?

There are numerous functions for this in the SysUtils unit, all of them end with the word Span, lookup DaySpan for example in the help file and you'll find the rest...

Hope that helps :)

gLes
Forum: General 02-05-2006, 09:04 AM
Replies: 2
Views: 529
Posted By gLes
RE: How do you change the defaultbtn on a messagedlg

Use the MessageBox function from the Windows unit. What you are looking for are the MB_DEFBUTTON2, MB_DEFBUTTON3, MB_DEFBUTTON4 flags:
...
Forum: General 02-05-2006, 12:15 AM
Replies: 1
Views: 8,562
Posted By gLes
RE: How Can I Get Class Name Of A Window?

The classname of what window?

If you want to know the classname of your form then it's always identical to it's typename, so forexample if your form is of TForm1 type, then it's classname will be...
Forum: General 02-05-2006, 12:07 AM
Replies: 3
Views: 3,260
Posted By gLes
RE: TStringList with AnsiString items

As I said TStringList can handle strings longer than 255 characters.

gLes
Forum: General 02-04-2006, 02:44 PM
Replies: 3
Views: 3,260
Posted By gLes
RE: TStringList with AnsiString items

What version of Delphi are you using? As far as I know the TStringList object implements AnsiStrings in all current version of Delphi...

gLes
Forum: General 01-22-2006, 02:02 PM
Replies: 1
Views: 496
Posted By gLes
RE: Accesing the bits of a file

You can only access files by the resolution of bytes, but you can convert bytes to binary format:

http://www.delphipages.com/threads/thread.cfm?ID=135570&G=135450

gLes
Forum: General 01-18-2006, 08:12 PM
Replies: 4
Views: 550
Posted By gLes
RE: Scrolbars on t image

It works for me alright. Is the TImage's Anchors property set to [akLeft, akTop], and its AutoSize property to True?

gLes
Forum: General 01-18-2006, 06:12 AM
Replies: 3
Views: 1,971
Posted By gLes
Forum: General 01-18-2006, 03:47 AM
Replies: 4
Views: 550
Posted By gLes
RE: Scrolbars on t image

Put the TImage into a TScrollBox, and set it to AutoSize :)

gLes
Forum: General 01-18-2006, 03:45 AM
Replies: 3
Views: 1,971
Posted By gLes
RE: How do I replace all the tabs with carriage returns in a memo box

Try this:

Memo1.Lines.Text := StringReplace(Memo1.Lines.Text, #9, #10#13, rfReplaceAll);

gLes
Forum: General 01-18-2006, 03:41 AM
Replies: 9
Views: 3,131
Posted By gLes
RE: TImage.canvas.TextOut to TJpegImage---poor text quality

Do these images have peculiar characteristics? Because JPEGs are mostly for natural like images (even digital blasphemy :)), since the loss of image quality isn't noticable, GIF is rather for the...
Forum: General 01-17-2006, 04:28 PM
Replies: 9
Views: 3,131
Posted By gLes
RE: TImage.canvas.TextOut to TJpegImage---poor text quality

Try setting the TJPEGImage to better quality, have a look at the CompressionQuality and the Performance properties in the Help file.

gLes
Forum: General 01-17-2006, 01:09 AM
Replies: 3
Views: 791
Posted By gLes
RE: D7, XPManifest and Labels bug

You can derive your own custom component from the TStaticText class. I remember that in Delphi 5, the TLabel component didn't initally have these events, you had to make your own version. I know I...
Forum: General 01-16-2006, 01:24 PM
Replies: 3
Views: 791
Posted By gLes
RE: D7, XPManifest and Labels bug

Try using TStaticText components instead of TLabels, they are very similar, but implement Windows, like Panels do.

gLes
Forum: General 01-15-2006, 03:07 PM
Replies: 1
Views: 575
Posted By gLes
RE: Which version of Delphi supports dual core?

All 32-bit Delphi versions, which support threads, cause it's not Delphi that handles multiple CPU cores, but the operating system. You can utilize multiple CPU cores by using threads in your...
Forum: General 01-15-2006, 03:03 PM
Replies: 6
Views: 712
Posted By gLes
RE: Hide Forms From ALT+Tab

Is this form autocreated? (Is it listed in the Project file like this: Application.CreateForm(TForm2, Form2);?)

gLes
Forum: General 01-14-2006, 03:07 PM
Replies: 6
Views: 712
Posted By gLes
RE: Hide Forms From ALT+Tab

Your forms should be the childforms of your mainform, so like if you create them dynamically you should create them like this:

FormX := TFormX.Create(MainForm);

gLes
Forum: General 01-12-2006, 09:13 AM
Replies: 2
Views: 5,800
Posted By gLes
RE: XML Node Count!??

You need to make a recursive function to sum up all the nodes:

function GetNodeCount(XMLDocument: TXMLDocument): Integer;
var
Sum: Integer;

procedure CountNodes(Node: TXMLNode);
var
...
Forum: General 01-12-2006, 08:47 AM
Replies: 1
Views: 745
Posted By gLes
RE: set size of external application's window size

For this you should rather use the MoveWindow (http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/movewindow.asp) or the...
Forum: General 01-12-2006, 03:33 AM
Replies: 3
Views: 760
Posted By gLes
RE: Query the system cpu load, how?

Try searching before you post ;)

Check this: http://www.delphipages.com/threads/thread.cfm?ID=120626&G=120626

gLes
Forum: General 01-09-2006, 08:46 PM
Replies: 4
Views: 708
Posted By gLes
RE: Funny Problem

I suppose the shortcut created by Inno Setup doesn't specify the program's Working Directory (Current Directory, you can check it from your application with the GetCurrentDir function), thus it might...
Forum: General 01-07-2006, 08:05 PM
Replies: 1
Views: 984
Posted By gLes
RE: Treeview node ownerdraw

Yes you can, there is a very good example in the Delphi Help if you look up OnCustomDrawItem :)

gLes
Forum: General 01-07-2006, 08:01 PM
Replies: 6
Views: 671
Posted By gLes
RE: Error opening

Could you provide the exact code you are having problems with?

gLes
Forum: General 01-04-2006, 06:19 AM
Replies: 3
Views: 742
Posted By gLes
RE: Delphi IDE just won't terminate!

This happens all the time or just after doing some debugging?

gLes
Forum: General 01-04-2006, 06:17 AM
Replies: 3
Views: 901
Posted By gLes
RE: Delphi 7 and XPManifest bug

Yes very likely :)

Labels are just drawn onto the canvas of the form, it doesn't utilize a real window like e.g. a button.

Maybe you should try the TStaticText control which is the decendant of...
Forum: General 01-02-2006, 10:01 PM
Replies: 1
Views: 640
Posted By gLes
RE: how to read bounding rect of a graphic in clipboaord?

You need to load it into a TMetafile object first to see its bounding rectangle :)

uses Clipbrd;

...

var
Metafile: TMetafile;
begin
Metafile := TMetafile.Create;
Forum: General 01-02-2006, 09:46 PM
Replies: 1
Views: 1,043
Posted By gLes
RE: How to read text file formatted in wordpad?

Text files (*.txt) do not contain any formatting and positioning information, you can only position text by adding sufficient space and tab characters, on the other hand you can save your files from...
Forum: General 12-30-2005, 08:29 PM
Replies: 7
Views: 864
Posted By gLes
RE: Space Structure Selected Code in IDE?

Well, I don't know of anything fully automatic feature built-in the Delphi (7) IDE, but the Editor has such options like Autoindent mode which might ease your laziness :D

You can also use the...
Forum: General 12-30-2005, 08:20 PM
Replies: 5
Views: 787
Posted By gLes
RE: Transparency Controls?

Strange but it's not working for me either, not even on a form :( Though I know something similar worked for me before...I'll keep looking around in my archives :)

gLes
Forum: General 12-30-2005, 05:57 AM
Replies: 5
Views: 787
Posted By gLes
RE: Transparency Controls?

Some components like buttons implement windows, which have a handle, which you can use in the API calls to make them transparent, on the other hand Labels don't have a handle, they are just drawn on...
Forum: General 12-29-2005, 03:10 PM
Replies: 5
Views: 787
Posted By gLes
RE: Transparency Controls?

For those components that have a handle (buttons for example) you can use the SetWindowLong function to make them layered and then the SetLayeredWindowAttributes to set transparency:
...
Forum: General 12-29-2005, 02:57 PM
Replies: 1
Views: 572
Posted By gLes
RE: EXE files

Just replace the constant string with references to the labels' caption:

ShellExecute(0, nil, PChar(IncludeTrailingBackslash(Label1.Caption) + Label2.Caption), nil, nil, SW_SHOW);

To find...
Forum: General 12-25-2005, 03:22 PM
Replies: 1
Views: 2,414
Posted By gLes
RE: rtl90.bpl Problem!!!

You have compiled the program with runtime libraries, so it needs them to be present on the target system to run :)

In Delphi 7 you'll find the option for this in the Project Options / Packages...
Forum: General 12-25-2005, 03:10 PM
Replies: 3
Views: 481
Posted By gLes
RE: Windows API's

It all starts with typing the appropriate keywords into Google:

http://www.google.com/search?hl=hu&q=delphi+windows+api+dispatch+message&lr=lang_en%7Clang_hu

Merry X-mas :)

gLes
Forum: General 12-25-2005, 03:03 PM
Replies: 3
Views: 1,322
Posted By gLes
RE: windir

Here is an alternate version:

function GetWindir: String;
var
Buffer: array[0..MAX_PATH] of Char;
begin
ExpandEnvironmentStrings('%systemroot%', @Buffer, MAX_PATH);
Result :=...
Showing results 1 to 50 of 500

 
Forum Jump

All times are GMT. The time now is 08:24 PM.


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