Sign in to follow this  
Followers 0
Eli

Tabs in an MDI app?

2 posts in this topic

#1 ·  Posted (edited)

I have the controlID for the tab and the classnamenn "SysTabControl321" but for some reason I cant do anything with it.

dim $win
dim $t

Opt("WinTitleMatchMode", 2)

$win = "VISION" 

winactivate($win)
WinWaitActive($win)

;ControlFocus($win, "", "SysTabControl321")
$t = ControlCommand($win, "", "SysTabControl321", "CurrentTab", "") 
MsgBox(0, "", $t)

this pops up a blank box for a second then closes it

I tried just ControlFocus and that didnt work, I also previously tried sending some commands to it and nothing worked. Does it have something to do with it being in a MDI app?

Edited by Eli

Share this post


Link to post
Share on other sites



ok, got it to return something..... "1"

it only returns 1 no matter what tab its on.

even with the controlfocus

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0