Page 1 of 3 123>
Topic Options
#89214 - 2002-11-03 10:15 PM KiXforms - Version 2.1.2 (Build 36) Released
rclarke Offline
Starting to like KiXtart
*****

Registered: 2001-06-08
Posts: 178
Loc: Oxfordshire, United Kingdom.
On behalf of Shawn, I am pleased to announce the release of KiXforms 2.1.2 (Build 36) which is available for download from the KiXforms web site:

KiXforms Download Page

The release notes are as follows:

ListView Object

Added support for deleting columns from the ListView object. The syntax is as follows:

$ListView.Columns(#).Remove
$ListView.Columns.Remove(#)

SpinButton Object

Fixed the SpinButton long duration click behavior. The control will no longer stall when holding down the arrow buttons. Also corrected automatic SpinButton acceleration. The new behavior is that as the arrows buttons are depressed for various durations, the increment (or decrement) will accelerate by more than one. Refer to following table for acceleration levels:

0-2 Seconds = Value +/-1
2-5 Seconds = Value +/-5
5+ Seconds = Value +/-20

Icon Support

Added support for extracting icons from EXEs. The syntax is to provide the full path of an executable followed by the index number of the icon to extract; for example:

$Button.Icon = "c:\folder\program.exe;n"

This release of KiXforms will return the 32x32 (large) version of the icon. It cannot return the 16x16 (small) version of the icon at this time.

Bug Fix

Fixed the changing of BorderStyle=0 for all controls. Prior behavior did not account for expansion or contraction of the client area by the addition or removal of a border. The effect was mostly evident for the Image control where bitmap a was stretched incorrectly. The new behavior accounts for this.

As always, please feel free to add any comment, questions or feedback to this thread.

Rod.

Top
#89215 - 2002-11-03 11:04 PM Re: KiXforms - Version 2.1.2 (Build 36) Released
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Just wanted to add that when I implemented the EXE icon extraction code, because of the nature of the way the icon/path is specified (its a property, not a method call), I had to choose between returning a small or large icon - and I decided to go with the large icon (32x32).

If the EXE has only small (16x16) icons, they will still return as 32x32 but then the developer can decide to shrink it back down to 16x16 using the Width/Height properties. I thought that this might make a better alternative then to have the 16x16 expanded to 32x32.

In the future, I will be implementing the LoadIcon() method call for all objects, and it will go something like this:

$Button.Icon = $Button.LoadIcon("path",index,size)

And this will bring the extraction of icons from DLLs,EXEs and ICOs under one roof, and allow the developer to specify the icons size and other things. As well, might make it so that if the developer specified -1 for the index, the method would return the total number of icons available in the resource. Not sure if this would be terribly usefull or not, but the method version extraction would give us this flexibility.

-Shawn

[ 03. November 2002, 23:06: Message edited by: Shawn ]

Top
#89216 - 2002-11-04 08:36 AM Re: KiXforms - Version 2.1.2 (Build 36) Released
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Great !

Two things to mention though

RichTextBox Control :

won't add the bookmark hyperlinks refering to positions in text created with word ... seems to react just as if you open that with Wordpad, any chance to get this working ?

Radio Buttons on Child form :

The freeze Issue is definetly solved [Big Grin]
But it still seems to fire an event if there is no activity on the buttons - You know the effect :
Having 3 options on first run it is all ok, on second Option 3 gets selected , 3rd will select option 2 and then toggles between 3 and 2

J.
_________________________



Top
#89217 - 2002-11-04 02:07 PM Re: KiXforms - Version 2.1.2 (Build 36) Released
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
j, as discussed will look into this issue and the zorder thingy asap.

Just as an fyi, and with the caveat that its only just started and subject to change, the beginnings of the RichTextBox object are included in this release (build 36) ... for anyone thats interested and has an RTF file they would to embed within a form, heres a sample script:

code:
Break On

$Form = CreateObject("Kixtart.Form")
$Form.Size = 600,400
$Form.FontSize = 9
$Form.FontName = "MS Sans Serif"

$RichEdit = $Form.RichTextBox
$RichEdit.Location = 10,10
$RichEdit.Right = $Form.ClientWidth - 10
$RichEdit.Bottom = $Form.ClientHeight - 10
$RichEdit.LoadFile(".\winzip.rtf")

$Form.Center
$Form.Show

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

exit

From my experience, and in seeing what Jochen is up to (his idea), the RichTextBox control has one very cool use. If you want to build an online HELP system for your script, simply write it up using wordpad and RTF, then create a simple dialog form with an embedded RichTextBox and a close button, and display that. I must admit that it looks very professional.

Top
#89218 - 2002-11-04 03:08 PM Re: KiXforms - Version 2.1.2 (Build 36) Released
Shawn Administrator Offline
Administrator
*****

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

What size icon will you be working with - 16x16 or 32x32 ? Was just "surveying" some standard windows applications, and was thinking that in the short-term, maybe the 16x16 size might actually be the better default to return from the exe extraction.

It seems that small icons are used for the following:

1) Menu Icons
2) Toolbar Menus (Rebars)
3) Some button captions
4) ListView small icon report view

