Jump to content
  • entries
    2
  • comments
    4
  • views
    3,523

About this blog

In this blog I will share some information about creating "custom" Widgets.

What will be in this blog:

  • How to inherit from Widget or other predefined Widgets
  • How is the Widget-Class build up
  • A way to distribute your own Widgets to the community
  • A basic framework for advanced Widgets
  • hints for writing Widgets

At the end of this blog I want to show a rewrite of Joshs https://www.ultraengine.com/learn/CPP/AdvancedInterface with the use of custom widgets to automatically control the layout and maybe have a fully working  Lightweight TextEditor ready.

 

As a teaser what can be done (yes this is a fully working ScintillaWidget):

LuaEditor.thumb.png.cb2cf1a9a519e393ea70a88738d59253.png

 

Entries in this blog

Basics

In this first entry I will introduce some basics about the internal structure of the Widget class and what the purpose of some of its members is. For the real basics on how to write a custom Widget I suggest reading this https://www.ultraengine.com/learn/CPP/CustomWidgets first. Most of the members are self explained, so I will focus in this entry on 4 important methods: virtual bool Initialize(const WString& text, const int x, const int y, const int width, const int height, sh

klepto2

klepto2 in Basics

×
×
  • Create New...