|
forums.silverfrost.com Welcome to the Silverfrost forums
|
View previous topic :: View next topic |
Author |
Message |
Zach
Joined: 13 Mar 2023 Posts: 85 Location: Groningen, Netherlands
|
Posted: Tue Apr 04, 2023 9:25 am Post subject: Locating at a position on the display |
|
|
What is the code to locate something at a certain position on the display screen? I have asked this before, but I get stuck following the answers that I have been most gratefully!!! receiving. However, I only have this particular, specific, and no more, rooky question. Example code would be fantastic. In C this would do the job at the drop of a hat:
Uses windows.h
void locate(short x, short y)
{
COORD pos = {x, y};
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), pos);
}
Many thanks, Patrick. |
|
Back to top |
|
|
Zach
Joined: 13 Mar 2023 Posts: 85 Location: Groningen, Netherlands
|
Posted: Fri Apr 28, 2023 9:30 pm Post subject: |
|
|
Since posting the question re x, y positioning on screen, I have discovered that an easy way is to create a file in compiled c, and refer to it form your FTN program. In C, relative on screen position is easily done. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|