View previous topic :: View next topic |
Author |
Message |
dreamweaver
Joined: 22 Mar 2004 Posts: 2
|
Posted: Mon May 10, 2004 8:54 pm Post subject: Will DFC has layout manager ? |
|
|
Well I think DFC is usable but whether it has a layout manager as Java ?
And whether it can be more abstract ?
DButton will be DAbstractButton and has child is DButton and DGroupBox.
DStatic will has child DFrame and DLabel ? |
|
Back to top |
|
|
l8night
Joined: 03 May 2004 Posts: 32 Location: UK
|
Posted: Tue May 11, 2004 2:34 pm Post subject: |
|
|
The design reasoning behind the DFC was to be as close to the metal as possible, using the features that D offered to their best.
there is no point having an AbstractButton, DButton is a wrapper over the Windows "BUTTON" Control. It is a concrete class not an abstract one, perhaps calling it GenericButton might be better.
That is why there is no wrapper arounf HDC, HFONT etc.
However you would use the DFC to create a Java AWT/ Delphi class lib over the top of this very thin wrapper.
if you want layout managment, have a look at the bitmapview example, this uses a custom scrollbar (rather than a subclasses control), unlike the Java Layout system, Layout managers are not part of the Window class they are instead object that manage the ON_SIZE message of the attached class (again like using GetProp rather than getting the user long) this allows subclassed controls to be easily mixed with owner draw items etc etc. |
|
Back to top |
|
|
l8night
Joined: 03 May 2004 Posts: 32 Location: UK
|
Posted: Fri Oct 14, 2005 11:48 am Post subject: yes! |
|
|
I've moved the layout manager system from the bitmap example into the main library as I'm happy that it works (as I use it on all my personal apps)
its not quite the same as other systems, but that is because I've tried to get a system that solve what I see as the failings of the Java/Delphi/GTK etc layout managers. |
|
Back to top |
|
|
|