Hi All,
 
 I have the following situation. I have 2 forms. Form1 and Form2
 
In Form1 (unit1.pas) I use a TMainMenu and I have a Menu Project->New
 
when I click on Project->New another form should pop up. This used to work but 
for some reason it does not any longer.
 
I have an EventHandler for Project->New that is MenuNewItemClick and this is 
defined on OnClick
 
it is in unit1.pas
 
---------------unit1.pas----------------
 
uses
CreateChild
...
...
...
 
procedure TForm1.MenuItemNewClick(Sender:TObject);
begin
CreateChild;
end;
 
I then define
 
procedure TForm1.CreateChild;
var
Child:TChildForm;
begin
Child:=TChildForm.Create(Self);
end;
 
---------------unit1.pas----------------
Any help would be much appreciate. Thanks
 
Best,
lefti


Date: Thu, 29 Nov 2007 16:18:23 +1100From: [EMAIL PROTECTED]: [EMAIL 
PROTECTED]: Re: [lazarus] MySql 4.1 Database Questions
el stamatakos wrote: 


1) I have an MDI application and when I clicked on a menu it would open another 
form. Now it does not any idea how I can fix this.Can you give a little more 
information ?
 2) I want to be able to do something like SQLQuery1.SQLSelect('SELECT * from 
process ORDER BY processDisplayOrder');  Very roughly, at run time, you add the 
query text to SQLQuery1.SQLSQLQuery1.SQL.clear;SQLQuery1.SQL.add('SELECT * from 
process ORDER BY processDisplayOrder');and set it activeSQLQuery1.active = 
true;OR you can do this at design time in the object inspector, if the query  
does not change.WARNING:I've been trying to work out how to use SVN, and all my 
up to date lazaruses are broken (!), so I cannot check that this is exactly 
right - hope it points you in the right direction.cheers,John 
Sunderland_________________________________________________________________ To 
unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives 
at http://www.lazarus.freepascal.org/mailarchives 

Reply via email to