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

Bugs in v.3.2.5.0 and beyond
Goto page 1, 2  Next
 
Post new topic   Reply to topic    KiXforms Forum Index -> KiXforms.NET Discussion
View previous topic :: View next topic  
Author Message
pearly
KiXforms Aficionado
KiXforms Aficionado


Joined: 27 Jan 2004
Posts: 332

PostPosted: Tue Jul 31, 2007 7:51 pm    Post subject: Bugs in v.3.2.5.0 and beyond Reply with quote

Okay, I'm noticing several changes off the bat with the new version of KF.NET.

Hopefully we can list all the bugs here and get them addressed.

Bug #1: $System.FormStartPosition_CenterScreen is broken.

The form does not start in center screen - it varies.

Bug #2: ListView size/anchor seems to be broken.

Visual Width and what's written in the code are different. It's much narrower.


Last edited by pearly on Wed Aug 08, 2007 5:42 pm; edited 1 time in total
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Tue Jul 31, 2007 9:22 pm    Post subject: Reply with quote

Hmmm good calls.

1) .Net has this habit of creating things at the last minute - just when they're shown (not when they're created) - this "can" cause some issues with docking and anchoring - so I changed things to create the form WHEN the form is instantiated - not when its show. Since the form is pre-created - maybe the startposition doesnt make sense now (because it was already started" ?)

2) Dont know about that one yet ..


Let me think on this ...
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Tue Jul 31, 2007 9:32 pm    Post subject: Reply with quote

k, I stopped pre-creating the form - the StartPosition works again - will leave it off for now.
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Tue Jul 31, 2007 9:33 pm    Post subject: Reply with quote

The second item is probably related to first ... let me post a new build and see if all is well.
Back to top
View user's profile Send private message
pearly
KiXforms Aficionado
KiXforms Aficionado


Joined: 27 Jan 2004
Posts: 332

PostPosted: Tue Jul 31, 2007 10:06 pm    Post subject: Reply with quote

Thanks Shawn! Btw, thanks for adding .NET 2.0 runtime! Scream
Back to top
View user's profile Send private message
pearly
KiXforms Aficionado
KiXforms Aficionado


Joined: 27 Jan 2004
Posts: 332

PostPosted: Wed Aug 01, 2007 6:58 pm    Post subject: Reply with quote

It looks like it's back to normal Shawn, thanks! Very Happy
Back to top
View user's profile Send private message
pearly
KiXforms Aficionado
KiXforms Aficionado


Joined: 27 Jan 2004
Posts: 332

PostPosted: Wed Aug 08, 2007 5:48 pm    Post subject: Reply with quote

Bugs in v.3.2.7.0

KF.NET program immediately crashes w/o warning when navigating to a TabPage that contains a ListView. When immediately going to the TabPage that contains ListView, the program immediately populates the columns, but something iffy went wrong.

I'm investigating the issue.
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Wed Aug 08, 2007 5:56 pm    Post subject: Reply with quote

I just happen to be working on a script that has a TabControl configured like this:

Code:

TabControl
  TabPage1
   TextBox (docked full)
  TabPage2
   ListView (docked full)


Haven't seen any crashing so far.

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


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Wed Aug 08, 2007 5:59 pm    Post subject: Reply with quote

Is it a "dot-netty" type of crash (that dotnet trace-back dialog appears?) or is it a crash-crash (shows in eventvwr from kix32.exe/wkix32.exe) ?
Back to top
View user's profile Send private message
pearly
KiXforms Aficionado
KiXforms Aficionado


Joined: 27 Jan 2004
Posts: 332

PostPosted: Wed Aug 08, 2007 6:27 pm    Post subject: Reply with quote

I found the issue. I knew it wasn't a TabControl issue because I could navigate to it before I click on a set of radiobuttons (which later triggers an event to populate the listview).

The issue lies on this:

Code:

$ = $lvwQS.Items.Add($System.ListViewItem($arr[$i]))
$ = $lvwQS.Items.Item($i).SubItems.Add($System.ListViewSubItem($addy))
$ = $lvwQS.Items.Item($i).SubItems.Add($System.ListViewSubItem(""))


It looks like $System.ListViewItem and $System.ListViewSubItem are no longer allowed. Did you happen to remove them in this latest version? Wink

I had to change it to this and it started working:

Code:

