I try to use trayicon in delphi 5, but I can't hide the main form completely as which contain a MDI child form. Any solution for it? :(
csy
0
Light Poster
Recommended Answers
Jump to PostI've not messed with MDI forms much, but when you create your mainform you have to modify some of the application's system window properties.
procedure FormCreate(...); begin exstyle := getWindowLong( application.hanle, GWL_EXSTYLE ) end; procedure FormShow(...); begin setWindowLong( application.handle, GWL_EXSTYLE, exstyle ) end; procedure FormHide(...); begin setWindowLong( …
Jump to PostI'm afraid I've never used the trayicon component, but a lot of these inject code into your application's or main form's constructor. Make sure that isn't happening.
If the problem is one of MDI then you'll have to wait until I mess around with it to figure out why...
…
Jump to PostTime 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 by going to the main menu --> Project --> Options --> Application --> …
All 10 Replies
Duoas
1,025
Postaholic
Featured Poster
csy
0
Light Poster
Duoas
1,025
Postaholic
Featured Poster
csy
0
Light Poster
Duoas
1,025
Postaholic
Featured Poster
csy
0
Light Poster
Duoas
1,025
Postaholic
Featured Poster
csy
0
Light Poster
Duoas
1,025
Postaholic
Featured Poster
csy
commented:
Helpful
+1
csy
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.