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

* New - NumericUpDown Control

 
Post new topic   Reply to topic    KiXforms Forum Index -> KiXforms.NET Discussion
View previous topic :: View next topic  
Author Message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Thu Mar 30, 2006 3:56 am    Post subject: * New - NumericUpDown Control Reply with quote

Added the NumericUpDown control to Kixforms.Net ... basically this is the clickable SpinButton thingy for numbers ... here is a demo script showing some of its features:

Code:

Break On

$System = CreateObject("Kixforms.System")

$Form = $System.Form()
$Form.Text = "Demo"

$Label = $Form.Controls.Add($System.Label())
$Label.Width = 200
$Label.Height = 50
$Label.Center
$Label.Top = 20
$Label.BackColor = $System.Color.White
$Label.ForeColor = $System.Color.Black
$Label.FontSize = 20
$Label.TextAlign = $System.ContentAlignment_MiddleRight

$NumericUpDown = $Form.Controls.Add($System.NumericUpDown())
$NumericUpDown.Center
$NumericUpDown.BorderStyle = 2
$NumericUpDown.Increment = 10.5
$NumericUpDown.Minimum = -1000000
$NumericUpDown.Maximum = 1000000
$NumericUpDown.DecimalPlaces = 3
$NumericUpDown.ValueChanged = "NumericUpDown_ValueChanged($$System.Sender, $$System.EventArgs)"
$NumericUpDown.Value = 100.5

$Form.Center
$Form.Show

While $Form.Visible
 $= Execute($Form.DoEvents)
Loop

Exit 0

Function NumericUpDown_ValueChanged($sender, $e)

 $Label.Text = $sender.Value

EndFunction
Back to top
View user's profile Send private message
ntdoc
KiXforms Supporter
KiXforms Supporter


Joined: 05 Mar 2003
Posts: 77
Location: Mouse Country

PostPosted: Thu Mar 30, 2006 10:00 am    Post subject: Reply with quote

Thanks Shawn

I'll try to give it a spin Wink
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
ntdoc
KiXforms Supporter
KiXforms Supporter


Joined: 05 Mar 2003
Posts: 77
Location: Mouse Country

PostPosted: Thu Mar 30, 2006 10:41 am    Post subject: Reply with quote

Quote:
Function NumericUpDown_ValueChanged($sender, $e)

$Label.Text = $sender.Value

EndFunction


Shawn - this type of function isn't going to work well for me. I will probably have maybe up to 8 or more of these objects and each needs to update a different label.
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Thu Mar 30, 2006 11:20 am    Post subject: Reply with quote

There are all kinds of ways to handle that situation Doc... we can chat about later.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> KiXforms.NET 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