Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.bak
*.dcu
*.local
\__pycache__
\__pycache__
.idea
2 changes: 2 additions & 0 deletions delphivcl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,5 @@ def new_import():

# Import the extension module
package = new_import()

import delphivclhack
117 changes: 117 additions & 0 deletions delphivcl/delphivclhack.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
import delphivcl

comps = [
delphivcl.Action,
delphivcl.ActionList,
delphivcl.ActivityIndicator,
# delphivcl.# Application,
delphivcl.BasicAction,
delphivcl.Bevel,
delphivcl.BitBtn,
delphivcl.Bitmap,
delphivcl.BoundLabel,
delphivcl.Button,
delphivcl.Canvas,
delphivcl.CheckBox,
delphivcl.Collection,
delphivcl.ColorBox,
delphivcl.ComboBox,
delphivcl.Component,
delphivcl.ContainedAction,
delphivcl.ContainedActionList,
delphivcl.Control,
delphivcl.ControlBar,
# delphivcl.# CreateComponent,
delphivcl.CustomAction,
delphivcl.CustomActionList,
delphivcl.CustomActivityIndicator,
delphivcl.CustomControl,
delphivcl.CustomDrawGrid,
delphivcl.CustomEdit,
delphivcl.CustomForm,
delphivcl.CustomGrid,
delphivcl.CustomMemo,
delphivcl.CustomStyleServices,
delphivcl.CustomTabControl,
delphivcl.CustomToggleSwitch,
delphivcl.DateTimePicker,
delphivcl.DelphiDefaultContainer,
delphivcl.DelphiDefaultIterator,
delphivcl.DelphiMethod,
delphivcl.DrawGrid,
delphivcl.Edit,
delphivcl.FileOpenDialog,
delphivcl.Form,
delphivcl.Graphic,
delphivcl.GroupBox,
delphivcl.Header,
delphivcl.Icon,
delphivcl.Image,
delphivcl.Label,
delphivcl.LabeledEdit,
delphivcl.ListBox,
delphivcl.MainMenu,
delphivcl.Memo,
delphivcl.Menu,
delphivcl.MenuItem,
delphivcl.Metafile,
delphivcl.Monitor,
delphivcl.Notebook,
delphivcl.Object,
delphivcl.OpenDialog,
delphivcl.Page,
delphivcl.PageControl,
delphivcl.PaintBox,
delphivcl.Panel,
delphivcl.PascalInterface,
delphivcl.PascalRecord,
delphivcl.Persistent,
delphivcl.Picture,
delphivcl.Point,
delphivcl.PopupMenu,
delphivcl.RadioButton,
delphivcl.RadioGroup,
delphivcl.Rect,
# delphivcl.# Screen,
delphivcl.ScrollBar,
delphivcl.Shape,
# delphivcl.# ShowMessage,
delphivcl.Size,
delphivcl.SpeedButton,
delphivcl.SpinButton,
delphivcl.SpinEdit,
delphivcl.Splitter,
delphivcl.StaticText,
delphivcl.StringGrid,
delphivcl.Strings,
delphivcl.StyleInfo,
delphivcl.StyleManager,
# delphivcl.# StyleServices,
delphivcl.TabControl,
delphivcl.TabSheet,
delphivcl.Timer,
delphivcl.ToggleSwitch,
delphivcl.ToolBar,
delphivcl.ToolButton,
delphivcl.TrackBar,
delphivcl.VarParameter,
delphivcl.WinControl
]


def main(self, *args, **kwargs):

for key, value in kwargs.items():
setattr(self, key, value)


def change_types():
for c in comps:
newc = type(c.__name__,
(c,),
{"__init__": main})

setattr(delphivcl, c.__name__, newc)


change_types()