$ = $lvwQS.Items.Add($arr[$i])
$ = $lvwQS.Items.Item($i).SubItems.Add($addy)
$ = $lvwQS.Items.Item($i).SubItems.Add("")


Last edited by pearly on Wed Aug 08, 2007 6:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
pearly
KiXforms Aficionado
KiXforms Aficionado


Joined: 27 Jan 2004
Posts: 332

PostPosted: Wed Aug 08, 2007 6:30 pm    Post subject: Reply with quote

Btw it wasn't a "dot-netty" type of crash nor was it kix32/wkix32 eventviewer type of crash. The form simply disappears w/ no warning or errors!
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Wed Aug 08, 2007 7:13 pm    Post subject: Reply with quote

I did change them - I made Add an "overloaded" function ... let me look into ...
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Wed Aug 08, 2007 7:18 pm    Post subject: Reply with quote

k its not the "Add" - its the ListViewItem constructor - need to fix good call.
Back to top
View user's profile Send private message
pearly
KiXforms Aficionado
KiXforms Aficionado


Joined: 27 Jan 2004
Posts: 332

PostPosted: Wed Aug 08, 2007 9:17 pm    Post subject: Reply with quote

Thanks Shawn! Everything seems back to normal now. I will play around with the awesome new sorting features when I get the chance.

Great work as always Nod
Back to top
View user's profile Send private message
pearly
KiXforms Aficionado
KiXforms Aficionado


Joined: 27 Jan 2004
Posts: 332

PostPosted: Thu Aug 23, 2007 4:57 pm    Post subject: Reply with quote

Summary:

I noticed issues with ListView sorting when installing the latest greatest (currently 3.2.14.0). If you don't apply the new sorting features and try to use .Sorting = 1, then subitem values disappear!

Details:

I built a KF.NET app before the ListView sorting feature came out in 3.2.6.0.

I had this code for ListView

Code:

$lvwQS = $tbpQuoteServer.Controls.Add($System.ListView())
$lvwQS.name = "lvwQS"
$lvwQS.SelectedIndexChanged = 'lvwQSSelectedIndexChanged()'
$lvwQS.Anchor = $System.AnchorStyles_Left + $System.AnchorStyles_Right +
                $System.AnchorStyles_Top + $System.AnchorStyles_Bottom
$lvwQS.ContextMenu = $cmnuQS
$lvwQS.FullRowSelect = -1
$lvwQS.HideSelection = 0
$lvwQS.View = $System.View_Details
$lvwQS.Size = $System.Size(395, 345)
$lvwQS.Location = $System.Point(10, 15)


Notice I didn't use .Sorting, .AllowColumnReorder.

Code for columns

Code:

$colQSName = $lvwQS.Columns.Add($System.ColumnHeader())
$colQSName.Text = "ServerName"
$colQSName.Width = $lvwQS.Width/4+7
$colQSName.TextAlign = $System.HorizontalAlignment_Left

$colQSP = $lvwQS.Columns.Add($System.ColumnHeader())
$colQSP.Text = "Primary"
$colQSP.Width = $lvwQS.Width/4
$colQSP.TextAlign = $System.HorizontalAlignment_Left

$colQSS = $lvwQS.Columns.Add($System.ColumnHeader())
$colQSS.Text = "Secondary"
$colQSS.Width = $lvwQS.Width/4
$colQSS.TextAlign = $System.HorizontalAlignment_Left

$colQSC = $lvwQS.Columns.Add($System.ColumnHeader())
$colQSC.Text = "Connected"
$colQSC.Width = $lvwQS.Width/4+8
$colQSC.TextAlign = $System.HorizontalAlignment_Left

$colQSCDate = $lvwQS.Columns.Add($System.ColumnHeader())
$colQSCDate.Text = "Conn DTTM"
$colQSCDate.Width = $lvwQS.Width/4+5
$colQSCDate.TextAlign = $System.HorizontalAlignment_Left


Notice I didn't use SortType

I read values from an XML file and load it on the ListView. Then I apply this code

Code:

$lvwQS.Sorting = $TRUE


where $TRUE = 1

But whenever the ListView initially starts unsorted, then applying the code above, the Items that were shifted for sorting SubItem values are lost and show as blank.

I found this issue yesterday and I was going haywire until I figured out it was the sorting issue.

So, people who have already built KF.NET apps with Listviews and use the Sorting property may run into this.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> KiXforms.NET Discussion All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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