Class tpopupmenuwidget

Unit

Declaration

type tpopupmenuwidget = class(tpopupwidget)

Description

This item has no description. Showing description inherited from tmsecomponent.

Extends the FPC tcomponent with object linking facilities and the like; base of every MSEgui component. This unit, mseclasses, must be added to uses after classes in code that also uses a third-party unit expecting the plain FPC tcomponent (e.g. TPSScript.Create(TComponent)), since MSEgui forks the FPC classes unit.

Hierarchy

Overview

Fields

Protected flayout: menulayoutinfoty;
Protected flocalframeandface: boolean;

Methods

Protected procedure doafteractivate() override;
Protected procedure clientrectchanged; override;
Protected procedure objectevent(const sender: tobject; const event: objecteventty); override;
Protected function transientforwindoworwindow: twindow;
Protected function translatetoscreen(const value: pointty): pointty; virtual;
Protected procedure invalidatelayout();
Protected procedure updatelayout; virtual;
Protected procedure nextpopupshowing; virtual;
Protected function isinpopuparea(const apos: pointty): boolean; virtual;
Protected function checkprevpopuparea(const apos: pointty): boolean; virtual;
Protected procedure activatemenu( const keymode,aclicked,nokeymodereset: boolean); virtual;
Protected procedure deactivatemenu; virtual;
Protected procedure selectmenu(const keymode: boolean; const keyreturn: boolean); virtual;
Protected function rootpopup: tpopupmenuwidget;
Protected procedure closepopupstack(aselecteditem: tmenuitem; const cancelmodal: boolean = false);
Protected procedure updatepos; virtual;
Protected procedure beginkeymode;
Protected procedure dopaintforeground(const canvas: tcanvas); override;
Protected procedure mouseevent(var info: mouseeventinfoty); override;
Protected procedure dokeydown(var info: keyeventinfoty); override;
Protected procedure childdeactivated(const sender: tpopupmenuwidget); virtual;
Protected procedure fontchanged; override;
Protected procedure internalcreateframe; override;
Protected function activateoptionset: boolean;
Protected procedure showhint(const aid: int32; var info: hintinfoty); override;
Protected function trycancelmodal(const newactive: twindow): boolean; override;
Protected procedure release1(const acancelmodal: boolean); virtual;
Protected class function classskininfo(): skininfoty; override;
Protected function getassistiveflags(): assistiveflagsty override;
Protected function getassistivecaption(): msestring override;
Protected function getassistivetext(): msestring override;
Protected function getassistivehint(): msestring override;
Protected function prevmenuitem(const info: menulayoutinfoty): integer;
Protected function nextmenuitem(const info: menulayoutinfoty): integer;
Protected procedure assistivemenuactivated();
Public constructor create(instance: ppopupmenuwidget; const amenu: tmenuitem; const atransientfor: twindow; const aowner: tcomponent = nil; const menucomp: tcustommenu = nil); overload;
Public destructor destroy; override;
Public procedure paint(const canvas: tcanvas); override;
Public procedure menuchanged(const sender: tmenuitem);
Public procedure release(const nomodaldefer: boolean=false); override;
Public procedure updatetemplates;
Public procedure assigntemplate(const source: menutemplatety); virtual;
Public function showmenu(const aposrect: rectty; aposition: graphicdirectionty; aactivate: boolean): tmenuitem;

Properties

Public property activeitem: integer read getactiveitem write setactiveitem;
Published property optionswidget default defaultpopupmenuwidgetoptions;

Description

Fields

Protected flayout: menulayoutinfoty;

This item has no description.

Protected flocalframeandface: boolean;

This item has no description.

Methods

Protected procedure doafteractivate() override;

This item has no description.

Protected procedure clientrectchanged; override;

This item has no description.

Protected procedure objectevent(const sender: tobject; const event: objecteventty); override;

This item has no description.

Protected function transientforwindoworwindow: twindow;

This item has no description.

Protected function translatetoscreen(const value: pointty): pointty; virtual;

This item has no description.

Protected procedure invalidatelayout();

This item has no description.

