Create Input from User?

Hi,

Does anyone knows how to create an interface to get the input from user? Somehting like a text input or number or check box.

Can it be done with DesktopX?

Thanks,

PeachPx
4,043 views 8 replies
Reply #1 Top
Like this: https://www.stardock.com/products/desktopx/documentation/DX-sbs-6.asp

There are many tutorial at the wiki and the DX documentation is pretty good too
Reply #2 Top

You can alternatively create an Object layer of type Text (rather than Image) and include handling for the Object_OnChar callback method.

https://www.stardock.com/products/desktopx/documentation/scripting/object_callbacks.asp

Sometimes it may be a waste of time re-creating the wheel, but it can give you more versatility in the end. When you use InputBox, the layout can be generic and unflavorful (that is when WindowBlinds is not skinning, at least )

-Mike
[Stardock Support]

Reply #3 Top
Or you could get really fancy and include a whole form.
I keep wanting to find a reason to do this one but i havent come up with a purpose yet

https://www.stardock.com/products/desktopx/documentation/scripting/forms.asp
Reply #4 Top
Hello All,
Thank you so much for all the replies.

I am still stuck on creating an input object. I got down to use DesktopX Edit Control But the function seems to be unstable.

All I want is an input box where user can type and I am able to get input out.

The even it uses is OnKeyPress. I am not sure how to handle the Enter Key with this funciton and assign it to the variable.

Please help.
Reply #5 Top
There are good examples (Widgets & Objects Gallery) of using both the activeX controls.

For the layer method I would look for Frogboy's Text Objects to start with then for more advanced check out Thomassen's Text box and Skarn's DX Bits 1 & 2.