flat assembler
Message board for the users of flat assembler.

Index > IDE Development > Fresh Alpha 1.1

Author
Thread Post new topic Reply to topic
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard 12 Jan 2006, 13:24
I'm almost ready to release new Fresh version, with redesigned project manager. Now it is implemented as a single tree view. Unfortunatelly I'm having problems with this control. For example when user clicks with right mouse button on any tree view item, I send TVM_GETNEXTITEM message with TVGN_CARET to obtaing that item's handle. But it sometimes doesn't return valid item. For example, when I select "item 1" with left button, then right-click on "item 2", TVNG_CARET will return handle of "item 1". How can I solve this?

link to current version of Fresh: http://decard.net/fresh11.exe
Post 12 Jan 2006, 13:24
View user's profile Send private message Visit poster's website Reply with quote
Reverend



Joined: 24 Aug 2004
Posts: 408
Location: Poland
Reverend 12 Jan 2006, 17:54
Maybe Treeview has style TVS_SHOWSELALWAYS (or similar) which will make the control "remember" last focused item. It's just a guess, but you may try to remove such style
Post 12 Jan 2006, 17:54
View user's profile Send private message Visit poster's website Reply with quote
pelaillo
Missing in inaction


Joined: 19 Jun 2003
Posts: 878
Location: Colombia
pelaillo 12 Jan 2006, 19:44
Why about TVN_SELCHANGED? You obtain both itemOld and itemNew on NM_TREEVIEW.
Post 12 Jan 2006, 19:44
View user's profile Send private message Yahoo Messenger Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard 23 Jan 2006, 22:02
maybe I wasn't clear enough when I tried to explain my problem, but I solved it myself. Smile
I realised that when tree view item is clicked with right button, it isnt "selected" (although it is drawn with shadow). So TVN_SELCHANGED isn't send at all. I solved this by traping NM_RCLICK notification from Tree View. When it occurs I just change selection manually.
Post 23 Jan 2006, 22:02
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
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


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.