TreeView - OnHeaderColumnClicked

Ein Forum zum Erfahrungsaustausch und Hilfestellung in deutscher Sprache.

TreeView - OnHeaderColumnClicked

Postby PMan » Thu Feb 24, 2011 5:22 pm

Hallo,

beim TreeView wird der Event OnHeaderColumnClicked nicht mehr erkannt, eine Sortierung der Spalten ist damit nicht mehr möglich.

s.hierzu Projekt: http://kbasic.com/forum/viewtopic.php?f=14&t=698&st=0&sk=t&sd=a&start=20

/PMan
PMan
 
Posts: 145
Joined: Sat Jul 03, 2010 12:31 pm
Location: Switzerland

Re: TreeView - OnHeaderColumnClicked

Postby Slowdown » Fri Feb 25, 2011 9:21 am

Hi PMan,
Sorry for the English (perhaps you can translate it for the German users)

Can't explain it but do have a workaround for you.
Have played with your project and found out if you before adding a row or a child first clicked the header all
is working as it should so i added one line in your code,
Code: Select all
Sub Form_OnOpen()

  SetTVHeader
  tvTest_OnHeaderColumnClicked(0)        ' added this line
'Sortierung für die erste Spalte aufsteigend anlegen,
'aktiviert wir über OnHeaderColumnClicked
  tvTest.SortItems(0, False) 
 
End Sub    'Form_OnOpen________________________________________________________
Hope it helps you a bit.
Regards
Slowdown for now i'm back
Slowdown
 
Posts: 347
Joined: Sat May 02, 2009 6:48 pm
Location: Netherlands

Re: TreeView - OnHeaderColumnClicked

Postby PMan » Fri Feb 25, 2011 2:38 pm

Hi Slowdown,

that's great and works perfect. But the old version runs with the older compiler. What's happend?

Thank you
/Pman
PMan
 
Posts: 145
Joined: Sat Jul 03, 2010 12:31 pm
Location: Switzerland

Re: TreeView - OnHeaderColumnClicked

Postby Henning » Fri Feb 25, 2011 3:16 pm

There are some functions working in older versions that have stopped working in later bug-fixes :(

Example, using keywords as fieldnames when accessing DB's.

Maybe a list of what has been working in older versions, that has stopped working? OTOH, prio one is on Q7B.

/Henning
Henning
 
Posts: 262
Joined: Mon Feb 09, 2009 12:03 am
Location: Sweden

Re: TreeView - OnHeaderColumnClicked

Postby Slowdown » Sun Feb 27, 2011 10:23 am

PMan wrote:Hi Slowdown,

that's great and works perfect. But the old version runs with the older compiler. What's happend?

Thank you
/Pman

You're welcome and perhaps with fixing bugs introducing new one's :roll:
Regards
Slowdown for now i'm back
Slowdown
 
Posts: 347
Joined: Sat May 02, 2009 6:48 pm
Location: Netherlands


Return to Deutsches Forum (in German only)

cron