Page 1 of 2 12>
Topic Options
#87520 - 2002-08-27 05:05 PM Kixforms: Version 2.0.3
Shawn Administrator Offline
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 Offline
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 [Smile]

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 Offline
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 Offline
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 [Big Grin]

Rod.

[ 27. August 2002, 20:07: Message edited by: rclarke ]

Top
#87524 - 2002-08-27 08:29 PM Re: Kixforms: Version 2.0.3
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Rod,

Kixforms aside, I have to admit that is one hell of a good looking website you built there ... jeez ... it still knocks my soxs off every time I see it ... your very talented. And thanks for all the hard work and effort ... saying your going to do something is one thing ... actually going out and doing ... well ...

I was "navigating" that Kixforms-like menu bar you have on the side ... noticed that ToolTips was enabled and that when you hover over the button - it gets (what looks like) the keyboard focus ... wondering if that would be a cool feature to add into Kixforms ... hmmm ....

Thanks

Top
#87525 - 2002-08-27 08:47 PM Re: Kixforms: Version 2.0.3
rclarke Offline
Starting to like KiXtart
*****

Registered: 2001-06-08
Posts: 178
Loc: Oxfordshire, United Kingdom.
Many thanks Shawn (very embarassed by high praise indeed [Embarrassed] ), 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 [Big Grin]

Rod.

Top
#87526 - 2002-08-27 09:10 PM Re: Kixforms: Version 2.0.3
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Yeah, was looking into implementing OnMouseOver (.net = OnMouseHover ?), OnMouseEnter and OnMouseLeave as well as OnKeyPress, OnKeyUp and OnKeyDown ...

But think I should be looking more to implement that mutli-column listbox though ... that will really change the landscape quite a bit ...

Top
#87527 - 2002-08-27 10:37 PM Re: Kixforms: Version 2.0.3
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
Congradulations! You guys are amazing.

I just visited the website & I am impressed by both the website & kixforms.

In the last year the kixtart community has become truly something impressive & I think shawn & bryce had a lot to do with this change.
_________________________
Jack

Top
#87528 - 2002-08-28 12:30 AM Re: Kixforms: Version 2.0.3
rclarke Offline
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 [Wink]

Rod.

Top
#87529 - 2002-08-29 12:09 AM Re: Kixforms: Version 2.0.3
Schuliebug Offline
Hey THIS is FUN
*****

Registered: 2002-01-18
Posts: 379
Loc: Netherlands
Shawn,

Just tried the new KiXforms; great improvement, althought i have one question: when allowing a textbox to be more than one line (or larger than the window can hold), wouldn't a scrollbar on the rightside come in handy ? Maybe this could be an automatic mechanism? I changed a few lines on my WhoAmI script and it works like a charm! [Smile]

I agree with Jack: great to have you on the BB. KiXforms deserves it's own forum!!
_________________________
Kind regards,

Top
#87530 - 2002-08-28 01:49 PM Re: Kixforms: Version 2.0.3
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22344
Loc: OK
schulie, did I miss something?

I tried with old version 1 dll and this works just fine:
code:
$Form = CreateObject("Kixtart.Form")
$t = $Form.editbox("The KiXtart Bulletin Board")
$t.width = 400
$t.height=200
$t.multiline=1
$t.Center

_________________________
!

download KiXnet

Top
#87531 - 2002-08-30 12:22 AM Re: Kixforms: Version 2.0.3
rclarke Offline
Starting to like KiXtart
*****

Registered: 2001-06-08
Posts: 178
Loc: Oxfordshire, United Kingdom.
EditBox no longer exists with KiXforms 2.x. I have just been trying out KF 2.0.3 with TextBoxes and agree with Jan that vertical scrollbars with a multi-line TextBox would be a big advantage.

I am currently developing our next generation logon script at work, and one of our new requirements is to have a legal blurb intro screen, which the user must accept before gaining access to network resources. I would like to implement a screen similar to a license agreement page seen during a product install, but that would require a scrollable, yet content locked TextBox, which I don't believe is possible in KiXforms yet.

Rod.

Top
#87532 - 2002-08-30 12:36 AM Re: Kixforms: Version 2.0.3
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22344
Loc: OK
what I still would like to see is the version number corrected.

as example, my checker does not function correctly with version 2.

but all users who install it, will overwrite the version one.

that is just because the internal name (seen in typelib info) is still 1.0

I might be the only using also the version one, but anyway, as they are not fully compatible with each other, I ask to enable the using of both.
_________________________
!

download KiXnet

Top
#87533 - 2002-08-30 11:47 AM Re: Kixforms: Version 2.0.3
Fernando Madruga Offline
Starting to like KiXtart

Registered: 2002-08-21
Posts: 149
Loc: Coimbra.Portugal.Europe.Earth....
I don't seem to be able to run the Demo.kix included with KixForms 2.0.3... Is there something wrong with it?

Also, is there some kind of "non-online" docs for KixForms? One thing that seems to be lacking is some nice, decent docs for KixForms... [Smile]

Later,
  Madruga
_________________________
Later,   [b]Mad[/b]ruga

Top
#87534 - 2002-09-05 12:12 AM Re: Kixforms: Version 2.0.3
punkie Offline
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 [Smile]
Top
#87535 - 2002-09-05 05:23 PM Re: Kixforms: Version 2.0.3
Vig Offline
Starting to like KiXtart

Registered: 2001-11-14
Posts: 166
Loc: Saudi Arabia
I must have missed something. Updated from 2.0.1b to 2.0.3 and now my listbox is no longer sorted. I see you have the "Sorted" property in the documentation, going to implement this any time soon?

I realize I could use a UDF to sort the array first but this adds time especially when the listbox has upwards of 500 strings.

Thanks

[ 05. September 2002, 17:47: Message edited by: Vig ]

Top
#87536 - 2002-09-05 06:43 PM Re: Kixforms: Version 2.0.3
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Hi Vig, yes - I'm guilty as charged ... Initially I set things up so that ListBoxes and ComboBoxes were sorted by default ... than had some regression issues and backed-off, and haven't implemented the SORTED property yet ...

I'm "caught" in between releases right now ... between 2.0.3 and 2.1 ... found some COM issues while implementing MutliColumn Lists ... think what I will do is publish a 2.0.4 with this feature ... and some other stuff as well ... until this COM issue is sorted out. Stay tuned.

Top
#87537 - 2002-09-05 06:44 PM Re: Kixforms: Version 2.0.3
Vig Offline
Starting to like KiXtart

Registered: 2001-11-14
Posts: 166
Loc: Saudi Arabia
Thank you very much in advance.
Top
#87538 - 2002-09-09 07:59 AM Re: Kixforms: Version 2.0.3
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22344
Loc: OK
shawn, I remember you saying that form should be responsible to user without those my refresh calls...

didn't manage to get it respond in anyway to me after removed the inline call's from my checker.

also timed the form refresh, didn't do either.
_________________________
!

download KiXnet

Top
#87539 - 2002-09-09 11:46 AM Re: Kixforms: Version 2.0.3
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22344
Loc: OK
I wonder another thing too...

are hyperlink's caption and other properties readonly?

can't change caption...
_________________________
!

download KiXnet

Top
Page 1 of 2 12>


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

Who's Online
1 registered (Allen) and 302 anonymous users online.
Newest Members
Kelly001, MichaelK72, Janneman, standardbruker, maikoenig2001
17773 Registered Users

Generated in 0.043 seconds in which 0.011 seconds were spent on a total of 13 queries. Zlib compression enabled.

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