stefsouron

stefsouron

Joined Member # 2952342
5 Posts 13 Replies 129 Reputation

Yes I've checked it, and I put there the code I used for testing if the mouse cross the parent's object bounds, because the problem was not exactly resolved there. But there was no question about the activation of an object by script there.

9 Replies 6,854 Views

I wanted to modify my precedent post but I've lost the code... If someone could explain me how to use the "Code Block" tags of the post editor, thank you... So here it is : Sub Object_OnMouseLeave ' Ex version is possible too Dim x,y,l,r,t,b x = System.CursorX y = System.CursorY l = Object.Left ' assuming the script is in the parent object r = Object.Right b = Object.Bottom If x r Or y b Then Object.Visible =

22 Replies 12,853 Views

As sViz has told, this doesn't work, because when the mouse enters a child object, it leaves the parent object, even if the pointer is always "over" it (that's the way DX is done). So in this case, the [B]Object_OnMouseEnterEx[/B] sub receives as obj the child object, as expected, but in the same time, the [B]Object_OnMouseLeaveEx[/B] receives as obj the parent object, so it desappears. The only solution I've found, and sViz told me on another post he found the same, is to test if the m

22 Replies 12,853 Views

I'm really sorry, but the fact to post my precedent question has permitted me to find the solution, and it was so obvious that I have a little shame... Simply, in the Object_OnMouseLeave procedure, I test if the mouse cursor is always inside the dock, by System.CursorX and System.CursorY, comparing it with the Object.Left, .Top, .Width & .Height, and then I call the rolling procedure or not depending of the result... Sorry to fill the forum with such questions...

9 Replies 6,854 Views

Me again and my unanswerable questions... Is there a way to change the activation property of an object by script (The one you can find in the relation tab of the property dialog) ? I've ound nothing about it in the documentation so I think it's impossible... Here is my problem : I'm building a dock widget, staying rolled at the side of the screen. When the mouse enters the tab of the dock, it unrolls (that was easy with the event handler Object_OnMouseEnter). I wanted the

9 Replies 6,854 Views

Hi everybody, I'm looking for help, tutorialss or well documented widgets involving the vbScript XML stripper functions, to build and read XML files in DX scripts. My aim is to save/load the configuration of a complex widget as an XML file. It could be achieved by writing and reading the XML stream and analysing it from scratch, but as these functions exist, I want to have an overview of it. So if anybody have an URL for reference or tutorial, or a widget using it, please l

0 Replies 2,155 Views

Ok, So I did well... I will try to use vbScript classes anyway (I will clone a template object in the creator method), because I think it's an elegant way to set / get complex properties, reflecting on the onscreen object with an elegant code. I'll submit you an exemple if reach my objective. Is there anyone here who already did that ? Stf

3 Replies 7,141 Views

Ok sorry, I Was wrong in the code... It works well with your syntax : [B]Object.CommandParams[/B] In fact, I used before [B]Object.CommandParameters[/B], because that's what I saw in the DX Online documentation : [link="https://www.stardock.com/products/desktopx/documentation/scripting/object_namespace.asp"]Here[/link] It seems to be a mistake... Thank you

3 Replies 6,420 Views

Hi everybody again... Is there a way to make objects created by a script ? I'm actually working on a dock widget, and I've scripted a right click menu with the item 'Create new shorcut'. The only way I've found to achieve this within my script is to have a blank shortcut, which is hidden, containing its own script (for it to zoom in and out, like in ObjectDock, and a menu to set properties). Then I create a new one by cloning it with [color="#FF0000"][/color]DesktopX.Object

3 Replies 7,141 Views

Hi everybody, When I try to get/set the .Command property of a shortcut object, it works fine, but when I try to do the same with the .CommandParameters property, it raises an error saying that the object doesn't handle this property. Is anyone has fixed it already ? Thx

3 Replies 6,420 Views

That's found ! Here's the code for anyone who need it... file = System.FileOpenDialog("Select File", "", "", "All files|*.*",0) folder = System.FolderDialog("", "", &H4000) Maybe it'll be usefull to get infos on the flags used in FolderDialog. Bye

8 Replies 6,152 Views

Hello, I'm looking for informations about the way to use the Windows file selector dialog and folder selector dialog in DesktopX scripts. Thx to give me ideas, tutorials or reference URLs, or exemples... Thanks a lot.

8 Replies 6,152 Views