Restored from previous forum. Originally posted by Mr.Skunk.
For OpenWindow(), i missed some Flags :
#PB_Window_ThickFrame=$40000 ; to resize a window
#PB_Window_Maximize = $1000000 ; to open a maximized window
Hope this could help...
Mr Skunk
Little Tip for window version
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Shagwana.
Keeping the good will going....
Here is a eample of how to change the mouse pointer image
http://www.sublimegames.com
Edited by - Shagwana on 18 June 2001 20:03:16
Keeping the good will going....
Here is a eample of how to change the mouse pointer image
Code: Select all
;
; Changing the default cursor for a window by AlphaSND
;
If OpenWindow(0, 100, 100, 400, 200, "Cursor demo", #PB_Window_SystemMenu)
; Use the following command to change the cursor
;
SetClassLong_(WindowID(0), #GCL_HCURSOR, LoadCursor_(0, #IDC_UPARROW))
Repeat
EventID = WaitWindowEvent()
Until EventID = #PB_Event_CloseWindow
EndIf
End ; All the opened windows are closed automatically by PureBasic
Edited by - Shagwana on 18 June 2001 20:03:16
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Mr.Skunk.
Let's gooooo...
Just a little windows API trick to cursor too
Tadaaaaammmmm
Mr Skunk
Let's gooooo...
Just a little windows API trick to cursor too
Code: Select all
;
; Show Hide cursor for your full screen graphic App or game :)
; Show/Hide is a counter : means that if you hide 2 times your cursor
; you have to show it 2 times to make it really appear !!!
a = ShowCursor_(0) ; with 0=False to Hide
If OpenWindow(0, 100, 120, 400, 345, "Hide/Show Cursor Demo :)", #PB_Window_SystemMenu | #PB_Window_MinimizeGadget)
Repeat
EventID = WaitWindowEvent()
Until EventID = #PB_Event_CloseWindow
EndIf
a = ShowCursor_(1) ; with 1=True to Show
End
Mr Skunk
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Mr.Skunk.
#IDC_APPSTARTING
#IDC_ARROW ;(the normal cursor)
#IDC_CROSS
#IDC_HELP=32651 ; because not definied in PB constant definitions
#IDC_IBEAM
#IDC_NO
#IDC_SIZEALL
#IDC_SIZENESW
#IDC_SIZENS
#IDC_SIZENWSE
#IDC_SIZEWE
#IDC_WAIT
Just Try them...
Mr Skunk
Edited by - mr.skunk on 19 June 2001 06:54:16
And to Complete Here is some more cursors (to replace #IDC_UPARROW in your precedent example)...Keeping the good will going....
Here is a eample of how to change the mouse pointer image
#IDC_APPSTARTING
#IDC_ARROW ;(the normal cursor)
#IDC_CROSS
#IDC_HELP=32651 ; because not definied in PB constant definitions
#IDC_IBEAM
#IDC_NO
#IDC_SIZEALL
#IDC_SIZENESW
#IDC_SIZENS
#IDC_SIZENWSE
#IDC_SIZEWE
#IDC_WAIT
Just Try them...
Mr Skunk
Edited by - mr.skunk on 19 June 2001 06:54:16