You can use the Windows API to enumerate all connected monitors and move the window to the appropriate monitor.
https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-enumdisplaymonitors
Search found 993 matches
- May 12, 2024 17:49
- Forum: General
- Topic: Placement of graphics window with Screen
- Replies: 3
- Views: 124
- May 10, 2024 14:20
- Forum: Sources, Examples, Tips and Tricks
- Topic: Simple 2D Ball Collision Demo
- Replies: 11
- Views: 936
Re: Simple 2D Ball Collision Demo
Any idea how to rotate the mapped texture of the ball properly? 'Coded by UEZ build 2024-05-10 #include "fbgfx.bi" Using FB #define _pi (Acos(-1)) #define _2pi (2 * Acos(-1)) Function MapCoordinate(i1 As Double, i2 As Double, w1 As Double, w2 As Double, p As Double) As Double '...' Return ...
- May 09, 2024 18:10
- Forum: Sources, Examples, Tips and Tricks
- Topic: Cairo animated spiral
- Replies: 14
- Views: 858
Re: Cairo animated spiral
Try to turn off the AV program.
- May 07, 2024 7:25
- Forum: Sources, Examples, Tips and Tricks
- Topic: anti-aliased line comparison (cairo vs mine)
- Replies: 7
- Views: 901
Re: anti-aliased line comparison (cairo vs mine)
it's ok i didn't either, last post. it's a lot of code. having trouble getting cairo under windows. could be cuz i'm using fbc 1.09, need to update headers here was the error.. (will try again tomorrow) ./cairo.dll: file not recognized: file format not recognized You may have a look here for the DL...
- May 06, 2024 19:51
- Forum: Sources, Examples, Tips and Tricks
- Topic: anti-aliased line comparison (cairo vs mine)
- Replies: 7
- Views: 901
Re: anti-aliased line comparison (cairo vs mine)
Here a comparison of Cairo AA Line, GDIPlus AA Line, FB Line and FB WU AA Line in one GUI. 'Coded by UEZ - Windows only #include "cairo/cairo.bi" #ifdef __FB_64BIT__ #inclib "gdiplus" #include once "win/gdiplus-c.bi" #else #include once "win/gdiplus.bi" Using ...
- Apr 13, 2024 8:15
- Forum: Sources, Examples, Tips and Tricks
- Topic: Simple 2D Ball Collision Demo
- Replies: 11
- Views: 936
Re: Simple 2D Ball Collision Demo
Nice neil. I added to your example to catch and throw the ball around: ' elastic bouncing ball by neil Const w = 1080 Const h = 720 ScreenRes w, h, 32 Dim As Single x, y, vx, vy, radius, mass, gravity, elasticity, friction, px, py x = 20 y = 20 vx = 6 'velocity x vy = 0 'velocity y radius = 35 gravi...
- Apr 12, 2024 16:50
- Forum: Libraries Questions
- Topic: Cairo DLL creation
- Replies: 16
- Views: 4803
Re: Cairo DLL creation
Both versions are the same. :wink: Are you really sure? .. maybe some (browser) caching issue? or mixup? new https://i.ibb.co/DbG6WpH/image.png old, debug https://i.ibb.co/H20NtS1/image.png (above screenshots are from the x64 builds, but also checked the x86 ones) Also the file size should be signi...
- Apr 12, 2024 11:45
- Forum: Libraries Questions
- Topic: Cairo DLL creation
- Replies: 16
- Views: 4803
Re: Cairo DLL creation
Both versions are the same.
I need to learn this compiling stuff...
I need to learn this compiling stuff...
- Apr 12, 2024 10:34
- Forum: Libraries Questions
- Topic: Cairo DLL creation
- Replies: 16
- Views: 4803
Re: Cairo DLL creation
Hi St_W, thanks for the DLLs but it doesn't work because of missing import DLLs which are not default system DLLs. x86: VCRUNTIME140D.dll ucrtbased.dll x64: VCRUNTIME140D.dll VCRUNTIME140_1D.dll ucrtbased.dll Can those functions in these DLLs integrated? Edit: runs properly when copying both missing...
- Apr 11, 2024 12:15
- Forum: Sources, Examples, Tips and Tricks
- Topic: Simple 2D Ball Collision Demo
- Replies: 11
- Views: 936
Re: Simple 2D Ball Collision Demo
Billiard opening simulation: 'Coded by UEZ build 2024-04-12 #include "fbgfx.bi" Using FB #define _pi (Acos(-1)) Function _Dist(x1 As Double, y1 As Double, r1 As Double, x2 As Double, y2 As Double, r2 As Double) As Boolean Return Sqr((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)) < (r1 + r2...
- Apr 11, 2024 6:33
- Forum: Sources, Examples, Tips and Tricks
- Topic: Simple 2D Ball Collision Demo
- Replies: 11
- Views: 936
Re: Simple 2D Ball Collision Demo
Code corrected - thanks for your feedback.
- Apr 10, 2024 20:53
- Forum: Sources, Examples, Tips and Tricks
- Topic: Simple 2D Ball Collision Demo
- Replies: 11
- Views: 936
Simple 2D Ball Collision Demo
A simple 2D ball collision incl. mass demo FB Gfx lib : 'Coded by UEZ build 2024-04-10 #include "fbgfx.bi" Using FB Function Rnd2(min As Double, max As Double = &hFFFFFFFF) As Double Dim As Double Rand = Rnd() If max = &hFFFFFFFF Then Return Rand * min If min > max Then Swap min, m...
- Apr 08, 2024 21:26
- Forum: Libraries Questions
- Topic: Cairo DLL creation
- Replies: 16
- Views: 4803
Re: Cairo DLL creation
@srvaldez: thank you very much for looking into this. libcairo-2.dll exists in several programs, such as Inkscape, GIMP, etc. in the latest version 1.18.0. I've written an Autoit script which gets the DLL dependencies recursively from a DLL. :D Maybe I will port it to FB... For example libcairo-2.dl...
- Apr 08, 2024 9:30
- Forum: Libraries Questions
- Topic: Cairo DLL creation
- Replies: 16
- Views: 4803
Cairo DLL creation
Hi, can somebody please compile the latest Cairo code to create one Windows DLL for x64 / x86? I'm too silly to do it by my self. Output should be one DLL same as here: https://github.com/preshing/cairo-windows/releases . Unfortunately preshing stopped creating the DLLs in 2020... Source can be foun...
- Apr 01, 2024 9:48
- Forum: Sources, Examples, Tips and Tricks
- Topic: Waterfall effect
- Replies: 18
- Views: 1556
Re: Waterfall effect
Water ripples effect: Water Effect