17#if !defined(OWL_PICKER_H)
21#if defined(BI_HAS_PRAGMA_ONCE)
28#if !defined(OWL_PICKER)
30# define OWL_PICKER L"OWL_Picker"
32# define OWL_PICKER "OWL_Picker"
36#if !defined(RC_INVOKED)
87 virtual void EnterMouse();
88 virtual void LeaveMouse();
89 virtual void Select(
bool sel=
true);
101 virtual bool PtIn(
const TPoint&
pt);
130 const TColor& GetColor()
const;
147 void SetIndex(
int index);
169 const tstring& GetText()
const;
171 uint GetFormat()
const;
179class TPickerCellArray;
189 psTrackMouse = 0x0001,
190 psShrinkToCells = 0x0002,
192 psMessageTips = 0x0008,
193 psLocalTips = 0x0010,
198 int x,
int y,
int w=0,
int h=0,
205 void SetSelection(
int sel = 0);
213 void SetColumns(
int colmn = 4);
228 virtual bool IsFlatStyle();
252 ppTrackMouse = 0x0001,
254 ppFlatStyle = 0x0004,
255 ppMessageTips = 0x0008,
256 ppShowTipsCell= 0x0010,
261 ppShowDefItem = 0x0100,
262 ppShowCustItem= 0x0200,
263 ppButtonSel = 0x0400,
264 ppCustomOpen = 0x0800,
270 void GetWindowClass(
WNDCLASS&)
override;
272 void SetupWindow()
override;
273 auto PreProcessMsg(
MSG&) ->
bool override;
277 #if !defined(STRIP_UNDEFINED)
297 virtual void SetStatusBarMessage(
int id);
301 virtual bool CallCustomBox();
303 virtual void NotifyParent(
uint code);
305 virtual void ExitPicker(
bool status =
false);
313 void RefocusCell(
int loc);
346 int x,
int y,
int w=0,
int h=0,
359 void GetWindowClass(
WNDCLASS&)
override;
360 void ExitPicker(
bool status =
false)
override;
373 int x,
int y,
int w=0,
int h=0,
382 void SetupWindow()
override;
383 void NotifyParent(
uint code)
override;
386 const TColor& GetCustomColor()
const;
391 bool EvQueryNewPalette();
393 auto CallCustomBox() ->
bool override;
400 bool PaletteRealized;
413 TStyle style = sBitmapText,
422 virtual void PopupAction();
427 virtual void Created();
428 virtual void Inserted();
431 virtual void GetSelection();
447 TStyle style = sBitmapText,
455 virtual void GetSelection();
474 TStyle style = sBitmapText,
484 virtual void BuildCelArray();
485 virtual void GetSelection();
488 void CopyCellBitmap();
Definition of a bit set and a character set.
bool IsSet(uint t) const
Return true of the ON bits of the parameter are currently enabled.
TCelArray * GetCelArray()
TStyle
TStyle contains values that defines how gadget will be displayed:
TCelArray is a horizontal array of cels (a unit of animation) created by slicing a portion of or an e...
TColorCell(int id=0, const TColor &clr=TColor::None, TBorderStyle borderStyle=Flat)
const TColor & GetColor() const
void SetColor(const TColor &clr)
Class wrapper for management of color values.
TColor ColorSel
currect selected color
const TColor & GetCustomColor() const
TControl unifies its derived control classes, such as TScrollBar, TControlGadget, and TButton.
TDC is the root class for GDI DC wrappers.
TFont derived from TGdiObject provides constructors for creating font objects from explicit informati...
void EvActivateApp(bool active, DWORD threadId)
virtual void SetBounds(TPickerCell &cell, const TRect &rect)
set bounds for cell
TPickerCell * GetFocusedCell()
DECLARE_RESPONSE_TABLE(TGridPicker)
void EnableButton(const tstring &text, int resId=0, TPickerCell *cl=0)
uint EvGetDlgCode(const MSG *msg)
TPickerCell * GetCell(int loc)
void SetTarget(TWindow *wnd)
void EnableDefault(const tstring &text, int resId=0, TPickerCell *cl=0)
virtual bool IsFlatStyle()
auto GetTooltip() const -> TTooltip *override
TPickerCell * GetSelectedCell()
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
TPalette is the GDI Palette class derived from TGdiObject.
void SetBorderStyle(TBorderStyle bs)
virtual void SetParent(TGridPicker *parent)
TBorderStyle
Cell border styles. These match TIUBorder's TStyles exactly.
@ Recessed
Status field style recessed.
@ Raised
Status field style raised.
@ WellSet
Well option set (auto grows + 1)
@ WndRaised
Raised window outer+inner edge.
@ Embossed
Grouping raised emboss bead.
@ None
No border painted at all.
@ ButtonDn
Button in down position.
@ Plain
Plain plain window frame.
@ WndRecessed
Input field & other window recessed.
@ Grooved
Grouping groove.
@ ButtonUp
Button in up position.
TBorderStyle GetBorderStyle() const
Return the borderstyle the cell is using.
virtual bool PtIn(const TPoint &pt)
virtual void PaintCell(TDC &dc, TRect &rect)=0
TPickerCell(int id=0, TBorderStyle borderStyle=Flat)
TPickerCell * Selected
currect selected cell
TGridPicker * GetPicker()
TPickerCell * GetSelCel()
TPoint is a support class, derived from tagPOINT.
TRect is a mathematical class derived from tagRect.
bool Contains(const TPoint &point) const
Returns true if the given point lies within this rectangle; otherwise, it returns false.
TTextCell(int id=0, const tstring &text=tstring(), TBorderStyle borderStyle=Flat)
void SetFormat(uint format)
void SetText(const tstring &text)
const tstring & GetText() const
Type-safe encapsulation of a Windows class name, a union between ATOM and LPCTSTR.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
HWND THandle
TWindow encapsulates an HWND.
#define DECLARE_RESPONSE_TABLE(cls)
TAutoDelete
Flag for Handle ctors to control Handle deletion in dtor.
Object Windows Library (OWLNext Core)
Used by the TGadgetWindow and TGadget classes, TMargins contains the measurements of the margins for ...