Search found 29 matches

by bossydog9
Wed Feb 19, 2020 6:04 pm
Forum: Technical / Scripting
Topic: How do I populate a StringGrid using a reference to row & column?
Replies: 3
Views: 3977

How do I populate a StringGrid using a reference to row & column?

I've done a search but can't find an example showing how to populate a StringGrid object by using a cell reference. However, I did find this post, https://www.mjtnet.com/forum/viewtopic.php?t=8635, detailing how to do what I want, but this is a workaround and over 4 years old. Marcus mentioned that ...
by bossydog9
Tue Feb 18, 2020 3:08 pm
Forum: Technical / Scripting
Topic: MS Editor > Help > Contents > More Examples and Comments Online link issues
Replies: 1
Views: 1952

MS Editor > Help > Contents > More Examples and Comments Online link issues

The More Examples and Comments Online link at the bottom of each topic description in Help generates a Javascript error whenever a description exists and an Error 404 when it doesn't.
by bossydog9
Thu Feb 13, 2020 3:51 pm
Forum: Technical / Scripting
Topic: MS Version Number <> Installation Download Version Number
Replies: 4
Views: 3271

MS Version Number <> Installation Download Version Number

The version number of the installation kit in the user download area is 14.5.7a but after installation the Help>About dialog box describes it as 14.5.7.
by bossydog9
Tue Feb 11, 2020 4:46 pm
Forum: Technical / Scripting
Topic: GetWindowSize returns size of combobox
Replies: 4
Views: 3968

Re: GetWindowSize returns size of combobox

Hello Marcus, Given the significance of what you said in your response, it might be an idea to make a reference to the WF_TYPE variable in the help for GetWindowSize as you have for other functions such as WaitWindowOpen and WaitWindowClosed. There does remain an inconsistency, however, in that the ...
by bossydog9
Mon Feb 10, 2020 11:08 pm
Forum: Technical / Scripting
Topic: GetWindowSize returns size of combobox
Replies: 4
Views: 3968

Re: GetWindowSize returns size of combobox

Ok, so that seems to infer that the GetWindowSize function may be including the combo box object in its search for the window. I just tested it again and that's exactly what it's doing. I also added an Edit box and set its Text value to the Window Title, and the GetWindowSize function returned the s...
by bossydog9
Mon Feb 10, 2020 3:34 pm
Forum: Technical / Scripting
Topic: GetWindowSize returns size of combobox
Replies: 4
Views: 3968

GetWindowSize returns size of combobox

I'm using the following code to select a window title from a combo box and run a subroutine to get the window size. I then update a label with the width & height of the selected window. For some reason, the width & height being returned by the GetWindowSize function is the width & height of the comb...
by bossydog9
Fri Feb 07, 2020 6:39 pm
Forum: Technical / Scripting
Topic: Populate a dialog combo box with GetWindowList
Replies: 2
Views: 2324

Populate a dialog combo box with GetWindowList

I got this from Help but it didn't populate the combo box. Is there something missing? What's the alternative to the deprecated statement? //Populate a dialog combo box with a window list GetWindowList>Dialog1.msComboBox1.Items.Text ResetDialogAction>Dialog1 (Deprecated) This did work, though: GetWi...
by bossydog9
Thu Feb 06, 2020 5:25 pm
Forum: Enhancement Suggestions
Topic: Return image size in FindImagePos function
Replies: 6
Views: 13842

Re: Return image size in FindImagePos function

..that'll do nicely... :D
by bossydog9
Wed Feb 05, 2020 1:37 pm
Forum: Enhancement Suggestions
Topic: Return image size in FindImagePos function
Replies: 6
Views: 13842

Re: Return image size in FindImagePos function

Yes, but the script doesn't...I know you can get the size, programmatically, using an image object on a dialog, but that's a bit convoluted, don't you think? Given that a significant part of MS concerns images, it's odd that it doesn't have a size function, or does it?
by bossydog9
Mon Feb 03, 2020 12:13 pm
Forum: Technical / Scripting
Topic: How do I create a button that doesn't close a dialog?
Replies: 5
Views: 4713

Re: How do I create a button that doesn't close a dialog?

Your script doesn't load because of the single apostrophe in the caption property (Won't should have 2 apostrophes - Won''t). It turns out that in order for a button to perform a subroutine and not close the form, its ModalResult must be zero. Note that if a button's ModalResult value is zero (the d...
by bossydog9
Sun Feb 02, 2020 3:13 am
Forum: Technical / Scripting
Topic: How do I create a button that doesn't close a dialog?
Replies: 5
Views: 4713

How do I create a button that doesn't close a dialog?

I want a button in a dialog that performs a subroutine and nothing else. I want the dialog to stay open. I have added an AddDialogHandler statement that performs the subroutine, but the dialog closes. How do I stop it?
Sign up to our newsletter for free automation tips, tricks & discounts