On Thu, Jan 10, 2013 at 10:23 AM, Staffan Tylen <staffan.ty...@gmail.com>wrote:
> My understanding is that ooDialog only supports text as item/subitem
> format.
>
ooDialog 4.2.1 supports all formats for a list-view that the underlying
control supports.
> What I'm looking for is a possibility to define a column that can contain
> subitems in for example drop-down control format so instead of editing a
> subitem the user can select a predefined value from a drop-down list. Is
> this something that could become a reality?
>
The list-view itself does not support this. If it did, it could easily
become a reality.
It might be possible for you to code this your self in Rexx. It would be
quite a bit of work I suspect, with no assurance it would be workable when
you were done.
The way that the list-view supports in place editing of the label of an
item is to create and popup a regular edit control the exact size and
position of the area the label occupies.
What I think you could do, is have a combo box object you create in the
dialog, but keep it hidden. When the user first clicks an item to select
it and then clicks again, you would determine which subitem the mouse is
over and then position and size the combo box as you want over the item,
then make it visible.
The tricky part would be in the event handler for the click event. You
would need to determine that the combo box should be shown, then do an
early reply, and have the combox position and show code, done in a separate
method. You would need to set the initial focus to the combo box and then
determine when to hide it. The lost focus event should work.
As I said, I sort of think it would work, but it might not. If it didn't
work, but almost did, and there was just some piece missing from ooDialog,
the it could become a reality. In fact I was telling Oliver the other day
that something he wanted to do might be possible. In-place editing of
subitems might be possibly by putting up an edit control instead of a combo
box.
--
Mark Miesfeld
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users