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

SpinButton is broke/changed in Build 44

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


Joined: 05 Mar 2003
Posts: 273
Location: San Antonio. TX

PostPosted: Tue May 11, 2004 5:52 pm    Post subject: SpinButton is broke/changed in Build 44 Reply with quote

OK. What is the new syntax for the SpinButton? In build 43 everything worked and in build 44 the textboxes that interact with the spinbutton freak out going from one extreme to the other.

Now my things in my settings dialog do not work.

_________________
Kelly
Back to top
View user's profile Send private message Send e-mail MSN Messenger
krabourn
KiXforms Aficionado
KiXforms Aficionado


Joined: 05 Mar 2003
Posts: 273
Location: San Antonio. TX

PostPosted: Tue May 11, 2004 6:30 pm    Post subject: Reply with quote

I believe the problem is just the Minimum property. I can not change it from the value of 3276850. The object is also shown as disabled, but I think the object is shown like that because of the Minimum property being wrong. I even tried Min as the property name just in case some old code got in there.
_________________
Kelly
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Tue May 11, 2004 6:39 pm    Post subject: Reply with quote

will look at this right away kelly, do you have a little snippet script that demonstrates the prob, and that I can test with. I did do some work "in this area" in the last build.

-Shawn
Back to top
View user's profile Send private message
krabourn
KiXforms Aficionado
KiXforms Aficionado


Joined: 05 Mar 2003
Posts: 273
Location: San Antonio. TX

PostPosted: Tue May 11, 2004 6:54 pm    Post subject: Reply with quote

If it is the same as for me, all you need to do is check the minimum value.

Here is a little snippet. This is old code, so be nice. I have not broke it apart like I should yet. The remarked part is where the problem really shows itself.

Code:
$lblPingCount = $tabQuickPing.Label
$lblPingCount.Text = "Ping Count:"
$lblPingCount.ToolTipText = "How many packets to send."
$lblPingCount.Size = 55, 20
$lblPingCount.Location = 5, $lblRTASettingsPing.Bottom + 5
$txtPingCount = $tabQuickPing.TextBox
$txtPingCount.ToolTipText = "How many packets to send."
$txtPingCount.Size = 20, 20
$txtPingCount.Location = $lblPingCount.Right + 5, $lblPingCount.Top
$txtPingCount.BorderStyle = 5
$txtPingCount.OnTextChanged = '
;   SELECT
;      CASE Val($$txtPingCount.Text) > Val($$spnPingCount.Maximum) OR Len($$txtPingCount.Text) > 2
;         $$txtPingCount.Text = $$spnPingCount.Maximum
;      CASE Val($$txtPingCount.Text) < Val($$spnPingCount.Minimum)
;         $$txtPingCount.Text = $$spnPingCount.Minimum
;   ENDSELECT
   $$spnPingCount.Value = $$txtPingCount.Text
   $$Nul = WriteValue("HKCU\Software\SupportAssistant\RTA\PingQuick\", "PingCount", $$txtPingCount.Text, "REG_SZ")'

$spnPingCount = $tabQuickPing.SpinButton()
$spnPingCount.ToolTipText = "How many packets to send."
$spnPingCount.Size = 20, 5
$spnPingCount.Location = $txtPingCount.Right, $lblPingCount.Top
$spnPingCount.Minimum = 1
$spnPingCount.Maximum = 50
$spnPingCount.Orientation = 0
$spnPingCount.BorderStyle = 5
$spnPingCount.Value = $spnPingCount.Minimum
$spnPingCount.OnChange = '
   $$txtPingCount.Text = $$spnPingCount.Value
   $$Nul = WriteValue("HKCU\Software\SupportAssistant\RTA\PingQuick\", "PingCount", $$spnPingCount.Value, "REG_SZ")'

_________________
Kelly
Back to top
View user's profile Send private message Send e-mail MSN Messenger
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