Re: [NF] Winforms

2021-08-20 Thread Eric Selje
That is a shortfall, but WPF does a lot of things that we would LOVE to
have in VFP (e.g. CSS llke Styles, much better responsiveness than our
anchors, etc.)

Eric

On Fri, Aug 20, 2021 at 12:26 PM MB Software Solutions, LLC <
mbsoftwaresoluti...@mbsoftwaresolutions.com> wrote:

> Wow...I see you created that in 2019.  I can't believe what I saw...I'd
> have expected it to work much better than that.  VFP has been
> off-support officially for 4+ years by that time yet the "old girl"
> still looks better for designers given this obvious shortfall.
>
>
> On 8/20/2021 8:44 AM, Matt Slay wrote:
> > Here’s a YouTube video I made about WinForms UserControl and how it does
> not work like our beloved FoxPro does.
> >
> > https://youtu.be/gWONvlLSq3U
> >
> >
> >
> > Matt Slay
> >
> >
> >
> >
> >
> >> On Aug 20, 2021, at 6:01 AM, Alan Bourke 
> wrote:
> >>
> >> On Wed, 18 Aug 2021, at 5:34 PM, Graham Brown wrote:
> >>
> >>> What am I missing?
> >> You're not missing anything. Visual inheritance in the Windows Forms
> designer does not work like VFP, Delphi or whatever. It didn't in 2002,
> and on inspection still doesn't now.
> >>
> >> This is how you do it with a UserControl.
> >>
> >>
> https://docs.microsoft.com/en-us/dotnet/desktop/winforms/controls/creating-a-wf-control-design-time-features?view=netframeworkdesktop-4.8
> >>
> >>
> >> --
> >>   Alan Bourke
> >>   alanpbourke (at) fastmail (dot) fm
> >>
[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: https://leafe.com/archives
This message: 
https://leafe.com/archives/byMID/CAAwxvUn-5tOy=Hy7uLx=Nxzen8V2E=8epb1h1sdij8sets2...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

RE: [NF] Winforms

2021-08-20 Thread Graham Brown
Hi all

Thanks for all your replies. Don't understand why Microsoft haven't sorted
visual inheritance properly.
WPF (sigh) another technology to study.



-Original Message-
From: ProFox [mailto:profox-boun...@leafe.com] On Behalf Of Alan Bourke
Sent: 20 August 2021 14:54
To: profoxt...@leafe.com
Subject: Re: [NF] Winforms

Graham

I'd definitely consider Windows Presentation Foundation over Winforms if
this inheritance thing is a problem for you, because WPF *does* support that
sort of visual inheritance, and i will set you up for WinUI going forward.

-- 
  Alan Bourke
  alanpbourke (at) fastmail (dot) fm

[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: https://leafe.com/archives
This message: 
https://leafe.com/archives/byMID/003901d795eb$6c26e320$4474a960$@compsys.co.uk
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: [NF] Winforms

2021-08-20 Thread MB Software Solutions, LLC
Wow...I see you created that in 2019.  I can't believe what I saw...I'd 
have expected it to work much better than that.  VFP has been 
off-support officially for 4+ years by that time yet the "old girl" 
still looks better for designers given this obvious shortfall.



On 8/20/2021 8:44 AM, Matt Slay wrote:

Here’s a YouTube video I made about WinForms UserControl and how it does not 
work like our beloved FoxPro does.

https://youtu.be/gWONvlLSq3U

  


Matt Slay






On Aug 20, 2021, at 6:01 AM, Alan Bourke  wrote:

On Wed, 18 Aug 2021, at 5:34 PM, Graham Brown wrote:


What am I missing?

You're not missing anything. Visual inheritance in the Windows Forms designer 
does not work like VFP, Delphi or whatever. It didn't in 2002,  and on 
inspection still doesn't now.

This is how you do it with a UserControl.

https://docs.microsoft.com/en-us/dotnet/desktop/winforms/controls/creating-a-wf-control-design-time-features?view=netframeworkdesktop-4.8


--
  Alan Bourke
  alanpbourke (at) fastmail (dot) fm


[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: https://leafe.com/archives
This message: 
https://leafe.com/archives/byMID/f0ee897d-5c3d-22aa-8e86-2ac45630c...@mbsoftwaresolutions.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Re: [NF] Winforms

2021-08-20 Thread Christof Wollenhaupt
> I'd definitely consider Windows Presentation Foundation over Winforms if this 
> inheritance thing is a problem for you, because WPF *does* support that sort 
> of visual inheritance, and i will set you up for WinUI going forward.

Coincidentally, there is also a session about using WPF in Visual FoxPro at 
Virtual FoxFest that covers some of the fundamentals of WPF and how it's 
different from VFP and HTML.

https://virtualfoxfest.com/Sessions.aspx#WPF_Modern_UIs_in_VFP_Applications 
 

-- 
Christof

--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: https://leafe.com/archives
This message: 
https://leafe.com/archives/byMID/522a9636-83c2-445e-88ff-d1f8d5bda...@wollenhaupt.org
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: [NF] Winforms

2021-08-20 Thread Stephen Russell
That text goes into the details of how I said to do it.  Thus I agree that
it can be done and re-used.

Now the Q I have is WHY?  If you have branded UI button styles?   What else
are you extracting to re-use with your enhancements on time and again?
Create the control library project

Define a custom control and its custom designer in C#/VB

Get your using
using System;
using System.Collections;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Diagnostics;
using System.Drawing.Design;
using System.Windows.Forms;
using System.Windows.Forms.Design;

Start coding off of it inherriting from a class
 public class MarqueeControlRootDesigner : DocumentDesigner

Due to all of this work I wouldn't do every control out there myself.

You can do the same thing in the Web space as windows forms so tOmato
tomAto.

20 years ago the idea of subclassing every little thing was novel.  Today I
just don't have the time to do that because it isn't worth it.

Another good idea is buying all of that dond for you via the various tool
companies that support .NET. This is outdated
https://visualstudiomagazine.com/articles/2015/09/01/9-top-net-ui-component-collections.aspx
but most of those companies are still doing what they do so well.



On Fri, Aug 20, 2021 at 6:01 AM Alan Bourke  wrote:

> On Wed, 18 Aug 2021, at 5:34 PM, Graham Brown wrote:
>
> > What am I missing?
>
> You're not missing anything. Visual inheritance in the Windows Forms
> designer does not work like VFP, Delphi or whatever. It didn't in 2002,
> and on inspection still doesn't now.
>
> This is how you do it with a UserControl.
>
>
> https://docs.microsoft.com/en-us/dotnet/desktop/winforms/controls/creating-a-wf-control-design-time-features?view=netframeworkdesktop-4.8
>
>
> --
>   Alan Bourke
>   alanpbourke (at) fastmail (dot) fm
>
[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: https://leafe.com/archives
This message: 
https://leafe.com/archives/byMID/cajidmylby-5u1xouoze-3hkfexpexmtqvsj7zyy1dmrxugw...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: [NF] Winforms

2021-08-20 Thread Ted Roche
On Fri, Aug 20, 2021 at 8:44 AM Matt Slay 
wrote:

> Here’s a YouTube video I made about WinForms UserControl and how it does
> not work like our beloved FoxPro does.
>
> https://youtu.be/gWONvlLSq3U
>
>
>
That's a great demo, Matt!


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: https://leafe.com/archives
This message: 
https://leafe.com/archives/byMID/cacw6n4u1iizu9kpehewgm_x+thy_q2axsmodbmd6i6bvnwb...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Re: [NF] Winforms

2021-08-20 Thread Alan Bourke
Graham

I'd definitely consider Windows Presentation Foundation over Winforms if this 
inheritance thing is a problem for you, because WPF *does* support that sort of 
visual inheritance, and i will set you up for WinUI going forward.

-- 
  Alan Bourke
  alanpbourke (at) fastmail (dot) fm

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: https://leafe.com/archives
This message: 
https://leafe.com/archives/byMID/311644bc-832d-4196-8e88-314833fb5...@www.fastmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: [NF] Winforms

2021-08-20 Thread Matt Slay
Here’s a YouTube video I made about WinForms UserControl and how it does not 
work like our beloved FoxPro does.

https://youtu.be/gWONvlLSq3U

 

Matt Slay





> On Aug 20, 2021, at 6:01 AM, Alan Bourke  wrote:
> 
> On Wed, 18 Aug 2021, at 5:34 PM, Graham Brown wrote:
> 
>> What am I missing?
> 
> You're not missing anything. Visual inheritance in the Windows Forms designer 
> does not work like VFP, Delphi or whatever. It didn't in 2002,  and on 
> inspection still doesn't now. 
> 
> This is how you do it with a UserControl.
> 
> https://docs.microsoft.com/en-us/dotnet/desktop/winforms/controls/creating-a-wf-control-design-time-features?view=netframeworkdesktop-4.8
> 
> 
> -- 
>  Alan Bourke
>  alanpbourke (at) fastmail (dot) fm
> 
[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: https://leafe.com/archives
This message: 
https://leafe.com/archives/byMID/5bf39907-cd1e-48e5-8f83-dadca4222...@jordanmachine.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Re: [NF] Winforms

2021-08-20 Thread Alan Bourke
On Wed, 18 Aug 2021, at 5:34 PM, Graham Brown wrote:

> What am I missing?

You're not missing anything. Visual inheritance in the Windows Forms designer 
does not work like VFP, Delphi or whatever. It didn't in 2002,  and on 
inspection still doesn't now. 

This is how you do it with a UserControl.

https://docs.microsoft.com/en-us/dotnet/desktop/winforms/controls/creating-a-wf-control-design-time-features?view=netframeworkdesktop-4.8


-- 
  Alan Bourke
  alanpbourke (at) fastmail (dot) fm

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: https://leafe.com/archives
This message: 
https://leafe.com/archives/byMID/e3bfd959-ae8a-4fdd-9e52-8203c1050...@www.fastmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.