And the larger icons are used for:

1) Button captions
2) ListView large icon report view

All-in-all, both formats are needed but maybe the small icon would have more short-term usefullness, not sure, what are your thoughts.

Top
#89219 - 2002-11-04 04:04 PM Re: KiXforms - Version 2.1.2 (Build 36) Released
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Any chance of getting the FileCopy dialog included?
Top
#89220 - 2002-11-04 04:19 PM Re: KiXforms - Version 2.1.2 (Build 36) Released
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Chris - yeah - im all for that.
Top
#89221 - 2002-11-04 04:19 PM Re: KiXforms - Version 2.1.2 (Build 36) Released
Wizard Offline
Hey THIS is FUN
*****

Registered: 2000-12-05
Posts: 264
Loc: Bristol, England
Could you add a .style option to the scroll bar to change between a blocky look (as is now), and a smooth look, where the bar is solid.

Thanks,

W
_________________________
Wizard
There's no place like 127.0.0.1

vb | kix | batch | html | cfm | js | english

Top
#89222 - 2002-11-04 04:20 PM Re: KiXforms - Version 2.1.2 (Build 36) Released
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
If you do, I promise to switch my KiXGUI logon script over to KiXforms. [Wink]
Top
#89223 - 2002-11-04 04:23 PM Re: KiXforms - Version 2.1.2 (Build 36) Released
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Wizard, do you mean the ProgressBar or the ScrollBar ? If ProgressBar, set the Style property to 1 for smooth peanut butter.
Top
#89224 - 2002-11-05 09:31 AM Re: KiXforms - Version 2.1.2 (Build 36) Released
Wizard Offline
Hey THIS is FUN
*****

Registered: 2000-12-05
Posts: 264
Loc: Bristol, England
Bugger. I meant Progress Bar.

Thanks
_________________________
Wizard
There's no place like 127.0.0.1

vb | kix | batch | html | cfm | js | english

Top
#89225 - 2002-11-05 01:03 PM Re: KiXforms - Version 2.1.2 (Build 36) Released
Schuliebug Offline
Hey THIS is FUN
*****

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

I now use the 32x32 icons to use in a login script (status reporting, will sent you an screenshot one of these days), but initially i wanted to use icons to place in front of the username, domain, workstation etc to show a glossy loginscript... In the last case i would like 16x16 icons [Smile]
_________________________
Kind regards,

Top
#89226 - 2002-11-06 10:11 AM Re: KiXforms - Version 2.1.2 (Build 36) Released
Wizard Offline
Hey THIS is FUN
*****

Registered: 2000-12-05
Posts: 264
Loc: Bristol, England
I have just noticed something, the .Visible property does not work on ProgressBars or Labels, unless I am typing it wrong.!

code:
 
$fraStatus.$lblFuncStatus.Visible = 0
$fraStatus.$prgFuncStatus.Visible = 0

Where $fraStatus is a frame and $lblFuncStatus is a label within the frame.

I have tried

code:
 
$lblFuncStatus.Visible = 0
$prgFuncStatus.Visible = 0

but still no luck.
_________________________
Wizard
There's no place like 127.0.0.1

vb | kix | batch | html | cfm | js | english

Top
#89227 - 2002-11-06 11:49 AM Re: KiXforms - Version 2.1.2 (Build 36) Released
Schuliebug Offline
Hey THIS is FUN
*****

Registered: 2002-01-18
Posts: 379
Loc: Netherlands
I think that object on a form are visible when the form is visible, unless you drop then object and/or recreate them. Drop the object like:
code:
lblFuncStatus=0

_________________________
Kind regards,

Top
#89228 - 2002-11-07 12:27 AM Re: KiXforms - Version 2.1.2 (Build 36) Released
Wizard Offline
Hey THIS is FUN
*****

Registered: 2000-12-05
Posts: 264
Loc: Bristol, England
But then, wouldn't that degate the need for the .visible

I am modifying the fantastic demo login script written by Chris S

The demo has a seperate window popup with a second progress bar for step completion within a function.

I have changed that by having two progress bars on the one form, but I wanted to hide the second progress bar when not in use.

Its not a major thing to get working, I just thought I found an issue with the .visible tag.

