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

Encapsulates the DrawFrameControl 32-bit API. More...

#include <owl/uihelper.h>

Public Types

enum  TType { uiButton = DFC_BUTTON , uiCaption = DFC_CAPTION , uiMenu = DFC_MENU , uiScroll = DFC_SCROLL }
 Enumeration describing the part to be drawn. More...
 
enum  TState {
  Button3State = DFCS_BUTTON3STATE , ButtonCheck = DFCS_BUTTONCHECK , ButtonPush = DFCS_BUTTONPUSH , ButtonRadio = DFCS_BUTTONRADIO , ButtonRadioImage = DFCS_BUTTONRADIOIMAGE , ButtonRadioMask = DFCS_BUTTONRADIOMASK , Checked = DFCS_CHECKED , Flat = DFCS_FLAT , Inactive = DFCS_INACTIVE , Mono = DFCS_MONO ,
  Pushed = DFCS_PUSHED , CaptionClose = DFCS_CAPTIONCLOSE , CaptionHelp = DFCS_CAPTIONHELP , CaptionMax = DFCS_CAPTIONMAX , CaptionMin = DFCS_CAPTIONMIN , CaptionRestore = DFCS_CAPTIONRESTORE , MenuArrow = DFCS_MENUARROW , MenuBullet = DFCS_MENUBULLET , MenuCheck = DFCS_MENUCHECK , ScrollCombo = DFCS_SCROLLCOMBOBOX ,
  ScrollDown = DFCS_SCROLLDOWN , ScrollLeft = DFCS_SCROLLLEFT , ScrollRight = DFCS_SCROLLRIGHT , ScrollSizeGrip = DFCS_SCROLLSIZEGRIP , ScrollUp = DFCS_SCROLLUP
}
 Enumeration describing the various glyphs available for buttons, captions, menus and scrollbar parts. More...
 

Public Member Functions

 TUIPart ()
 Empty constructor.
 
bool Paint (TDC &dc, TRect &rect, TType type, TState state)
 Draw the part onto a DC.
 
bool DrawFrameControl (TDC &dc, TRect &rect, TType type, TState state)
 Wrapper for the DrawFrameControl API.
 

Detailed Description

Encapsulates the DrawFrameControl 32-bit API.

Definition at line 448 of file uihelper.h.

Member Enumeration Documentation

◆ TState

Enumeration describing the various glyphs available for buttons, captions, menus and scrollbar parts.

Enumerator
Button3State 

Three-state button.

ButtonCheck 

Check box.

ButtonPush 

Push button.

ButtonRadio 

Radio button.

ButtonRadioImage 

Image for radio button (nonsquare needs image)

ButtonRadioMask 

Mask for radio button (nonsquare needs mask)

Checked 

Draw button as checked.

Flat 

Draw button with flat border.

Inactive 

Draw button grayed.

Mono 

Draw button with monochrome border.

Pushed 

Draw button pushed.

CaptionClose 

Close button.

CaptionHelp 

Help button.

CaptionMax 

Maximize button.

CaptionMin 

Minimize button.

CaptionRestore 

Restore button.

MenuArrow 

Submenu arrow.

MenuBullet 

Bullet.

MenuCheck 

Check mark.

ScrollCombo 

Combo box scroll bar.

ScrollDown 

Down arrow of scroll bar.

ScrollLeft 

Left arrow of scroll bar.

ScrollRight 

Right arrow of scroll bar.

ScrollSizeGrip 

Size grip in bottom-right corner of window.

ScrollUp 

Up arrow of scroll bar.

Definition at line 465 of file uihelper.h.

◆ TType

Enumeration describing the part to be drawn.

Note
TType describes the part, TState then refines the exact glyph of the selected part.
Enumerator
uiButton 

Draw a button glyph.

uiCaption 

Draw a caption glyph.

uiMenu 

Draw a menu glyph.

uiScroll 

Draw a scroll bar glyph.

Definition at line 455 of file uihelper.h.

Constructor & Destructor Documentation

◆ TUIPart()

owl::TUIPart::TUIPart ( )

Empty constructor.

Definition at line 18 of file uipart.cpp.

Member Function Documentation

◆ DrawFrameControl()

bool owl::TUIPart::DrawFrameControl ( TDC & dc,
TRect & rect,
TType type,
TState state )

Wrapper for the DrawFrameControl API.

Definition at line 39 of file uipart.cpp.

References DrawFrameControl().

◆ Paint()

bool owl::TUIPart::Paint ( TDC & dc,
TRect & rect,
TType type,
TState state )

Draw the part onto a DC.

The type and state control how the part should be painted.

Definition at line 27 of file uipart.cpp.

References DrawFrameControl().


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