Hi all, Recently, I started to study GDI+. It happens that impressive things can be done with just a few lines of code and good enough speed. I want to make...
Hi, How you want to apppy this is an important factor. But you can get some very good source and examples at Torry or EFG labs. On Torry there is one FW...
Hi This TGradient component is really nice and extremely fast. I would love to learn how does it things so fast. However it uses GDI for drawing, which is slow...
Hi, In a number of applications I needed a structure like this: type MyStructure = record Num : integer; Arr : array[0..n] of ...; Str : array[0..n] of ...; ...
Would this work for you ? MyStructure = record Num : integer; Arr : array of integer ; Str : array of integer ; end; Ian ________________________________ From:...
Hello everybody! I wasn't very active here for some time but I managed to get almost to the end of Electrotehnic faculty and now I got a job so again I don't...
Hi guys I came to a very strange situation: Folowing th advice of Ian, I declared: type TmyGradient=record Numb : integer; Colors : array of cardinal; Pos...
Hello, I've created a program that exports map data for use in my game. The information about each tile is held in a record and is saved to disk using the...
Hello, I think I've resolved my problem. I am now writing out the file using "file of integer". I first write the header which has a fixed length, this is...
This is mostly a test. But Stream is realy a good thing. I'd like to introduce some of useful class I ever used. 1. DataObj TDataObj= class procedure...
Hello, I've not tried this but you may want to give it a go. As TGraphicControl derives from TControl, why not make use of TControl's OnResize event ? First...
Well, this will work if I want the calculations to be made outside the component. But my goal is that the component itself will make the calculations when the...
The calculations can be done inside your object by setting the OnResize callback in the constructor of your object: Class declaration: TmyComponent = class...
It's been a long time since I have done any Delphi component coding, but in these cases there is usually a virtual method that calls the event handler. In...
For number 1, you can override the AdjustSize proc: ex. procedure AdjustSize; override; For number 2, you can override the CMColorChanged message: ex....
Wow guys, you are great! First thing that came to my mind was what Ian suggested. But as Steve said: "Events are for external use. The methods are for internal...
... It's been a while since I wrote a component as well, but I think a WM_SIZE message will only get fired for controls that have a Window Handle. Dominique....
Hi guys, I'm trying to do control with real transparency – when you put a picture under it you must see the picture trough transparent pixels. Can you give...
I have a design question and am interested in your views. In my game I use images as tiles to display the background and all the bits that move around and...
I don't know if this would be practical for you, but wouldn't it help if you treated non-animated sprites as an animated sprites that have only one frame of...
It doesn't make sense to derive sprites from images since you may have 10 aliens attacking you and they could use the same image which would save much memory....
Hello, The Image class that my sprite class derives from is quite memory efficient as it just holds a pointer to a SDL surface (I don't create individual...
Hi rbaprog, I've read very carefully your post (2 times). Here are some observations: "You can get background using Themes unit" Do you know how? (I know that...