Thanks

W
_________________________
Wizard
There's no place like 127.0.0.1

vb | kix | batch | html | cfm | js | english

Top
#89229 - 2002-11-07 12:36 AM Re: KiXforms - Version 2.1.2 (Build 36) Released
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Wizard,

strange thing as I am surely able to hide both labels and progressbars (verified with KiX-O-Matic and the current script I worky on)

.Visible = 0 that is

[Confused] [Confused] [Confused]
_________________________



Top
#89230 - 2002-11-06 01:58 PM Re: KiXforms - Version 2.1.2 (Build 36) Released
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
wiz, was able to to verify expected behavior of hiding/showing ProgressBar with this code. In terms of negating the usefullness of .visible, the following statements have two very different meanings:

$ProgressBar.Visible = 0/1

Hides or shows the progressbar. The object still persists and is 100% functional and usable, can even set properties and change the Value while its hidden. This statement:

$ProgressBar = 0

Disposes the object completely so it doesn't exist anymore. Calling properties and methods on a disposed handle may or may not generate Kixtart runtime errors.

Heres the code:

code:
Break On

$Form = CreateObject("Kixtart.Form")
$Form.Size = 400,200

$ProgressBar = $Form.ProgressBar()
$ProgressBar.Center
$ProgressBar.Value = 50

$Button = $Form.Button()
$Button.Top = 10
$Button.Left = $Form.ClientWidth-$Button.Width-10
$Button.OnClick = "Button_Click"

Function Button_Click
$ProgressBar.Visible = Not $ProgressBar.Visible
EndFunction

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

-Shawn

[ 06. November 2002, 13:59: Message edited by: Shawn ]

Top
#89231 - 2002-11-06 02:39 PM Re: KiXforms - Version 2.1.2 (Build 36) Released
Wizard Offline
Hey THIS is FUN
*****

Registered: 2000-12-05
Posts: 264
Loc: Bristol, England
I found the problem.!

I am defining a form.
Then a frame within the form
Then a lable within the frame.

This is does not like.!

Using...
code:
$frmMain = CreateObject("Kixtart.Form")
$frmMain.Size = 300, 373
$frmMain.SysMenu = 0
$frmMain.Text = "Welcome to the @DOMAIN Domain"
$frmMain.Center

$fraStatus = $frmMain.Frame
$fraStatus.Size = 280, 115
$fraStatus.Center
$fraStatus.Top = 225
$fraStatus.Text = " Progress "

$prgStatus = $fraStatus.ProgressBar
$prgStatus.Size = 260, 17
$prgStatus.Center
$prgStatus.Style = 1
$prgStatus.Top = 40

the .visible does not work. But if I define the $prgStatus = $fraStatus.ProgressBar as an object of the form rather than the frame $prgStatus = $frmMain.ProgressBar then the .visible bit works.

Is that a bug, or just quirky.?? [Confused]

W
_________________________
Wizard
There's no place like 127.0.0.1

vb | kix | batch | html | cfm | js | english

Top
#89232 - 2002-11-06 03:01 PM Re: KiXforms - Version 2.1.2 (Build 36) Released
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Good one - it does work (the progressbar goes invisible) but the frame doesn't refresh properly, try your code again, then "wipe" a window (ie, the DOS box) over the frame - should see that the progressbar is hidden. hmmm ... must fix that. Or might try this code:

code:
Break On

$frmMain = CreateObject("Kixtart.Form")
$frmMain.Size = 300, 373
$frmMain.SysMenu = 0
$frmMain.Text = "Welcome to the @DOMAIN Domain"
$frmMain.Center

$btn = $frmMain.Button
$btn.OnClick = "btn_Click"

Function btn_Click
$prgStatus.Visible = 0
$frmMain.ReFresh
EndFunction

$fraStatus = $frmMain.Frame
$fraStatus.Size = 280, 115
$fraStatus.Center
$fraStatus.Top = 225
$fraStatus.Text = " Progress "

$prgStatus = $fraStatus.ProgressBar
$prgStatus.Size = 260, 17
$prgStatus.Center
$prgStatus.Style = 1
$prgStatus.Top = 40

$frmMain.Center
$frmMain.Show
While $frmMain.Visible
$=Execute($frmMain.DoEvents)
Loop


Top
#89233 - 2002-11-06 03:10 PM Re: KiXforms - Version 2.1.2 (Build 36) Released
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Hmmm ... speaking of frames :

I wasn't able to place a Picturebox being visible inside a frame, may this be the same Issue ?`

J.
_________________________



Top
Page 1 of 3 123>


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

Who's Online
1 registered (Allen) and 382 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.062 seconds in which 0.02 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