OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TPickerCell Class Referenceabstract

bsabstract base class More...

#include <owl/picker.h>

Inheritance diagram for owl::TPickerCell:
owl::TBitFlags< uint > owl::TBitmapCell owl::TColorCell owl::TTextCell

Public Types

enum  TBorderStyle {
  None , Plain , Raised , Recessed , Embossed , Grooved , ButtonUp , ButtonDn , WndRaised , WndRecessed ,
  WellSet , Flat
}
 Cell border styles. These match TIUBorder's TStyles exactly. More...
 

Public Member Functions

 TPickerCell (int id=0, TBorderStyle borderStyle=Flat)
 
virtual ~TPickerCell ()
 
virtual void Paint (TDC &dc, TRect *r=0, bool drawbrd=true)
 
virtual void PaintCell (TDC &dc, TRect &rect)=0
 
virtual void PaintBorder (TDC &dc, TRect &rect)
 
virtual void EnterMouse ()
 
virtual void LeaveMouse ()
 
virtual void Select (bool sel=true)
 
int GetId ()
 
void SetId (int id)
 
TRectGetBounds ()
 
void SetBorderStyle (TBorderStyle bs)
 
TBorderStyle GetBorderStyle () const
 Return the borderstyle the cell is using.
 
virtual void QueryBounds (TRect &rect)
 
virtual bool PtIn (const TPoint &pt)
 
- Public Member Functions inherited from owl::TBitFlags< uint >
 TBitFlags (uint t=0)
 Initialize the Flags to the specified parameter.
 
uint Clear (uint t)
 Clear the bits that are enabled in the specified parameter.
 
uint Set (uint t)
 Activate the bits that are enabled in the specified parameter.
 
bool IsSet (uint t) const
 Return true of the ON bits of the parameter are currently enabled.
 

Public Attributes

 DECLARE_CASTABLE
 

Protected Types

enum  TCellState { csMouseIn = 0x0001 , csSelected = 0x0002 }
 

Protected Member Functions

virtual void SetParent (TGridPicker *parent)
 

Protected Attributes

TRect Bounds
 
int Id
 
TGridPickerParent
 
TBorderStyle BorderStyle
 
- Protected Attributes inherited from owl::TBitFlags< uint >
uint Bits
 

Friends

class TGridPicker
 

Detailed Description

bsabstract base class

Definition at line 59 of file picker.h.

Member Enumeration Documentation

◆ TBorderStyle

Cell border styles. These match TIUBorder's TStyles exactly.

Enumerator
None 

No border painted at all.

Plain 

Plain plain window frame.

Raised 

Status field style raised.

Recessed 

Status field style recessed.

Embossed 

Grouping raised emboss bead.

Grooved 

Grouping groove.

ButtonUp 

Button in up position.

ButtonDn 

Button in down position.

WndRaised 

Raised window outer+inner edge.

WndRecessed 

Input field & other window recessed.

WellSet 

Well option set (auto grows + 1)

Flat 

Use flat style.

Definition at line 65 of file picker.h.

◆ TCellState

Enumerator
csMouseIn 
csSelected 

Definition at line 104 of file picker.h.

Constructor & Destructor Documentation

◆ TPickerCell()

owl::TPickerCell::TPickerCell ( int id = 0,
TBorderStyle borderStyle = Flat )
inline

Definition at line 504 of file picker.h.

References SetBorderStyle().

◆ ~TPickerCell()

owl::TPickerCell::~TPickerCell ( )
inlinevirtual

Definition at line 513 of file picker.h.

Member Function Documentation

◆ EnterMouse()

void owl::TPickerCell::EnterMouse ( )
virtual

Definition at line 178 of file picker.cpp.

References csMouseIn, and owl::TBitFlags< uint >::Set().

◆ GetBorderStyle()

TPickerCell::TBorderStyle owl::TPickerCell::GetBorderStyle ( ) const
inline

Return the borderstyle the cell is using.

Definition at line 556 of file picker.h.

References BorderStyle.

◆ GetBounds()

TRect & owl::TPickerCell::GetBounds ( )
inline

Definition at line 533 of file picker.h.

References Bounds.

◆ GetId()

int owl::TPickerCell::GetId ( )
inline

Definition at line 519 of file picker.h.

References Id.

◆ LeaveMouse()

void owl::TPickerCell::LeaveMouse ( )
virtual

Definition at line 185 of file picker.cpp.

References owl::TBitFlags< uint >::Clear(), and csMouseIn.

◆ Paint()

void owl::TPickerCell::Paint ( TDC & dc,
TRect * r = 0,
bool drawbrd = true )
virtual

◆ PaintBorder()

◆ PaintCell()

virtual void owl::TPickerCell::PaintCell ( TDC & dc,
TRect & rect )
pure virtual

◆ PtIn()

bool owl::TPickerCell::PtIn ( const TPoint & pt)
inlinevirtual

Definition at line 540 of file picker.h.

References Bounds, and owl::TRect::Contains().

◆ QueryBounds()

void owl::TPickerCell::QueryBounds ( TRect & rect)
virtual

Reimplemented in owl::TBitmapCell.

Definition at line 167 of file picker.cpp.

◆ Select()

void owl::TPickerCell::Select ( bool sel = true)
virtual

◆ SetBorderStyle()

void owl::TPickerCell::SetBorderStyle ( TBorderStyle bs)

Definition at line 89 of file picker.cpp.

References BorderStyle, owl::TGridPicker::Layout(), and Parent.

◆ SetId()

void owl::TPickerCell::SetId ( int id)
inline

Definition at line 526 of file picker.h.

References Id.

◆ SetParent()

void owl::TPickerCell::SetParent ( TGridPicker * parent)
inlineprotectedvirtual

Definition at line 547 of file picker.h.

References Parent.

Friends And Related Symbol Documentation

◆ TGridPicker

Definition at line 117 of file picker.h.

Member Data Documentation

◆ BorderStyle

TBorderStyle owl::TPickerCell::BorderStyle
protected

Definition at line 115 of file picker.h.

◆ Bounds

TRect owl::TPickerCell::Bounds
protected

Definition at line 112 of file picker.h.

◆ DECLARE_CASTABLE

owl::TPickerCell::DECLARE_CASTABLE

Definition at line 62 of file picker.h.

◆ Id

int owl::TPickerCell::Id
protected

Definition at line 113 of file picker.h.

◆ Parent

TGridPicker* owl::TPickerCell::Parent
protected

Definition at line 114 of file picker.h.


The documentation for this class was generated from the following files: