|
|
| Creating a GUI from a Web Service URL |

|
2008-04-28 16:06:34 |
I would like to create a web page that takes a URL as an
argument and
inspects a web service's inputs and builds an html form. I
know that .net
already does this, so I might have and option to look into
the .net source
code. I know that I will need to use the .wsdl file, but
other than that
I'm still searching for any advice anyone can give me about
how to skin this
cat, or maybe if someone has a way I don't need to write all
of this myself,
that would be great too.
Thanks,
Mark
===================================
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
|
| CustomNodeSorter for TreeView... |
  United States |
2008-05-01 08:51:24 |
I'm having trouble correctly implementing a CustomNodeSorter
for a
treeview control.
I've got a TreeView control where each TreeNode has as its
Tag an object
(TreeItem) that I made. One of the properties of TreeItem
is 'IsFolder'
for indicating if the TreeNode acts as a folder in the
custom treeview
I'm implementing.
For nodes displayed in the treeView, I desire that nodes be
arranged
such that in any branch, the folder nodes are shown first
in
alphabetical order and then the non folder nodes are shown
in
alphabetical order - just like in Windows Explorer.
However, I'm not implementing the CustomNodeSorter
correctly. Can
someone please point out the adjustments I need to make?
Sincerely,
Peter
------------------------------
public class CustomNodeSorter : IComparer
{
/// <summary>
/// This custom node sorter always shows a tree node
with
folders first and sorted alphabetically.
/// </summary>
/// <param name="x"></param>
/// <param name="y"></param>
/// <returns></returns>
public int Compare ( object x, object y )
{
TreeNode tx = ( TreeNode ) x;
TreeNode ty = ( TreeNode ) y;
TreeItem tix = ( TreeItem ) tx.Tag;
TreeItem tiy = ( TreeItem ) ty.Tag;
// Separate folders from other nodes.
if ( tix.IsFolder & !tiy.IsFolder )
{
return 1;
}
if ( !tix.IsFolder & tiy.IsFolder )
{
return -1;
}
// Neither or both are folders so compare
alphabetically.
return string.Compare ( tx.Text, ty.Text );
}
}
===================================
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
|
| Re: CustomNodeSorter for TreeView... |

|
2008-05-02 05:26:50 |
> // Separate folders from other nodes.
> if ( tix.IsFolder & !tiy.IsFolder )
It may be a typo on your part, and it probably doesn't have
any
functional effect in this case, but you should use
'&&' for logical
AND in this kind of expression, rather than '&' for
bitwise AND.
John
===================================
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
|
| Re: CustomNodeSorter for TreeView... |
  United States |
2008-05-07 15:59:39 |
Thanks for the comments, John.
-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:ADVANCED-DOTNET DISCUSS.DEVELOP.COM] On Behalf Of John
Brett
Sent: Friday, May 02, 2008 6:27 AM
To: ADVANCED-DOTNET DISCUSS.DEVELOP.COM
Subject: Re: [ADVANCED-DOTNET] CustomNodeSorter for
TreeView...
> // Separate folders from other nodes.
> if ( tix.IsFolder & !tiy.IsFolder )
It may be a typo on your part, and it probably doesn't have
any
functional effect in this case, but you should use
'&&' for logical
AND in this kind of expression, rather than '&' for
bitwise AND.
John
===================================
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
|
| programatically create treeview node
image |
  United States |
2008-05-07 08:46:19 |
I'm trying to come up with a good way to create (on-the-fly)
a bitmap to
be used as an image for a treeview node. I need to create
the bitmap to
be almost a thumbnail representation of changes a user makes
to a much
larger picture. In fact, often, the bitmap shape will be
the same but
it might be colored differently.
My initial googling did not turn up any good results. Any
suggestions,
please?
Peter
===================================
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
|
| Re: programatically create treeview node
image |

|
2008-05-13 02:05:24 |
> I'm trying to come up with a good way to create
(on-the-fly) a bitmap to
> be used as an image for a treeview node. I need to
create the bitmap to
> be almost a thumbnail representation of changes a user
makes to a much
> larger picture. In fact, often, the bitmap shape will
be the same but
> it might be colored differently.
I think I would simply use Graphics.DrawImage in a
combination with a
new Bitmap to create a miniature version of your larger
picture,
followed by a FillRectangle with a translucent brush of the
required
color (set the alpha channel to achieve translucency). Does
that
produce the effect you want?
Fabian
===================================
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
|
| Re: programatically create treeview
node image |

|
2008-05-13 02:05:24 |
> I'm trying to come up with a good way to create
(on-the-fly) a bitmap to
> be used as an image for a treeview node. I need to
create the bitmap to
> be almost a thumbnail representation of changes a user
makes to a much
> larger picture. In fact, often, the bitmap shape will
be the same but
> it might be colored differently.
I think I would simply use Graphics.DrawImage in a
combination with a
new Bitmap to create a miniature version of your larger
picture,
followed by a FillRectangle with a translucent brush of the
required
color (set the alpha channel to achieve translucency). Does
that
produce the effect you want?
Fabian
===================================
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
|
| Treeview - OwnerDraw |
  United States |
2008-05-15 11:05:47 |
Continuing on with my treeview customization - I want the
indent on the
treeview levels to be 4. The treeview control won't
(normally) allow
anything less than 16. So I figure I can tackle this by
ownerdraw'ing
the tree. If anyone knows that this idea WON'T work, please
do let me
know and you'll save me some time and aggravation.
Peter
===================================
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
|
| Treeview - OwnerDraw |
  United States |
2008-05-15 11:05:47 |
Continuing on with my treeview customization - I want the
indent on the
treeview levels to be 4. The treeview control won't
(normally) allow
anything less than 16. So I figure I can tackle this by
ownerdraw'ing
the tree. If anyone knows that this idea WON'T work, please
do let me
know and you'll save me some time and aggravation.
Peter
===================================
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
|
| Re: Treeview - OwnerDraw |

|
2008-05-15 12:54:41 |
Since you seem to be running into lot of limitations... have
you
thought about using another control like a grid/flexgrid
(e.g.
http://xcee
d.com/Grid_WinForms_Intro.html) ?
Sébastien
On 5/15/08, Peter Osucha <Peter proteindiscovery.com>
wrote:
> Continuing on with my treeview customization - I want
the indent on the
> treeview levels to be 4. The treeview control won't
(normally) allow
> anything less than 16. So I figure I can tackle this
by ownerdraw'ing
> the tree. If anyone knows that this idea WON'T work,
please do let me
> know and you'll save me some time and aggravation.
>
> Peter
>
> ===================================
> This list is hosted by DevelopMentor(R) http://www.develop.com
>
> View archives and manage your subscription(s) at http://discuss.develop.com
>
--
Sébastien
www.sebastienlorion.com
===================================
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
|