#87520 - 2002-08-27 05:05 PM
Kixforms: Version 2.0.3
|
Shawn
Administrator
   
Registered: 1999-08-13
Posts: 8611
|
Available from my temporary server:
Kixforms Version 2.0.3
[rod - still can't email you the zip file - could you pull it directly from this server ?]
Summary of changes in 2.0.3:
quote:
2.0.3 =====
- Added the OnAbout event to the FORM object. This will allow one to override and customize the default ABOUT menuitem in SysMenu.
- Changed the default behavior of TEXTBOX to support automatic horizontal and vertical scrolling of text. See WORDWRAP
- WordWrap
A boolean indicating whether the TextBox supports (automatic) horizontal scrolling of text, or automatic wrapping of text to the next line.
Single-line TextBox:
WordWrap is FALSE by default. Text will automatically scroll horizontally. To disable horizontal scrolling, set WordWrap to TRUE. Since there is no "next line" in a single-line control, this effectively limits input to the width of the control.
Mutli-Line TextBox:
WordWrap is TRUE by default. Text will automatically wrap to the next line and not scroll horizontally. To enable horizontal scrolling, set WordWrap to FALSE.
- AcceptsTab
A boolean indicating whether the control accepts the TAB key as user input
- AcceptsReturn
A boolean indicating whether the control accepts the RETURN key as user input.
Here's a quick and dirty script to excersise some of the new features. It emulates a QuickNote type GUI interface ... doesn't really send a quick note (but could be enhanced with MAPI or OUTLOOK type automation to really send a quick note) ...
code:
Break On $Form = CreateObject("Kixtart.Form") $Form.Caption = "QuickNote" $Form.OnAbout = "About()" $Form.FontSize = 10 $Form.FontName = "Arial" $Form.Size = 400,400 $Form.PrintXY(40,45,"To:") $Address = $Form.ComboBox $Address.Size = 310,100 $Address.Location = 70,45 $Address.MaxLength = 50 $Address.AutoTab = True $Address.List = "joe@@hotmail.com","sam@@yahoo.com","sally@@sympatico.ca" $Form.PrintXY(10,80,"Subject:") $Subject = $Form.ComboBox $Subject.Size = 310,100 $Subject.Location = 70,75 $Subject.MaxLength = 50 $Subject.AutoTab = True $Subject.List = "Emergency","Lunch","Meeting","Review","Status","Question" $Message = $Form.TextBox $Message.Size = 370,180 $Message.Location = 10,120 $Message.MultiLine = True $Message.AcceptsTab = True $Message.AcceptsReturn = True $Send = $Form.Button $Send.Caption = "Send Now" $Send.Center $Send.Top = $Message.Bottom + 20 $Send.OnClick = "Send()" $Send.Appearance = 0 $Send.Default = 1 $Form.FontSize = 20 $Form.ForeColor = 190,190,190 $Form.PrintXY(128,7,"QuickNote") $Form.ForeColor = 0,0,255 $Form.PrintXY(125,4,"QuickNote") $Form.Center $Form.Show $Address.SetFocus While $Form.Visible $=Execute($Form.DoEvents) Loop Exit 1 Function Send() $rs = $Form.MsgBox("Message sent (not really!)","QuickNote",64) EndFunction
Function About() $rs = $Form.MsgBox("QuickNote v1.0","QuickNote",32) EndFunction
[ 27. August 2002, 17:07: Message edited by: Shawn ]
|
Top
|
|
|
|
#87521 - 2002-08-27 05:22 PM
Re: Kixforms: Version 2.0.3
|
Shawn
Administrator
   
Registered: 1999-08-13
Posts: 8611
|
Got one out-standing "issue" that is a side-effect of implementing the AcceptsTab property.
When tabbing into a TextBox - I had set things up so that the entire contents of the textbox was highlited (selected) ... this is a very common setting in alot of windows apps.
But when the TextBox accepts the tab key as input (or any other key for that matter), because the all the text is selected, the text gets "replaced" with the new key (deleted) ... as MS would say - this is "by design" really - but when it comes to the TAB key - a little bit un-expected (imho)
VB doesn't have a property for this, ActiveX/VBA has a property called "EnterFieldBehavior" that allows one to change this "behavior" ... but since we've decided to stick with the .NET naming scheme ... went looking for the same feature in .net found that it isn't supported
So - in keeping with a .net-ish type naming scheme ... will be calling it:
$TextBox.AutoSelect = True/False
eh ? anyone ?
-Shawn
|
Top
|
|
|
|
#87522 - 2002-08-27 07:56 PM
Re: Kixforms: Version 2.0.3
|
Shawn
Administrator
   
Registered: 1999-08-13
Posts: 8611
|
Been playing around a little with that QuickNotes script ... still doesn't actually send notes but was trying to make it look more professional ...
Re-arranged the buttons some. Created what can best be described as a "poor-mans-menu-bar" ... also added what can best be described as a "poor-mans-status-bar" ... need the real thing me thinks ...
code:
; ; KIXTART 4.0 ; KIFORMS 2.0.3 ;
$APPNAME = "QuickNotes" Break On $Form = CreateObject("Kixtart.Form") $Form.Caption = $APPNAME $Form.OnAbout = "About()" $Form.BorderStyle = 6 $Form.FontSize = 10 $Form.FontName = "Arial" $Form.Size = 400,350 $Frame = $Form.Frame $Frame.Size = $Form.ClientWidth,53 $Frame.Location = 0,-5 $Send = $Form.Button $Send.Caption = "Send" $Send.Size = 60,40 $Send.Location = 2,$Frame.Top+10 $Send.OnClick = "Send()" $Send.Appearance = 0 $Send.ToolTip = "Send your message now" $Options = $Form.Button $Options.Caption = "Options" $Options.Size = 60,40 $Options.Location = $Send.Right-1,$Frame.Top+10 $Options.OnClick = "Options()" $Options.Appearance = 0 $Options.ToolTip = "Customize settings" $Exit = $Form.Button $Exit.Caption = "Exit" $Exit.Size = 60,40 $Exit.Location = $Options.Right-1,$Frame.Top+10 $Exit.OnClick = "Finish()" $Exit.Appearance = 0 $Exit.ToolTip = "Exit without sending" $Form.PrintXY(40,60,"To:") $Address = $Form.ComboBox $Address.Size = 310,100 $Address.Location = 70,$Frame.Bottom+5 $Address.MaxLength = 50 $Address.AutoTab = True $Address.List = "joe@@hotmail.com","sam@@yahoo.com","sally@@sympatico.ca" $Address.OnGotFocus = "$$Status.Text = 'Type recipients name'" $Form.PrintXY(10,85,"Subject:") $Subject = $Form.ComboBox $Subject.Size = 310,100 $Subject.Location = 70,$Address.Bottom+5 $Subject.MaxLength = 50 $Subject.AutoTab = True $Subject.List = "Emergency","Lunch","Meeting","Review","Status","Question" $Subject.OnGotFocus = "$$Status.Text = 'Type the subject for this message'" $Message = $Form.TextBox $Message.Size = 388,180 $Message.Location = 3,$Subject.Bottom+5 $Message.MultiLine = True ;$Message.AcceptsTab = True $Message.AcceptsReturn = True $Message.OnGotFocus = "$$Status.Text = 'Type your message here'" $Status = $Form.Label $Status.Size = 388,20 $Status.Location = 3,$Message.Bottom + 5 $Status.BorderStyle = 5 ; Sunken $Status.Text = "Ready" $Form.ClientHeight = $Status.Bottom + 2 $Form.Center $Form.Show $Address.SetFocus While $Form.Visible $=Execute($Form.DoEvents) Loop Exit 1 Function Send() $rs = $Form.MsgBox("Message sent (not really!)",$APPNAME,64) EndFunction Function About() $rs = $Form.MsgBox("QuickNote v1.0",$APPNAME,32) EndFunction Function Options() $rs = $Form.MsgBox("QuickNotes v1.0",$APPNAME,32) EndFunction Function Finish() If $Form.MsgBox("Do you really wish to quit ?",$APPNAME,4) = 6 $Form.Hide EndIf EndFunction
|
Top
|
|
|
|
#87523 - 2002-08-27 08:06 PM
Re: Kixforms: Version 2.0.3
|
rclarke
Starting to like KiXtart
   
Registered: 2001-06-08
Posts: 178
Loc: Oxfordshire, United Kingdom.
|
KiXforms 2.0.3 is now also available from the KiXforms Website. Shawn, I have sent you a whole long list of e-mail addresses so you should be able send me stuff anywhere, anytime
Rod. [ 27. August 2002, 20:07: Message edited by: rclarke ]
|
Top
|
|
|
|
#87525 - 2002-08-27 08:47 PM
Re: Kixforms: Version 2.0.3
|
rclarke
Starting to like KiXtart
   
Registered: 2001-06-08
Posts: 178
Loc: Oxfordshire, United Kingdom.
|
Many thanks Shawn (very embarassed by high praise indeed ), I must admit it is great fun doing something like the KiXforms website, even my other half follows it's development and she hates anything to do with computers. I'm glad you like the Javascript menu graphic, do I sense a OnMouseOver or OnHover event in the making
Rod.
|
Top
|
|
|
|
#87528 - 2002-08-28 12:30 AM
Re: Kixforms: Version 2.0.3
|
rclarke
Starting to like KiXtart
   
Registered: 2001-06-08
Posts: 178
Loc: Oxfordshire, United Kingdom.
|
Firstly Shawn, yeah I agree with you prioritising the multi-column listboxes. I have written a little app that remotely queries and then upgrades the Anti-Virus software on our user's workstations. It would benefit enormously from multi-column listboxes so that one definitely gets my vote.
Secondly Jack, thank you for the compliment and I totally agree with you that several individuals - like anyone with telephone number-esque post counts - have made an enormous contribution to the KiXtart community. KiXforms has completely transformed KiXtart for me, it was great to begin with, but now it is just plain brilliant. Keep up the hard work Shawn, your public expects
Rod.
|
Top
|
|
|
|
#87534 - 2002-09-05 12:12 AM
Re: Kixforms: Version 2.0.3
|
punkie
Getting the hang of it
Registered: 2002-06-23
Posts: 67
|
Can't wait until the multi-column feature is out, could come real handy right now. Have to say you're doing a great job with Kixforms, it's a powerful add-on for Kixtart
|
Top
|
|
|
|
Moderator: Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart
|
0 registered
and 255 anonymous users online.
|
|
|