FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   Add to FavoritesAdd to Favorites  * Code Snippets
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    RSS Get RSS Feed  


Dialog Designer missing objects

 
Post new topic   Reply to topic    Macro Scheduler and Windows Automation Forum Index -> Technical / Scripting
View previous topic :: View next topic  
Author Message
obfusc88
Pro Scripter


Joined: 14 Mar 2007
Posts: 72

Reputation: 100

PostPosted: Sat May 12, 2012 7:50 am    Post subject: Dialog Designer missing objects Reply with quote

Using MS Version 121.10

1. When using the Designer I cannot find how to add radio buttons to the group.
2. When using the Designer I cannot find how to add FileBrowser object.

3. I have found some code examples that allowed to create two buttons that do show up in the Designer, but I cannot modify their properties since I cannot select them as objects.

4. I have found some code examples for File Browser but it appears to be from earlier versions of Dialog Designer.

So, how do I use Dialog Designer to add these objects and modify their properties. I found nothing in the Help guide that provided any info.

Did this message help you? If so please reward the poster with Reputation Points? Reward Points
Back to top
View user's profile Send private message
Marcus Tettmar
Site Admin


Joined: 19 Sep 2002
Posts: 5626
Location: Dorset, UK
Reputation: 1391
votes: 58

PostPosted: Mon May 14, 2012 10:52 am    Post subject: Reply with quote

1. The buttons are represented by a list of items using the Text property. So to add buttons to the group, go to the group's Text property in the properties list, right click and select Multiline Edit and then put the text for each button on a new line.

2. FileBrowse is a method of the Button object. Create an OnClick handler for the button. In the handler's subroutine set the button's DoBrowse property to True, then get it's Filename property. That's it. Here's an example:



Run it, click on the button and the file browse dialog appears, select a file, and the filename appears in the edit box.

3. So don't really understand this one. In design view just click on the button or any object and you'll see the properties list update for the properties belonging to that object.

4. See my example above.
_________________
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Did this message help you? If so please reward the poster with Reputation Points? Reward Points
Back to top
View user's profile Send private message Visit poster's website Facebook ID
obfusc88
Pro Scripter


Joined: 14 Mar 2007
Posts: 72

Reputation: 100

PostPosted: Wed May 16, 2012 6:02 am    Post subject: Reply with quote

Thanks, that worked perfect for the File Browse. Where can I find that information? I could not find it in the Help files.

Is there an option to Browse for the Path vs. the Filename? I guess it is possible to browse to any file in that folder and then parse out the path, but what if there is no file in the desired folder yet?

Did this message help you? If so please reward the poster with Reputation Points? Reward Points
Back to top
View user's profile Send private message
Marcus Tettmar
Site Admin


Joined: 19 Sep 2002
Posts: 5626
Location: Dorset, UK
Reputation: 1391
votes: 58

PostPosted: Wed May 16, 2012 7:22 am    Post subject: Reply with quote

FileBrowse is a property of the Button object, so it is documented in the help file in the Button object topic. Look at BrowseStylen to set it to a folder browse, instead of file browse. Look also at Filter. Use the properties editor to set.
_________________
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Did this message help you? If so please reward the poster with Reputation Points? Reward Points
Back to top
View user's profile Send private message Visit poster's website Facebook ID
obfusc88
Pro Scripter


Joined: 14 Mar 2007
Posts: 72

Reputation: 100

PostPosted: Thu May 17, 2012 3:11 am    Post subject: Reply with quote

Thanks again. I tried the Help section Index on Button with no luck. I tried "object" with no luck. Then I switched from the Index and did a Search for Button Object, and got Button Object Properties.

I was able to change the BrowseStyle on the Button to search for a folder vs. a file, exactly what I was looking for. And I now see that a SaveAs option is also available if I need it.

With that knowledge behind me, I also see all the other Dialog Object Properties Help sections. Working now on Progress Bar, and having the Help section is a bonus. Could not find any of these terms in the Help Index.

Did this message help you? If so please reward the poster with Reputation Points? Reward Points
Back to top
View user's profile Send private message
Display posts from previous:    View previous topic :: View next topic  
Post new topic   Reply to topic    Macro Scheduler and Windows Automation Forum Index -> Technical / Scripting All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group