I added code for SetCapture, ReleaseCapture and GetCapture.
This now allows the Speedbuttons to pop back up when you move out of them.
Shane

Mailing lists / lazarus / 2000-04
11 messages · 4 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
I added code for SetCapture, ReleaseCapture and GetCapture.
This now allows the Speedbuttons to pop back up when you move out of them.
Shane
I added SetProp and GetPror winapi calls. In gtk they simply call gtk_object_set_data and…
Shane Miller wrote"How to add a Windows API function" how-to because EVERYTIME I do it I forget how to do it so I can imagine it's tough for everybody else (everybody? How many is that?)
Actually I my impression is that it is starting to be more and more. There aren't any more adding to development as of yet but I do believe more and more people are starting to play with it. Soon they might start adding to development. However, it is starting to get to the point where people can actually use it to create their own applications so something like the above would be helpful to them.
Anyway, I plan on writing a quick explanation and posting it on the site.
I can add it to the other Help document you have on the site.
That's a good idea. Make sure you write it in LAzarus though. :-) Also, make it…
I'll give it a try
Marc
I added SetProp and GetPror winapi calls. In gtk they simply call gtk_object_set_data and…
It is only editing 5 files ;-)
I'm still thinking of writing a little app, where you can enter the declaration and the app puts it in the right place.
Marc
I added SetProp and GetPror winapi calls.
In gtk they simply call gtk_object_set_data and gtk_object_get_data
I'm going to write a
"How to add a Windows API function" how-to because EVERYTIME I do it I forget how to do it so I can imagine it's tough for everybody else (everybody? How many is that?)
Anyway, I plan on writing a quick explanation and posting it on the site.
Shane
That's a good idea. Make sure you write it in LAzarus though. :-) Also, make it alphabetize it too so it put's it in the right spot. It'll have to ask whether it's platform specific or not, but that's about it...
Are you going to do it? Otherwise maybe I'll look into it....
Shane
>> 04/10/00 02:55PM >>>
It is only editing 5 files ;-)
I'm still thinking of writing a little app, where you can enter the declaration and the app puts it in the right place.
Marc
I moved the compiler code to compiler.pp
I added functions for pulling out a line number, column number, and unit name out of the error messages.
When you double click on an error message in the Compiler Message dialog it will now bring up the editor and open that unit for editing. It positions the cursor but it doesn't get focus so it doesn't display the cursor. If it already HAD focus, then the cursor is in the old spot it was in until you press a key, then it jumps to the new spot.
I'll have to look at that further, or someone else can feel free to did actually create a project, change the unit1.pp file so there was an error in it, compile, click on the error, take it out, save and recompile and it worked. We are getting a little closer......
Shane
I added TControl.bringtofront.
Doesn't really do much at this point.
Shane
I moved the compiler code to compiler.pp I added functions for pulling out a line number,…
Where is lazconf.pp ??
Marc
I moved the compiler code to compiler.pp I added functions for pulling out a line number,…
Oops!!! I forgot to add it. I thought I had added everything. Sorry about that. It is now in CVS.
Curtis
I moved the compiler code to compiler.pp I added functions for pulling out a line number,…
I made the following changes to CVS today.
- Fixed function in lazconf.inc to expand the filename when ~ is used.
- Changed MkDir function to CreateDir in lazconf.inc
- Fixed Makefile to compile in the proper lazconf.inc file.
- Made compiler options check for primary path first for XML config file. If it doesn't exist, it will create the path (on Linux - Windows should have the path because that is where Lazarus is installed) and file.
Now compiler options should work for everyone. It should save and restore the compiler options to the ~/.lazarus/compileroptions.xml file on Linux. Windows should save and restore the compiler options to lazarusdir\compileroptions.xml, where lazarusdir is the location lazarus is installed and run from. I haven't tested it on Windows yet, so someone might want to check to make sure it saves and restores the compiler options on Windows.
I still need to add the code to get it to check the secondary path and load the config options from there if the primary path does not exist. But for now, it just sets the values to default values if the file and path do not exist.
Curtis