Page 1 of 1 1
Topic Options
#88451 - 2002-10-04 05:46 PM KiXforms 2.1 Preview - Computer Account Password Age
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
It isn't done yet, but here is a preview of my next app...Computer Account Password Age

My dorky page (yes, I do know some HTML, but I was busy so I used Geocities

[ 04. October 2002, 17:48: Message edited by: Chris S. ]

Top
#88452 - 2002-10-04 05:58 PM Re: KiXforms 2.1 Preview - Computer Account Password Age
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
chris, "PDC or BDC" could be "Domain Controller"

[Wink]
 
_________________________
!

download KiXnet

Top
#88453 - 2002-10-04 06:11 PM Re: KiXforms 2.1 Preview - Computer Account Password Age
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Yeah, its a matter of preference. The WinNT provider can't provide the distinction between PDC or BDC. I'll change it to 'Domain Controller.'
Top
#88454 - 2002-10-04 06:25 PM Re: KiXforms 2.1 Preview - Computer Account Password Age
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
God dang Chris ... thats a beautiful thing!
Top
#88455 - 2002-10-04 06:58 PM Re: KiXforms 2.1 Preview - Computer Account Password Age
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Shawn - want a sneek peek at the code?

Also, a question about removing ListView items. I'm currently doing this to remove the ListView items:
code:
For Each $Item in $List.Items $Item.Remove Next

But, its rather clunky. Is there a way to remove all items in one fell swoop?

Top
#88456 - 2002-10-04 07:32 PM Re: KiXforms 2.1 Preview - Computer Account Password Age
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Way ahead of you there bud ...

$list.items.clear
$list.columns.clear
$list.clear

plus, I've implemented another strategy from dotnet called

BeginUpdate
EndUpdate

it freezes the drawing and rendering of any window while you are making an update, so for example, if you were to remove items the old way (is it an old way yet?" ... you would code this [this is freehand - sorry if typos]:

code:
$Form.BeginUpdate ' Freezes drawing

For Each $Item In $List.Items

$Item.Remove

Next

$Form.EndUpdate ; resume drawing

This technique make a major difference in performance. In fact, even with the $list.items.remove method, it still helps it to speed along. As well, Begin/EndUpdate should find other uses as well ... for example, when building dropdown windows (windows that expand down or sideways to expose hidden controls) ... should help to boost the look-and-feel there - you know - freeze drawing/ expand-draw controls / resume drawing kinda thingy.

[ps - i already sent you an email asking for the code [Wink] ]

[ 04. October 2002, 19:36: Message edited by: Shawn ]

Top
#88457 - 2002-10-04 07:43 PM Re: KiXforms 2.1 Preview - Computer Account Password Age
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Aren't you always 1 (or 2, 3, or more) step(s) ahead of us? I assume that those methods aren't in the build (35) that I have? I think I may have even tried one or two of them.

Oh, look at this behaviour in SpinButton:

code:
$Filter = $Form.TextBox
$Filter.Left = $Domains.Right + 32
$Filter.Top = 10
$Filter.Size = 35,20
$Filter.Locked = 1
$Filter.ToolTip = "Change the password age search filter"

$Spin = $Form.SpinButton(1)
$Spin.Top = 10
$Spin.Left = $Filter.Right - 1
$Spin.Size = 20,20
$Spin.Min = 0
$Spin.Max = 999
$Spin.Value = 90
$Spin.ToolTip = "Change the password age search filter"
$Spin.OnChange = "Spin_Change()"
$Filter.Text = $Spin.Value

Function Spin_Change()
$Filter.Text = $Spin.Value
EndFunction

When I 'hold' the spin button down, it increments along at a good pace. Then, the textbox value stops updating, but the spinbox value keeps incrementing. But the textbox value doesn't update after I 'let go' of the spin button until I push the spinbutton again.

Top
#88458 - 2002-10-04 07:44 PM Re: KiXforms 2.1 Preview - Computer Account Password Age
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
oh yeah, and

code:
$list.focuseditem.remove

$list.selecteditems.clear

the list and permutations will be endless.

how about this one (after view constructor)

code:
$list = $form.listview()

$list.columns.count = 10

That one should be already there.

-Shawn

How about this to create items that are already in a slected state:

code:
$list.selecteditems.add("Kixtart")

Cripes - I better cracking if I'm going to make ot for tomorrow.

[ 04. October 2002, 19:47: Message edited by: Shawn ]

Top
Page 1 of 1 1


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

Who's Online
0 registered and 1471 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.058 seconds in which 0.025 seconds were spent on a total of 12 queries. Zlib compression enabled.

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