Yet another DesktopX ideas.

Two new suggestions this time...

New ability to change fonts.

Object.Font="Microsoft san seref"
Object.Fontsize=76
Object.text="Get the idea?"


Ability to split the entire script into "areas" with 2 viewing modes, "One Page" and "Sectioned"

In one page mode, the entire script would look like this:

'Called when the script is executed

Script.Group Wakeup

Sub Object_OnScriptEnter
Msgbox "I'm awake!"
End Sub

End Group Wakeup

Script.Group Exit
'Called when the script is terminated
Sub Object_OnScriptExit
msgbox "Goodbye!"
End Sub

End Group Exit


Notice the additional code? When it's switched to sectioned, and that combo box with script group list is on just "Wakeup"...

Sub Object_OnScriptEnter
Msgbox "I'm awake!"
End Sub

That's it. If you want to see Exit group, you just change combobox to "Exit" and you can see this:

Sub Object_OnScriptExit
msgbox "Goodbye!"
End Sub

The only way to add new script.group sections is to switch to one page mode. For such a small script such as this example, it's useless, but some of object has very complex code, and this could be more useful to lessen clutter.
11,205 views 13 replies
Reply #1 Top
Not sure about the groups, but a dropdownbox that displays the functions in the script would be very nice. Ability to only see current function would be nice too sometimes.
Reply #2 Top
Hmm yeah that would work too.

My idea is customizable by user while your version is based on functions or subs.

Either way will work for me.


The ability to change font size and kind would be amazing too.
Reply #3 Top
Yea, changin fonts would be nice.
Reply #4 Top
Object.Font="Microsoft san seref"
Object.Fontsize=76
Object.text="Get the idea?"


I agree with this one, this would be REALLY cool to have. I'd also be able to set bold, underline etc.
Reply #5 Top
I have proposed that we have font styles to Alberto a while ago, and I know he was considering it.

Styles would be more flexible that scripted fonts (though this would be included too), because you could set an object's text to a style and then you could rapidly change the complete look of an object by editing the style rather than each individual object.
Reply #7 Top
DesktopX will never become a drawing app in my opinion. Why bloat DX with this stuff when any graphics editor will do it better than DX can in seconds.
Reply #8 Top
Uses of the line tool can be amazing but I agree.
Reply #9 Top
Whats wrong with DrawText.

You could use Drawtext(Container,"Test Text",X,Y,Color,Font,FontSize....)

Which would draw text in that container, without having to use a text object. It would then be possible to create your own controls like transparent text box,list box etc. without having to create a lot of objects that are text.

You could then use Container.Clear to clear the container.

I have created 2 or my own transparent listboxes in javascript. The only way you can highlight text is to create or clone a lot of text boxes and change the color of the selected one or change the text by putting a "*" in front of the selected text. It would be far easier if i had drawtext.
Reply #10 Top
Yes, Draw functions would be very nice for "prototype" objects that can act in different ways without filling it with all possible object you might have to use.
Reply #11 Top
im not sure if this has been suggested .. but in the object navagator .. i would like to see a states/sounds section..... listing the sounds for each of the states of an object .. we can set sound states for mouse overs and stuff .. but have to search each item to find wich ones have them or not .. and with a few of these themes having over 300+ objects it gets to be a time killer...
listing the sounds with their associated mouse states would be a time saver for us modifying/developing themes and widgets...
Reply #12 Top
Great ideas everyone. Keep on coming up with ideas!
Reply #13 Top
Addition to my comment (#10). Another example would be my textobject. Now it got four object, one for the backgorund, one for the text, one for the caret and one for the selection. If DX had drawing abilities I'd only need one. Advantage because the text, caret and selection object are object that you don't need to interact with.
Even more useful for my current object with is a listbox. Now I need to create and delete text object and selection objects and iterate through all of them. With drawing abilities I could simply clear what I've drawn and redraw the listbox.