Forum > Beginners
2 important questions i'd like to know their answer please help
DiCri:
Question number 1:
Using SDL2 Unit with FreeaPascal and i'd like to know if there is a function where the mouse cursor is always in a specific position of the screen and if player moves the mouse, his x and y remains the same. For example Minecraft, in this game the mouse cursor is always on the center!
Question number 2:
Is there an unit on FreePascal for building normal windows applications??(not consoles) .
Tell me if u don't understand anything because i speak italian so i hardly write english. Thanks help me please
Thaddy:
Ad question nbr 2:
There is the Windows unit.. So you can build Windows GUI applications with FPC.
You can also use KOL... Example is in the wiki.
DiCri:
--- Quote from: Thaddy on August 07, 2016, 08:06:23 pm ---Ad question nbr 2:
There is the Windows unit.. So you can build Windows GUI applications with FPC.
You can also use KOL... Example is in the wiki.
--- End quote ---
Ok where i can find windows unit procedures and functions?
marcov:
MSDN, and the best guide is the Petzold book.
But is smarter to use the Lazarus IDE with its designer. Much faster to get a decent windows gui.
lainz:
About cuestion 1. That's a fake cursor. The real one is invisible and moving around when you move the mouse.
There is a calculation to determine the center of the screen and a virtual ray to pisition the cubes in the fake cursor front.
--- Quote from: Manu12x on August 07, 2016, 06:33:20 pm ---Question number 1:
Using SDL2 Unit with FreeaPascal and i'd like to know if there is a function where the mouse cursor is always in a specific position of the screen and if player moves the mouse, his x and y remains the same. For example Minecraft, in this game the mouse cursor is always on the center!
Question number 2:
Is there an unit on FreePascal for building normal windows applications??(not consoles) .
Tell me if u don't understand anything because i speak italian so i hardly write english. Thanks help me please
--- End quote ---
Navigation
[0] Message Index
[#] Next page