Posted: Thu Jan 24, 2008 3:05 pm
If it gives you money, can you wire-transfer a bit? 
http://www.purebasic.com
https://www.purebasic.fr/english/
Clicking to show the menu would show the cursor again, right?superadnim wrote:You know, you can tell Windows to hide the cursor when typing
Code: Select all
Procedure WindowCallback(hWnd,uMsg,wParam,lParam)
Select uMsg
Case #WM_ENTERIDLE
GetCursorPos_(cpt.POINT)
;If WindowFromPoint_(cpt\x,cpt\y) = hwnd
If WindowFromPoint_(PeekQ(cpt))=hwnd
EndMenu_()
EndIf
EndSelect
ProcedureReturn #PB_ProcessPureBasicEvents
EndProcedure
CreatePopupMenu(0)
MenuItem(1,"Cut")
MenuItem(2,"Copy")
MenuItem(3,"Paste")
MenuBar()
OpenSubMenu("Options")
MenuItem(4,"Window...")
MenuItem(5,"Gadget...")
CloseSubMenu()
MenuBar()
MenuItem(6,"Quit")
OpenWindow(0,0,0,320,240,"Right-click!",#PB_Window_SystemMenu|#PB_Window_ScreenCentered)
SetWindowCallback(@WindowCallback())
Repeat
EventID = WaitWindowEvent()
If EventID = #WM_RBUTTONDOWN
DisplayPopupMenu(0,WindowID(0))
EndIf
Until EventID = #PB_Event_CloseWindow