; Which constant can be used in OpenWindows to create a windows without a titlebar but with a normal border?
OpenWindow(1,20,20,400,400,#PB_Window_Border | #PB_Window_TitleLess,"")
Delay (1000)
; How to hide and display a mouse cursor easily? This would be fine for screen savers, etc.
HideMouse()
ShowMouse()
; Is there also a command for setting a certain mouse cursor symbol? (Arrow, Hourglass, etc.)
DefMouse(#PB_IDC_WAIT)
The 'mouse' commands you mention are indeed missing?!?! Will need them very soon in my application..
Fred couls you please add them in PB4, prety please??
You are right, this might be implemented in future version for all OS,
shouldn't be too hard for Fred as all OS have this features i think...
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
I've found the ShowCursor API to be totally useless. Never works for me.
I've resorted to just moving the pointer to the bottom-right corner of the
screen, where it is not so visible; but I know this is not an ideal solution.
BTW, I note that the MSDN docs state that the ShowCursor API is related
to DirectShow 9.0 anyway -- so maybe that has something to do with it?
The actual description for it states: The ShowCursor method makes the
cursor visible when the MSWebDVD object is in full-screen mode.
So maybe it's not meant for general hiding/showing of the mouse?
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Unless the class cursor is set to null, the cursor is 'refreshed' everytime the mouse is moved. One way around this is to use SetCursor_(0) in your event loop etc.
Last edited by srod on Wed Mar 01, 2006 8:39 pm, edited 1 time in total.
I may look like a mule, but I'm not a complete ass.
The ShowCursor function displays or hides the cursor.
int ShowCursor(
BOOL bShow // cursor visibility flag
);
Parameters
bShow
Specifies whether the internal display counter is to be incremented or decremented. If bShow is TRUE, the display count is incremented by one. If bShow is FALSE, the display count is decremented by one.
Return Values
The return value specifies the new display counter.
Remarks
This function sets an internal display counter that determines whether the cursor should be displayed. The cursor is displayed only if the display count is greater than or equal to 0. If a mouse is installed, the initial display count is 0. If no mouse is installed, the display count is -1.