A Listbox is seen thru multiple tabpages

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

A Listbox is seen thru multiple tabpages

Post by armsys » Sat Apr 26, 2008 9:10 am

In the following script, why is the "Style" listbox is seen thru in two tabpages? Please help. Thanks.

Dialog>Dialog1
Caption=Dialog1
Width=705
Height=636
Top=168
Left=207
Max=1
Min=1
Close=1
Resize=1
TabBook=msTabBook1,208,104,289,297,0
ListBox=Style,232,144,121,97,Style 1%CRLF%Style 2
TabPage=Email
TabPage=Word
ListBox=ABC%CRLF%XYZ,104,128,121,97,
EndTabBook
EndDialog>Dialog1
Show>Dialog1,Result
Last edited by armsys on Sun Apr 27, 2008 8:06 am, edited 1 time in total.

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Sat Apr 26, 2008 9:22 am

I just found my mistake. Please ignore and delete this thred.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Sat Apr 26, 2008 1:05 pm

Rather than delete this thread, perhaps you can post what your mistake was, and how you fixed it. Then others may learn from it.

I suspect the answer is that the listbox was not placed on the tab page. It's parent was probably the form rather than the tab page but positioned at the same place as the tab page. It was therefore always visible. By removing it and placing it on the selected tab page the problem was solved, making it owned by the tab page rather than the form directly. Am I right?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Sat Apr 26, 2008 4:59 pm

Marcus,
You've already answered the cause. I just moved the 1st ListBox under TabPage=Email. The 2nd ListBox statement was faulty.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts