Thanks to all for your replies !
@KempCGDR: I want to right-click on the menu item itself, like on a Windows start menu item.
@whosrdaddy: sounds good, but we just have Delphi 5... :-/
I know tried something with a mouse hook, seems to work not so bad.
wbr
Roderich
No, this is not what I need.
I need reaction when the user right-clicks on any MenuItem inside of a MainMenu or PopupMenu. This should be something like a OnMouseUp (which is protected in TMenuItem).
How it is now with my Delphi 5:
- right-click on a MainMenu item doesn't call OnClick at all
-...
hi,
does anybody know about a MainMenu component (maybe TMainMenu descendant ?) which is able to react to mouse rightclicks ?
Normal TMenuItem.OnClick is a NotifyEvent (leftclick only). What I need is something similar to Windows start menu where the user can right-click and e.g. select...
I've a problem with Japanese language:
My programm is designed to run with several languages, e.g. German, English, Spain.... At runtime the controls are assigned texts for caption, hint etc. depending on the class. Those texts are read out of a text file.
Now I've added Japanese language; a...
hi Stretchwickster,
I've used Abbrevia as well and it didn't please me.
First there have been some strange "features" I could't explain, and then the compression speed was very very poor compared to TZipMaster. Even with setting "optimize speed" (or something like that) it...
hi,
I'm using the ZipMaster freeware component which turned out to be very good. Just look for it in one of the Delphi pages like Tory's or Delphi Super Page.
Also you may try another TZip component:
http://www.users.on.net/johnson/delphi/
wbr
roderich
Of course it's possible to return an array as function result. Just declare
type
TmyArray = array[0..bla] of integer;
function myFunc(...): TmyArray;
regards
Roderich
hi Eric,
why do You want to unload the dll at once after calling the exported function ? This could induce perfomance problems as well, I guess.
I normally call FreeLibrary at main program shutdown. But it should be possible to not call FreeLibrary at all and just let the OS do the freeing of...
hi
for me you make a general mistake accessing the printer.
Either you work with AssignPRT OR you use Printer.BeginDOC, but not both at the same time.
Normally I print the following way:
Printer.BeginDOC;
Printer.Canvas.Font.Assign(myFont);
for i := 0 to blabla do
Printer.Canvas.TextOut(myX...
Executing your OpenDialog changes the current path of your application. So appending to "debug.txt" wont find this file in the other folder.
You can set OpenDialog option 'NoChangeDir' to avoid this.
Generally it is always a good way to supply the full path when assigning files, e.g...
hi Eric,
I always close my forms which are inside a DLL because unloading a DLL with a form open sometimes caused exceptions.
So what I did is exporting another procedure, e.g. named "ExitMyProc", which closes the form. Call this procedure before unloading the DLL.
Maybe you could...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.