Create Input from User?

Thursday, November 8, 2007 by peachpx | Discussion: DesktopX

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
ZubaZ
Reply #1 Thursday, November 8, 2007 12:01 PM
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
milksama
Reply #2 Thursday, November 8, 2007 12:28 PM

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]

JeremyG
Reply #3 Thursday, November 8, 2007 1:49 PM
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
peachpx
Reply #4 Thursday, November 8, 2007 3:42 PM
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.
SirSmiley
Reply #5 Thursday, November 8, 2007 3:58 PM
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.
peachpx
Reply #6 Thursday, November 8, 2007 4:18 PM
Where?????

What is "Thomassen's Text box and Skarn's DX Bits 1 & 2.
"?????
SirSmiley
Reply #7 Thursday, November 8, 2007 4:41 PM
Thomassen's Gallery

Skarn's Gallery

Would you like fries with that?
peachpx
Reply #8 Thursday, November 8, 2007 4:57 PM
Hey Man -THANKS!!!
U r the BEST    

Please login to comment and/or vote for this skin.

Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:

  • Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
  • Access to a great community, with a massive database of many, many areas of interest.
  • Access to contests & subscription offers like exclusive emails.
  • It's simple, and FREE!



web-wc01