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 ?

Thanks.

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
http://klarisoft.com/KSNews_202.htm

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?
Thanks,
Justin

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.

Thanks,
Justin

Justin,

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ā€™)

Thanksā€¦

Hi Wsebolod,

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