[Solved] Graphic Aberations seen on Win 7. Do you see them?

Windows specific forum
hichem
User
User
Posts: 26
Joined: Sun Sep 04, 2005 4:18 pm

Re: Graphic Aberations seen on Win 7. Do you see them?

Post by hichem »

i gived a tray to regions the problem is when clicking, but it can give you a start of a solution perhaps :

Code: Select all

ExamineDesktops()

Global cp.point

Width.i = DesktopWidth(0)
Height.i = DesktopHeight(0)

hrgn1.i = CreateRectRgn_(0, height-1, 2*width, height)  
hrgn2.i = CreateRectRgn_(width-1, 0 , width,(2* height)+1)
hrgn3.i = CreateRectRgn_(width-2, height-2 , width+2,height+2)

CombineRgn_(hrgn1,hrgn1, hrgn2,#RGN_OR)
CombineRgn_(hrgn1,hrgn1, hrgn3,#RGN_DIFF)


SetCursorPos_(width/2,height/2)
  
OpenWindow(0,-width,-height,2*Width, 2*Height,"",#PB_Window_BorderLess)
SetWindowColor(0,#Red)

SetWindowRgn_(WindowID(0),hrgn1,#True)
SetWindowPos_(WindowID(0),#HWND_TOPMOST,0,0,0,0,#SWP_NOSIZE)


Repeat
  GetCursorPos_(cp)
  ResizeWindow(0,(-width)+cp\x, (-height)+cp\y,#PB_Ignore, #PB_Ignore)
  
Until GetAsyncKeyState_(#VK_ESCAPE) & 1
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Graphic Aberations seen on Win 7. Do you see them?

Post by IdeasVacuum »

...Another interesting approach but I get the same graphics lag as with Rashad's two-window solution: Cursor graphics lag

I'm going to work on the cursor being an actual cursor since it interacts with my app (any app) easily. Once the cursor is initialized, it's fast, so perhaps a little progress animation will keep the User amused for 4 seconds or maybe I can work-out how to reduce the start-up time.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Post Reply