Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Basic4ppc Wishlist > Bug Reports
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Bug Reports Post about errors or bugs encountered.

Bug in TreeView.dll/ControlsEx.dll?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-25-2007, 07:45 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 993
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default Bug in TreeView.dll/ControlsEx.dll?

Hi guys,

if I run this piece of code (see attachment) on the desktop, the checked node2 jumps up and down every time I press the button "jump"...
If I run this code on the device, the both nodes still flip up and down, but the "checked"-information of node2 get's lost...

Is it a bug in the dll or in .Net CF?


specci48
Reply With Quote
  #2 (permalink)  
Old 09-25-2007, 09:11 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Apparently the .Net CF treats differently checks by code and checks by clicking with the mouse (pen).
The checks that were done by the mouse are cleared when the node is removed from the tree, while the checks that were done by code do remain.
Reply With Quote
  #3 (permalink)  
Old 09-25-2007, 09:37 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 993
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

???
As you can see in my example, the node is checked by code and not by mouse/pen. According to your explanation the checked box should remain but in fact it gets cleared! Even I check the node by pen on the device, it gets cleared, too.


specci48
Reply With Quote
  #4 (permalink)  
Old 09-26-2007, 08:55 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Here is a workaround for this issue (which is a .Net CF issue):
Make sure to use the updated ControlsEx library.
Code:
Sub Globals

End Sub

Sub App_Start
    Init
    FMain.Show
End Sub

Sub Init 
    Tree1.New1(
"FMain",5,5,230,230)
    Tree1.CheckBoxes = 
True
    node1.New1
    node1.Value = Tree1.AddNewNode(
"Node1")
    node1.Value = Tree1.AddNewNode(
"Node2")
    node1.Checked = 
True
End Sub

Sub BtnJump_Click
    node1.Value = Tree1.GetNode(
1)
    Tree1.RemoveNodeAt(
1)
    Tree1.InsertNode(
0, node1.Value)
End Sub

Sub Tree1_AfterCheck
      
If tree1.Action = "unknown" Then Return
      node1.Value = tree1.CheckedNode
      node1.Checked = node1.Checked
End Sub
Reply With Quote
  #5 (permalink)  
Old 09-26-2007, 03:45 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 993
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Thanks Erel, that's the same solution I did implement for myself (so I did it right... )
I only wondered about your first answer which didn't expain the actual behavior.


specci48
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
using tabControl from ControlsEx Ricky D Questions (Windows Mobile) 2 09-18-2008 07:21 AM
ControlsEx V1.3 Erel Official Updates 0 05-21-2008 07:08 PM
ControlsEx update Erel Official Updates 0 03-14-2008 06:11 PM
ControlsEx library was released Erel Announcements 5 09-10-2007 11:02 PM
Help with ControlsEx jrb5564 Questions (Windows Mobile) 4 09-08-2007 04:44 PM


All times are GMT. The time now is 02:13 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0