stefsouron

stefsouron

Joined Member # 2952342
0 Posts 0 Replies 1,799 Reputation

That's a very good idea. But just a question (i have no time to test it). If a child object doesn't have states implemented (i.e. in the properties dialog there is only the or 'mouse away' state, does it responds 'mouse over' or not ?

22 Replies 12,975 Views

I know that works only for a rectangular zone, and I said it. But it's the only way we've found at this time to prevent the mouse leave event that occurs when the mouse enters a child object. As you generally need this kind of behaviour in docks or launchers application, the container is often near rectangular, so it's fine. For a more graphically complex container, I can't see a way... If someone knows how to get the alpha value of an object's pixel, let me know, because in this case,

22 Replies 12,975 Views

I looked around it in the afternoon (I'm in France). As the subject interested me, I've found that solution : In the object we want to activate/deactivate, let's put a boolean variable, called "Active". It could be inialized at True or False for example in the Object_OnScriptEnter sub. Then, in each event handler involving the mouse in this object, I test this value, to do something or not. For example : Sub Object_OnMouseEnter If Active Then '... doing som

9 Replies 6,908 Views

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,908 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,975 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,975 Views

We're looking for very difficult ways, and solutions are often so simple... In the moment, I was in such a shame because I wondered the answer at the exact moment when I clicked the "Submit New Post" Button. But of course, I'm not afterall, because, firstly, as you say, this place is made for that, and in a second place, maybe there's people with the same problem, so they'll be able to find what they need reading these Q&As like we do all... But it'll be interesting if someone

9 Replies 6,908 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,908 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,908 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,192 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,218 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,506 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,218 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,506 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,194 Views

I'm actually looking for widgets using such functionalities, but for the moment I've only found gadgets, where I can't have a look on the code. The end goal is to have a selector dialog to let the user of a dock widget to configure certains paths and files, accessible by right clik popup menu. The menu is done, I only need the way to access those dialogs. If someone have a widget (not an executable) doing this, please tell me its name. What do mean about language? If i

8 Replies 6,194 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,194 Views