|
-
Jun 1st, 2004, 06:17 AM
#1
Thread Starter
Supreme User
Last edited by Madboy; Jun 1st, 2004 at 06:40 AM.
-
Jun 1st, 2004, 07:33 AM
#2
Lively Member
Re: Corona Beer, Need more Delphi 7 help
Originally posted by Madboy
[B]
Have you seen in Wordpad, if you move your mouse over the File > New menus etc it shows a hint in the statusbar. How would i go about doing the same thing?
How do you change the caption in a MessageDlg?
I thought the was a Mouse over event for a TMenuItem
then you could have your status bar display a hint for that event ,
but there aint one so i dunno You should check out experts-exchange.com the people knlow more delphi than i do ask them how to validate a textbox.
-
Jun 1st, 2004, 07:39 AM
#3
Thread Starter
Supreme User
-
Jun 1st, 2004, 08:21 AM
#4
Re: Re: Corona Beer, Need more Delphi 7 help
Originally posted by CORONA BEER
You should check out experts-exchange.com the people knlow more delphi than i do
WooHoo!
Does this mean we won't have any more Delphi Posts in Chit Chat?
:crossesfingers:
-Lou
-
Jun 1st, 2004, 08:32 AM
#5
Lively Member
Originally posted by NotLKH
[B]WooHoo!
Does this mean we won't have any more Delphi Posts in Chit Chat?
When all else fails ask the experts, I hope we can get a delphi sub forum soon, Madboy : i think you asked me how long i have been writing in delphi, A little over a year bro,
and i'm using Delphi 6.
-
Jun 1st, 2004, 03:08 PM
#6
Thread Starter
Supreme User
NotLKH, this is a developer forum, like it or lump it, least my threads have meaning.
Corona, i didnt sign up at Experts-exchange, instead i found this huge page of tips, leading to code and examples. The list is endless, it has answered many questions i need in a second. See for yourself dude:
http://xdds.nepro.net/~cho/3kdt/inde...gcolor=#EED24F
-
Jun 1st, 2004, 04:20 PM
#7
Originally posted by Madboy
least my threads have meaning.
This is Chit Chat. Threads with meaning look out of place in Chit Chat
-
Jun 1st, 2004, 04:43 PM
#8
Thread Starter
Supreme User
Where else can i post? If you are all so worried/bothered of my out of place, not so off-topic threads. I say get on to marty for a Delphi forum, everyone is happy then
Ok Corona, 2 questions im sure you can help with
Whats the correct way to unload all forms from memory and close them? In VB it is done like:
VB Code:
Dim frm As Form
For each frm In Forms
Unload frm
Next frm
And finally. I worked out the menu hints thing. I have the code shown below, which works great. Only problem is. is when i mouseover my toolbar buttons, the hints shown from there are placed in the Statusbar too. Appreciate it if you know how to stop the toolbar hints being shown in the statusbar:
Code:
private
procedure HintHandler(Sender: TObject);
procedure TfrmMain.FormCreate(Sender: TObject);
begin
mnuFileNew.Hint:= 'Creates a new document';
mnuFileOpen.Hint:= 'Opens a file from your computer';
mnuFileSave.Hint:= 'Saves the current document to file';
mnuFilePrint.Hint:= 'Sends the document to the printer';
Application.OnHint := HintHandler;
end;
procedure TfrmMain.HintHandler(Sender: TObject);
begin
stsMain.Panels[0].Text:= Application.Hint;
end;
Cheers
-
Jun 2nd, 2004, 08:37 AM
#9
Lively Member
Whats the correct way to unload all forms from memory and close them? In VB it is done like:
VB Code:
Dim frm As Form
For each frm In Forms
Unload frm
Next frm
[/QUOTE]
You mean unload all of your child forms
VB Code:
procedure TfrmMain.FileCloseAllClick(Sender: TObject);
var
i: integer;
begin
//close all child windows
for i:= 0 to MDIChildCount - 1 do
MDIChildren[i].Close;
end;
-
Jun 2nd, 2004, 10:48 AM
#10
Thread Starter
Supreme User
-
Jun 2nd, 2004, 11:09 AM
#11
Thread Starter
Supreme User
Sussed it finally
Code:
procedure TfrmMain.mnuViewCategoriesClick(Sender: TObject);
begin
if mnuViewCategories.Checked = True then
begin
splittermain.Visible:= True;
tvwmain.Visible:= True
end
else if mnuViewCategories.Checked = False then
begin
splittermain.Visible:= False;
tvwmain.Visible:= False
end
end;
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|