At runtime how to create a screen control (button, image, etc) and drag and drop it and change size

I need to give the user the ability create screen control and drag, drop, move and change it size at runtime, all this by using the mouse. Anyone knows how to do it ?

I’ve made test program which supports all of these features, here is the exe:

Press “Enter designer mode” button to turn on designer mode - you then are able to move and resize all controls.

Hi Mike.

I test the program but didn´t see how to create a new control. All the other features are exactly what I need. Can you send me the source or explanation of how to do it ?


To create a control you just call standard CREATE() function, just find it in the help.
Source code is not for free, I spent a lot of time to implement this.
Short answer “how to do it” - Windows API, I used over 30 api functions in this project.
Sorry if i didn’t meet your expectations.

Hi Mike. Which is the price to obtain the source code and how can I pay it ?

Sent private message.

Check our ksUI library

1 Like

Updated exe now supports IMAGE controls as well.

Hi Mike, Am I able to get a copy of the source code for your version of this?

It is for sale, $100 via PayPal.

By the way, new release is available.
What’s new in this release:

  1. Image remains visible during move/resize operation.
  2. Correct work with child controls in GROUP, OPTION, SHEET.
  3. “Align to grid” feature.
  4. An event firing when control’s position/size was changed.

New demo is available here.

1 Like

Thanks Mike,
I am looking to place ellipses over a satellite map and provide the user to move these controls in the correct place over the image (like dropped pins in google).
I want to then save the xpos and ypos and pass it to a website, is this possible with you template?

If so, I will go ahead and purchase.



yes this is possible using transparent image as a marker (ellipse). If you want to test it before purchase send me private message.

Hi Mike.

How can I purchase the source code ?

Which is your private email address?

Hi Wsebolod,

at the very bottom of this page you’ll find a PayPal link and my contacts.

Now a template is available for ABC and Clarion chains.

Thanks Mike.

I already install the template.

Do you have a list of the methods and how to use them ?

I.E. ThisResCtrlMgr.AddControl(?LOC:Fecha:Prompt)
ThisResCtrlMgr.LoadLayout(’.\Layout.INI’, ‘PantPruebas’)
ThisResCtrlMgr.SaveLayout(’.\Layout.INI’, ‘PantPruebas’)


Hi Wsebolod,

just updated Getting Started.txt, there are descriptions and examples of frequently used methods. You can download it from same link.