Protected procedure updatelayout; virtual;

This item has no description.

Protected procedure nextpopupshowing; virtual;

This item has no description.

Protected function isinpopuparea(const apos: pointty): boolean; virtual;

This item has no description.

Protected function checkprevpopuparea(const apos: pointty): boolean; virtual;

This item has no description.

Protected procedure activatemenu( const keymode,aclicked,nokeymodereset: boolean); virtual;

This item has no description.

Protected procedure deactivatemenu; virtual;

This item has no description.

Protected procedure selectmenu(const keymode: boolean; const keyreturn: boolean); virtual;

This item has no description.

Protected function rootpopup: tpopupmenuwidget;

This item has no description.

Protected procedure closepopupstack(aselecteditem: tmenuitem; const cancelmodal: boolean = false);

This item has no description.

Protected procedure updatepos; virtual;

This item has no description.

Protected procedure beginkeymode;

This item has no description.

Protected procedure dopaintforeground(const canvas: tcanvas); override;

This item has no description.

Protected procedure mouseevent(var info: mouseeventinfoty); override;

This item has no description.

Protected procedure dokeydown(var info: keyeventinfoty); override;

This item has no description.

Protected procedure childdeactivated(const sender: tpopupmenuwidget); virtual;

This item has no description.

Protected procedure fontchanged; override;

This item has no description.

Protected procedure internalcreateframe; override;

This item has no description.

Protected function activateoptionset: boolean;

This item has no description.

Protected procedure showhint(const aid: int32; var info: hintinfoty); override;

This item has no description.

Protected function trycancelmodal(const newactive: twindow): boolean; override;

This item has no description.

Protected procedure release1(const acancelmodal: boolean); virtual;

This item has no description.

Protected class function classskininfo(): skininfoty; override;

This item has no description.

Protected function getassistiveflags(): assistiveflagsty override;

This item has no description.

Protected function getassistivecaption(): msestring override;

This item has no description.

Protected function getassistivetext(): msestring override;

This item has no description.

Protected function getassistivehint(): msestring override;

This item has no description.

Protected function prevmenuitem(const info: menulayoutinfoty): integer;

This item has no description.

Protected function nextmenuitem(const info: menulayoutinfoty): integer;

This item has no description.

Protected procedure assistivemenuactivated();

This item has no description.

Public constructor create(instance: ppopupmenuwidget; const amenu: tmenuitem; const atransientfor: twindow; const aowner: tcomponent = nil; const menucomp: tcustommenu = nil); overload;

This item has no description.

Public destructor destroy; override;

This item has no description.

Public procedure paint(const canvas: tcanvas); override;

This item has no description. Showing description inherited from twidget.paint.

invalidate (called automatically, e.g. by setcaption) adds the widget's client area to its window's update region; once the main event queue is empty, the update regions of all windows are painted, widget by widget, bottom-up in z-order, by paint. If the widget's color is not cl_transparent, the area is first filled with that color; then, if active, frame is painted (filling its own client area with colorclient if that is not cl_transparent), then, if active, face; the widget's own content (e.g. a caption) is painted last, on top of that background. When code changes a widget's widgetrect directly rather than through a property that does it automatically, it must invalidate the old widgetrect before the change and the new one after, so both the vacated and the newly covered area get repainted.

Public procedure menuchanged(const sender: tmenuitem);

This item has no description.

Public procedure release(const nomodaldefer: boolean=false); override;

This item has no description. Showing description inherited from twidget.release.

Frees the widget. Unlike calling destroy or free directly, release is safe to call from the widget's own event handler.

Public procedure updatetemplates;

This item has no description.

Public procedure assigntemplate(const source: menutemplatety); virtual;

This item has no description.

Public function showmenu(const aposrect: rectty; aposition: graphicdirectionty; aactivate: boolean): tmenuitem;

This item has no description.

Properties

Public property activeitem: integer read getactiveitem write setactiveitem;

This item has no description.

Published property optionswidget default defaultpopupmenuwidgetoptions;

This item has no description.


Generated by PasDoc 1.0.4.