A.M. Hoornweg 144 Posted May 20, 2019 I use form inheritance all the time. I have a base class that implements DPI Awareness on older Delphi versions (pre-XE10). From this, I inherited a new form class that handles multi-language (using dxGettext). And from this, I inherit a few form classes defining a consistent look-and-feel, like using my favorite font (Tahoma) and a top-aligned panel with our company logo. 1 Share this post Link to post
Mike Torrettinni 198 Posted May 20, 2019 54 minutes ago, Dany Marmur said: Simply create (if you have the time and budget). HTH, /D Thank you, I know sometimes it's hard to give advice on my questions - sometimes they are more a discussion than problems looking for solution. 18 minutes ago, PeterBelow said: The dialog contained frames for the user to specify the search critertia, each of which had a dropdown list with the available searchable properties, applicable operators, and input controls (dynamically adjusted according to property type) to specify the criteria. Common form with frames, and it was useful. OK. Now, as you look back, would you do it same or similar way, or you would choose different strategy for same feature? Share this post Link to post
Mike Torrettinni 198 Posted May 20, 2019 18 minutes ago, A.M. Hoornweg said: And from this, I inherit a few form classes defining a consistent look-and-feel, like using my favorite font (Tahoma) and a top-aligned panel with our company logo. Nice, thank you for real world example. Make sense, I could use similar concept for may search forms, if I keep a few of them.. or even if I have frames, to have unified look and feel. Share this post Link to post
PeterBelow 238 Posted May 20, 2019 1 minute ago, Mike Torrettinni said: Thank you, I know sometimes it's hard to give advice on my questions - sometimes they are more a discussion than problems looking for solution. Common form with frames, and it was useful. OK. Now, as you look back, would you do it same or similar way, or you would choose different strategy for same feature? If I build an application using the same framework I would definitely use the same approach again. In fact I could reuse much of the old code 1:1 in this case since the dialog and its frames are completely independent of the actual data classes to search. Share this post Link to post
Mike Torrettinni 198 Posted May 20, 2019 15 minutes ago, PeterBelow said: If I build an application using the same framework I would definitely use the same approach again. In fact I could reuse much of the old code 1:1 in this case since the dialog and its frames are completely independent of the actual data classes to search. Good to know! Share this post Link to post
David Schwartz 427 Posted May 20, 2019 (edited) See if my CodeRage 9 presentation gives you any useful ideas: http://w5a.com/u/coderage-9-talk Edited May 20, 2019 by David Schwartz 2 Share this post Link to post
Mike Torrettinni 198 Posted May 20, 2019 1 hour ago, David Schwartz said: See if my CodeRage 9 presentation gives you any useful ideas: http://w5a.com/u/coderage-9-talk Thank you, very precise explanation. Will need more time to process some things Share this post Link to post
David Schwartz 427 Posted May 21, 2019 (edited) 14 hours ago, Mike Torrettinni said: Thank you, very precise explanation. Will need more time to process some things thanks. Unfortunately, it's a lot of material to squeeze into the allotted time. I had to cut out some stuff, and it was simpler things that I assumed most people would know. I've probably gotten more flack for that than anything. I should probably re-do it and include the detailed stuff I cut out, and go a lot slower. I think it would fit nicely in 90 minutes. Also, in one sense, everything I discuss there is very simple. It's just not obvious, nor is it how things are usually done when you're talking about interfacing with forms. Think of a form as any other type of object, and my discussion will make more sense. Edited May 21, 2019 by David Schwartz Share this post Link to post
Mark Williams 14 Posted May 24, 2019 I have just discovered a component on the Windows 10 tab called TCardPanel. Seems very similar to a page control, but without the tabs. Maybe of some use. Share this post Link to post
David Heffernan 2347 Posted May 24, 2019 4 hours ago, Mark Williams said: I have just discovered a component on the Windows 10 tab called TCardPanel. Seems very similar to a page control, but without the tabs. Maybe of some use. The classic way to do that is a page control where every tab has TabVisible set to False 1 Share this post Link to post
Mike Torrettinni 198 Posted May 24, 2019 1 hour ago, David Heffernan said: The classic way to do that is a page control where every tab has TabVisible set to False Yes, that's how I use it. Works good. Share this post Link to post
Mocte Sandoval 0 Posted May 24, 2019 On 5/20/2019 at 12:27 PM, David Schwartz said: See if my CodeRage 9 presentation gives you any useful ideas: http://w5a.com/u/coderage-9-talk Hi David, I just stumbled across this thread and saw your video, I remember seeing it sometime ago, at the end there is this link: http://goo.gl/8GRLDk but isn't available anymore, would you mind to share again the code of this sample or any other similar you have available? I would like to play around with it if you don't mind. Thank you. Share this post Link to post
David Schwartz 427 Posted May 28, 2019 Google shut down goo.gl recently, and while it's still working, the target file I was pointed at was moved, and you can't change the redirect. So, here ya go: https://www.dropbox.com/s/xfkxm3w0xl6y0ax/CodeRage9_code.zip?dl=0 2 Share this post Link to post
Mocte Sandoval 0 Posted May 30, 2019 On 5/28/2019 at 4:57 AM, David Schwartz said: Google shut down goo.gl recently, and while it's still working, the target file I was pointed at was moved, and you can't change the redirect. So, here ya go: https://www.dropbox.com/s/xfkxm3w0xl6y0ax/CodeRage9_code.zip?dl=0 Cool ! Thank you Share this post Link to post