Search Results

Showing results 1 to 12 of 12
Search took 0.01 seconds.
Search: Posts Made By: Duoas ; Forum: Pascal and Delphi and child forums
Forum: Pascal and Delphi Feb 29th, 2008
Replies: 5
Views: 5,084
Posted By Duoas
Hmm, that's right. (Stupid grid controls are poorly designed... they give everyone and everything grief...)

You'll have to help it along. This is what I did. (I used a tStringGrid to test.)

Set...
Forum: Pascal and Delphi Dec 14th, 2007
Replies: 12
Views: 2,201
Posted By Duoas
Ah, yes, that works.

Still, I would repeat myself instead of calling FormCreate again.

procedure TForm1.RedoFunctionButton(Sender: TObject);
begin
memo1.Lines.Text := GetNicAddr;
end;
Forum: Pascal and Delphi Dec 11th, 2007
Replies: 9
Views: 1,907
Posted By Duoas
procedure TForm1.FormCreate( Sender: TObject );
begin
TrayIcon1.PopupMenu := PopupMenu1
end;

This presumes you dropped a popup menu on your form and populated it with the menu designer.
Forum: Pascal and Delphi Dec 6th, 2007
Replies: 9
Views: 1,907
Posted By Duoas
I'll get it to you shortly. I was in the middle of dinking with some stuff in it when I left-off and left it a mess. Once I've cleaned it up better (I should be done by tomorrow) I'll send it to you....
Forum: Pascal and Delphi Dec 1st, 2007
Replies: 14
Views: 2,759
Posted By Duoas
Yes, good job. The only question is: how can you tell the difference between a node that contains a number and a node that contains an operator?

(Have you learned about variant records?)

Also,...
Forum: Pascal and Delphi Nov 28th, 2007
Replies: 62
Views: 11,785
Posted By Duoas
It is hard for a beginner, but not quite "way too hard".

Let me think a bit and post back later. My brain hurts and I'm tired of going around in circles with you.

Some quick things first:
1....
Forum: Pascal and Delphi Nov 28th, 2007
Replies: 62
Views: 11,785
Posted By Duoas
Well, you know that the loop is reading the numbers correctly (because you before tested it by just reading and printing the numbers, and they printed the correct numbers).

But now that you are...
Forum: Pascal and Delphi Nov 25th, 2007
Replies: 62
Views: 11,785
Posted By Duoas
Rather than a bunch of "if foo = x ... " statements, use a "case foo of" statement:

case oper of
'+': begin
...
end;
'-': begin
...
end;
end;
Forum: Pascal and Delphi Nov 20th, 2007
Replies: 15
Views: 2,439
Posted By Duoas
Oy, after all that typing you beat me to the punch with another Q.

Second tutorial: scope.

Just as the functions and procedures above all belonged to tMatrix, so do the variables. Remember how...
Forum: Pascal and Delphi Nov 15th, 2007
Replies: 14
Views: 4,016
Posted By Duoas
Sorry, I should have made myself more clear.

Try this:

procedure TMainForm.RemoveDuplicatesButtonClick(Sender: TObject);
var
i, j, num_removed: integer;
begin
num_removed := 0;...
Forum: Pascal and Delphi Nov 8th, 2007
Replies: 46
Views: 8,246
Posted By Duoas
Alright. Here's a SaveNLines that takes a TListItems.

procedure saveNLines(
filename: string;
var items: tListItems;
startAt: integer;
numLines: integer
);
var
sl: ...
Forum: Pascal and Delphi Oct 27th, 2007
Replies: 10
Views: 4,189
Posted By Duoas
Time enough has passed that I haven't answered here.

As I mentioned already, the reason you see a button on the taskbar is because the application puts it there. Your forms don't. You can see this...
Showing results 1 to 12 of 12

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC