TButton, TEdit now custom drawn?

This is a discussion on TButton, TEdit now custom drawn? within the Delphi forums in Programming Languages category; Hi After looking at the sneak peak video.... Does that now mean, some of the standard controls are now custom drawn? TButton - now supports image, image padding and image positioning TBitBtn - is now obsoleate or simply become an alias to TButton for backwards compatibility TEdit - now custom drawn because it supports the shaded hint text ListView - now supports images and groups etc... All non-standard features compared to Windows standard controls since Win9x Is my assumptions correct? If so, how do these custom controls influence GUI speed, or no visible difference? Regards, - Graeme - __________________________________________________ _____ ...

Go Back   Application Development Forum > Programming Languages > Delphi

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-07-2008, 08:15 AM
Graeme Geldenhuys
Guest
 
Default TButton, TEdit now custom drawn?

Hi

After looking at the sneak peak video.... Does that now mean, some of
the standard controls are now custom drawn?

TButton - now supports image, image padding and image positioning
TBitBtn - is now obsoleate or simply become an alias to TButton
for backwards compatibility
TEdit - now custom drawn because it supports the shaded hint text
ListView - now supports images and groups etc...

All non-standard features compared to Windows standard controls since Win9x

Is my assumptions correct? If so, how do these custom controls
influence GUI speed, or no visible difference?


Regards,
- Graeme -


__________________________________________________ _____
fpGUI - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/

Reply With Quote
  #2  
Old 08-07-2008, 08:49 AM
Robert Giesecke
Guest
 
Default Re: TButton, TEdit now custom drawn?

Graeme Geldenhuys wrote:
> Hi
>
> After looking at the sneak peak video.... Does that now mean, some of
> the standard controls are now custom drawn?
>


That would be *horrible*. Custom drawn controls have the habit of looking clunky and alien to the OS'
look&feel. Especially when a new OS is released and older custom drawn software gives a damn about its
theming.


> TButton - now supports image, image padding and image positioning
> TBitBtn - is now obsoleate or simply become an alias to TButton
> for backwards compatibility
> TEdit - now custom drawn because it supports the shaded hint text
> ListView - now supports images and groups etc...
>
> All non-standard features compared to Windows standard controls since Win9x
>
> Is my assumptions correct? If so, how do these custom controls
> influence GUI speed, or no visible difference?
>
>


None of these features require custom drawn widgets, just painting something on top of the standard
windows widget.
ListView has groups since XP, maybe the group icon is custom, but then again, it could just be a Vista
feature.
Reply With Quote
  #3  
Old 08-07-2008, 10:47 AM
Wayne Niddery \(TeamB\)
Guest
 
Default Re: TButton, TEdit now custom drawn?

"Graeme Geldenhuys" <graemeg@spamfilter.co.za> wrote in message
news:489ae76a@newsgroups.borland.com...
>
> TEdit - now custom drawn because it supports the shaded hint text


Built-in to Vista, on XP and older I expect the shaded text will simply not
work.

> ListView - now supports images and groups etc...


Has supported this in Windows for sometime I think, the VCL listview class
is now supporting it.

> Is my assumptions correct? If so, how do these custom controls influence
> GUI speed, or no visible difference?


Even if these are custom extensions rather than built into Windows, it is
still natively compiled code and would still work *with* Windows via the
API, so why would you expect to see any noticeable performance issues?
Delphi has included custom controls since the first version, e.g. TLabel and
TImage are not found in Windows, nor is TStringGrid, TDrawGrid, TDBGrid,
TDBLookupCombo and a host of others.

--
Wayne Niddery - TeamB (www.teamb.com)
Winwright, Inc. (www.winwright.ca)

Reply With Quote
  #4  
Old 08-07-2008, 01:10 PM
Remy Lebeau \(TeamB\)
Guest
 
Default Re: TButton, TEdit now custom drawn?


"Graeme Geldenhuys" <graemeg@spamfilter.co.za> wrote in message
news:489ae76a@newsgroups.borland.com...

> TButton - now supports image, image padding and image positioning


Button controls have supported images (well, owner-drawing, anyway) for a
long time. TButton never took advantage of that, but TBitBtn has.

> TBitBtn - is now obsoleate or simply become an alias to
> TButton for backwards compatibility


Nope. TBitBtn is not going to be an alias to TButton. TBitBtn still has
its own functionality that is not present in TButton.

> TEdit - now custom drawn because it supports the shaded hint text


The new TextHint functionality is applied by the OS itself, not the VCL,
when the TEdit is being rendered onscreen. TEdit is not manually
owner-drawn to accomplish that. There is a EM_SETCUEBANNER message that
controls that behavior. However, the EM_SETCUEBANNER message is only
available on XP and later with themes enabled. To simulate it on previous
versions, or when themes are disabled, would require owner-drawing. TEdit
does not do that.

> All non-standard features compared to Windows standard controls since
> Win9x


Actually, they are standard OS features, just not ones the VCL has been
taking advantage of until now. There is a lot of functionality provided by
the OS for those standard UI controls.


Gambit


Reply With Quote
  #5  
Old 08-07-2008, 01:12 PM
Remy Lebeau \(TeamB\)
Guest
 
Default Re: TButton, TEdit now custom drawn?


"Wayne Niddery (TeamB)" <wniddery@chaffaci.on.ca> wrote in message
news:489b0b11$1@newsgroups.borland.com...

>> TEdit - now custom drawn because it supports the shaded hint text

>
> Built-in to Vista, on XP and older I expect the shaded text will
> simply not work.


Actually, the shaded text feature was introduced in XP. Themes need to be
enabled for it to work, though.

>> ListView - now supports images and groups etc...

>
> Has supported this in Windows for sometime I think, the VCL
> listview class is now supporting it.


Correct.


Gambit


Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 02:24 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.