What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » General Help with Interfaces

General Help with Interfaces
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: General Help with Interfaces
In normal programs this isn't directly possible either; the listview control (in report mode) simply doesn't directly support this.

However, it is always done by displaying an editbox control (or combobox control or whatever else is needed as 'input' control) over the field you want to edit and filling this editbox with the value of the field. After you've done editing the editbox control is removed (hidden).

But as you can guess this requires some calls to the listview to get the exact column and row position (to be able to know where to display the editbox), and some callbacks.

The stuff you need for this isn't completely supported by Plus!, unfortunatly. There are some workarounds, but they are dodgy and have other disadvantages/shortcommings.

It would be very cool if Patchou could make it directly supported in Plus! of course. Even just adding the ability to use proper callbacks would solve it from what I remember from my trials with this (but then you still need to do the job yourself of course; but it would make it possible).

;)

PS: in the mean time you can always use the listview to display your stuff, and for editing it make a (fixed) row of several editboxes below the listview. Each time the user clicks on a field in the listview, the row of editboxes is filled with the values of that listview row. And the user can then edit the values it in that way.

-----------------------

EDIT: Vikke's suggestion is exactly the same as mine. The only difference is that his suggestion involves an extra window, whereas I said you can add it below your listview in the very same window (=more user friendly IMHO):

+-------+-------+-------+-------+-------+
| title1| title2| title3| title4| title5| <== listview control
+-------+-------+-------+-------+-------+
|       |       |       |       |       |
|       |       |       |       |       |
|       |       |       |       |       |
|       |       |       |       |       |
|       |       |       |       |       |
|       |       |       |       |       |
+-------+-------+-------+-------+-------+
.+-----+ +-----+ +-----+ +-----+ +-----+.
.|     | |     | |     | |     | |     |.  <== editboxes, one per column
.+-----+ +-----+ +-----+ +-----+ +-----+.


When the user highlights a line in the listview, the cells are filled in in the editbox. When the user clicks in an editbox the row in the listview stays highlighted (this is a property of the listview which you can set) and he can edit the value. As soon as the focus is lost from a specific editbox, that value is copied back to the proper cell in the listview. In this way: no need for an extra window with the same labels, more buttons, etc. It enables quicker editing (if that is what you want of course).

It is just a matter of design, of where to place the editboxes. The method is exactly the same: using a row of editboxes. In both cases you don't need any scrollbars though. PS: you can move controls on windows on the fly. This means that you can even make your editboxes grow or shrink according to the column widths of the listview in case you have dynamic column widths.

;)

This post was edited on 12-01-2007 at 11:59 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
12-01-2007 02:11 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
General Help with Interfaces - by Crazed on 11-30-2007 at 06:27 AM
RE: General Help with Interfaces - by Toneo on 11-30-2007 at 07:30 PM
RE: General Help with Interfaces - by Crazed on 11-30-2007 at 07:50 PM
RE: General Help with Interfaces - by Toneo on 11-30-2007 at 07:54 PM
RE: General Help with Interfaces - by Crazed on 11-30-2007 at 08:23 PM
RE: General Help with Interfaces - by Toneo on 11-30-2007 at 08:41 PM
RE: General Help with Interfaces - by Crazed on 12-01-2007 at 01:58 AM
RE: General Help with Interfaces - by Toneo on 12-01-2007 at 07:46 AM
RE: General Help with Interfaces - by Matti on 12-01-2007 at 09:09 AM
RE: General Help with Interfaces - by Toneo on 12-01-2007 at 09:40 AM
RE: General Help with Interfaces - by CookieRevised on 12-01-2007 at 02:11 PM
RE: General Help with Interfaces - by vikke on 12-01-2007 at 02:38 PM
RE: General Help with Interfaces - by Crazed on 12-01-2007 at 06:11 PM
RE: General Help with Interfaces - by Toneo on 12-03-2007 at 04:17 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On