I'm writing a user interface that consists of a frame only. I found your code handy and easy to select a region (for making screenshot). I hope the technical part is over. You may have seen the progress in my previous topics. I was just taking a little break. And now I need to take care of interactivity. And now I want to get this over with. I just wanted to add a bit more visibility for end user (to be able to see the overlap area). So, we know how far we can scroll down the page.
added.
Thank you very much
This is not exactly what I was talking about. But I can already work with this.
I see it like this:
Code: Select all
If OpenWindow(0, 0, 0, 400, 200, "Select your area", #PB_Window_SystemMenu|#PB_Window_SizeGadget|#PB_Window_ScreenCentered|#PB_Window_Tool)
SetWindowColor(0, #Blue)
SetWindowLong_(WindowID(0), #GWL_EXSTYLE, #WS_EX_LAYERED|#WS_EX_TOPMOST)
SetLayeredWindowAttributes_(WindowID(0), #Blue, 0, #LWA_COLORKEY)
StripHeight = 20
StripBorder = 3
Repeat
Event = WaitWindowEvent()
Select Event
Case #PB_Event_CloseWindow
End
Case #PB_Event_Repaint
If StartDrawing(WindowOutput(0))
Box(0, WindowHeight(0) - StripHeight - StripBorder, WindowWidth(0), StripBorder, #Red)
StopDrawing()
EndIf
EndSelect
ForEver
EndIfThanks again.



