KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

Cannot click the Button

 
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion
View previous topic :: View next topic  
Author Message
Bonji
KiXforms Aficionado
KiXforms Aficionado


Joined: 10 Mar 2003
Posts: 393
Location: Virginia

PostPosted: Wed Nov 10, 2004 4:12 pm    Post subject: Cannot click the Button Reply with quote

I'm having a hard time getting a button to stay put. Here is a little snippet to show the problem.

Code:

Break On
$System = CreateObject("Kixtart.System")
$Form = $System.Form()
$Form.Size = 200,200
$ = $Form.Center()
$cmdClose = $Form.Button("Close")
$cmdClose.Size = 60,19
$cmdClose.OnClick = "$$Form = 'Nothing'"
$cmdClose.OnMouseEnter = "cmdClose_MouseEnter()"
$ = $cmdClose.Center()
$ = $Form.Show()
While $Form.Visible
   $ = Execute($Form.DoEvents)
Loop


Function cmdClose_MouseEnter()
   $ = SRnd(@MSecs * @MDayNo * @MonthNo)
   If $Form.MouseX > 100
      $cmdClose.Left = Rnd(40)
   Else
      $cmdClose.Left = Rnd(40) + 100
   EndIf
   If $Form.MouseY > 100
      $cmdClose.Top = Rnd(65)
   Else
      $cmdClose.Top = Rnd(65) + 100
   EndIf
EndFunction

_________________
-Ben
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Wed Nov 10, 2004 4:53 pm    Post subject: Reply with quote

roflmao - you basta ! ;0)
Back to top
View user's profile Send private message
Les
KiXforms Aficionado
KiXforms Aficionado


Joined: 24 Dec 2003
Posts: 317

PostPosted: Wed Nov 10, 2004 5:53 pm    Post subject: Reply with quote

LOL
Somehow, I think I am the brunt of the joke (snippet thingy) but that's fine by me.

_________________
The Repro Man
Stealing for a living!
Back to top
View user's profile Send private message
Bonji
KiXforms Aficionado
KiXforms Aficionado


Joined: 10 Mar 2003
Posts: 393
Location: Virginia

PostPosted: Wed Nov 10, 2004 7:14 pm    Post subject: Reply with quote

No snippet jokes intended. I just thought of this while reading another problem post so I thought I'd write it real quick and post it for a little laugh.
_________________
-Ben
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group