Page 1 of 1 1
Topic Options
#184386 - 2008-01-03 12:43 PM KF Classic 2.47.4.0 : Is there any way to Hide the cursor?
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
As in the title ... I want to be able to not show any cursor on a kf form while the mouse is over.

Possible?
_________________________



Top
#184387 - 2008-01-03 02:47 PM Re: KF Classic 2.47.4.0 : Is there any way to Hide the cursor? [Re: Jochen]
Benny69 Offline
Moderator
*****

Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
Ok, I don't think this is possable in KF.Net but you are in luck with KF.Classic.

Unzip and put the attached .cur file at the root C: for this example, then run this code:

 Code:
;region Setup Variables
$Version = "Build(1.0.0.1)"
$System = CreateObject("Kixtart.System")
;endregion

Break on
If Not $System
   $= MessageBox("KiXforms Not Initiated. This Script Will Now Close.","Error",16)
   Quit()
EndIf

;region Main Form
$Form = $System.Form()
$Form.Cursor = "C:\Transparent Currsor.cur"
$Form.Text = "Basic Form $Version"
$Form.Size = 600,400
$Form.Left = $System.Screen.WorkingArea.Width - $Form.Width
$Form.Top = $System.Screen.WorkingArea.Height - $Form.Height
$Form.SysMenu = 0
$Form.Cursor = "C:\Transparent Currsor.cur"

; Clock
$CurrentTime=@Time
$Clock = $Form.Controls.Label($CurrentTime,10,15,55,20)
$Clock.Alignment=2
$Clock.Enabled=0
$Clock.BackColor=$Form.BackColor

$Close_Button = $Form.Controls.Button()
$Close_Button.Text = "CLose"
$Close_Button.OnClick = "Close_Button_Click()"
$Close_Button.Center

$Form.Show()

;region Startup
;call some function
;endregion

While $Form.Visible
	$Error = Execute($Form.DoEvents(1))
	$Clock.Text = @Time
Loop
Exit 0
;endregion

;region Startup Functions

;endregion

;region Common Functions
Function Close_Button_Click()
	Quit()
EndFunction
;endregion


The key part of the code is:
 Code:
$Form.Cursor = "C:\Transparent Currsor.cur"


Attachments
Transparent Currsor.zip (459 downloads)
Description:


_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)

Top
#184388 - 2008-01-03 02:51 PM Re: KF Classic 2.47.4.0 : Is there any way to Hide the cursor? [Re: Benny69]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Yes!!!

That was as well the only way I saw ... but hadn't had a transparent cursor at hand \:\)
_________________________



Top
#184389 - 2008-01-03 02:53 PM Re: KF Classic 2.47.4.0 : Is there any way to Hide the cursor? [Re: Jochen]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Beautiful cursor \:\)

Not only not visible, but also totally transparent!
_________________________



Top
#184411 - 2008-01-04 09:44 AM Re: KF Classic 2.47.4.0 : Is there any way to Hide the cursor? [Re: Jochen]
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
 Originally Posted By: Jochen
Not only not visible, but also totally transparent!


Were you drunk when you wrote this?
_________________________
The Code is out there

Top
#184412 - 2008-01-04 10:22 AM Re: KF Classic 2.47.4.0 : Is there any way to Hide the cursor? [Re: DrillSergeant]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
No I was just happy about my transparent cursor
_________________________



Top
Page 1 of 1 1


Moderator:  Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 557 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.058 seconds in which 0.025 seconds were spent on a total of 14 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org