FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

trying to set FullRowSelect property for ListBox

 
Post new topic   Reply to topic     Forum Index -> DFL
View previous topic :: View next topic  
Author Message
rolftollerud



Joined: 01 May 2005
Posts: 6

PostPosted: Sun May 01, 2005 1:53 pm    Post subject: trying to set FullRowSelect property for ListBox Reply with quote

I am very pleased and impressed with DFL. Thank you!

I want to set FullRowSelect property in the "Spreadsheet" example.

"The FullRowSelect property allows you to specify if the entire row of the selected item is highlighted and clicking anywhere on an item's row causes it to be selected".

I tried like this to send a message to the listbox,

SendMessageA(myList.handle,4096 + 54,32,true); but it don't work.

What are the correct values for the parameters?

SendMessageA(myList.handle,LVM_SETEXTENDEDLISTVIEWSTYLE, LVS_EX_FULLROWSELECT, LVS_EX_TRACKSELECT);

Could you help me along?

Regards
Rolf Tollerud
Back to top
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Sun May 01, 2005 4:30 pm    Post subject: Re: trying to set FullRowSelect property for ListBox Reply with quote

rolftollerud wrote:
I am very pleased and impressed with DFL. Thank you!

Thanks!

Quote:
I want to set FullRowSelect property in the "Spreadsheet" example.

"The FullRowSelect property allows you to specify if the entire row of the selected item is highlighted and clicking anywhere on an item's row causes it to be selected".

I tried like this to send a message to the listbox,

SendMessageA(myList.handle,4096 + 54,32,true); but it don't work.

What are the correct values for the parameters?

SendMessageA(myList.handle,LVM_SETEXTENDEDLISTVIEWSTYLE, LVS_EX_FULLROWSELECT, LVS_EX_TRACKSELECT);

Could you help me along?

Regards
Rolf Tollerud

Sorry, I think you are confusing list box with list view. ListBox does not support this. I am planning to do ListView after TabControl, which I have started on TabControl already. Please be patient Smile
- Chris
Back to top
View user's profile Send private message
rolftollerud



Joined: 01 May 2005
Posts: 6

PostPosted: Mon May 02, 2005 12:55 am    Post subject: ok! I'll wait! Reply with quote

But could you possibly only help me to create a listview that I can play while I am waiting?

HWND window = CreateWindowExA(0, "DWndClass", "a listviw control",
WS_CAPTION | WS_MINIMIZEBOX | WS_SYSMENU | WS_VISIBLE,
CW_USEDEFAULT, CW_USEDEFAULT,
200, 100, HWND_DESKTOP,
cast(HMENU) null, GetModuleHandleA(null), null);

I take it that there is "DWndClass" that has to be something else?

Regards
Rolf Tollerud
(I know that it is too much to ask.. Smile
Back to top
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Mon May 02, 2005 5:06 am    Post subject: Re: ok! I'll wait! Reply with quote

rolftollerud wrote:
But could you possibly only help me to create a listview that I can play while I am waiting?

http://www.dprogramming.com/mylistview.html or without colors http://www.dprogramming.com/mylistview.d
Back to top
View user's profile Send private message
rolftollerud



Joined: 01 May 2005
Posts: 6

PostPosted: Wed May 04, 2005 10:23 am    Post subject: You are doing me a great favor! Reply with quote

Thank you!

Unfortunatly I have to ask again!

So far I have:

http://www.marianaturner.com/dfl/mylistview.d

The columns and Items seems to be created (but not the subItems)
But the main problem is that I se only a white rectangle on the sceen!

/rolf Embarassed
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DFL All times are GMT - 6 Hours
Page 1 of 1

 
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


Powered by phpBB © 2001, 2005 phpBB Group