Hi,
I have added two anchored windows using the following code with VB 6.
varWindowStates = VisWindowStates.visWSVisible + VisWindowStates.visWSDockedLeft
varWindowTypes = VisWinTypes.visAnchorBarAddon
1st window
Set vsoAnchorWindow = myVisioApp.ActiveWindow.Windows.Add("A", varWindowStates, varWindowTypes, 0, 0)
vsoAnchorWindow.MergeCaption = "AnchorWindow 1"
vsoAnchorWindow.MergeID = CUSTOM_MERGE_ID_1
vsoAnchorWindow.MergeClass = ""
2nd window
Set vsoAnchorWindow = myVisioApp.ActiveWindow.Windows.Add("A", varWindowStates, varWindowTypes, 0, 0)
vsoAnchorWindow.MergeCaption = "AnchorWindow 2"
vsoAnchorWindow.MergeID = CUSTOM_MERGE_ID_2
vsoAnchorWindow.MergeClass = ""
I can merge them manually by dragging one over the other. Programatically how can I merge these windows?
If anybody has any idea on this please let me know.
:)
Thanks
Visano
Buon Giorno, Visano,
I've been playing with this for the past hour, because it's a GOOD QUESTION, and I can't figure it out.
There are a bunch of merge-related arguments in the Windows.Add method, which I didn't try. I wonder if setting them for newly-added windows has any effect?
I also noticed, that in merged windows, the MergeID is the same, but I can't figure out how to merge them. I've tried putting windows in the same place, setting their WindowStates to be "merged", etc.
The Macro Recorder and Visio Event Monitor tool were also of no help.
Hopefully somebody will see this that has figured it out!
Hi Mr. Visio Guy,
thank you for your quick respond.
I have tried a lot with all the parameters of the ActiveWindow.Add method but merging the windows was not possible.
If you get clue or some informations from MS please let me know.
WR
Visano
P.S.
By the way I found this newsgroup nice & transparent. :)
Hi Guys,
has anyone still no answer for this problem?
:)
WR
Visano
Hi,
sorry for "necroposting" :)
but I guess I know how to merge windows.
After many unsuccessful attempts, finally, I've done it:
Set wnd1 = ActiveWindow.Windows.add("wnd1", visWSVisible Or visWSDockedRight, visAnchorBarAddon)
'any random GUID
wnd1.MergeID = "{BD8994FC-A032-412B-B557-9039E82AB7FA}"
wnd1.MergeCaption = "wnd1"
wnd1.MergeClass = "1"
Set wnd2= ActiveWindow.Windows.add("wnd2", visWSVisible Or visWSDockedRight Or visWSAnchorMerged, visAnchorBarAddon, , , , , "{BD8994FC-A032-412B-B557-9039E82AB7FA}", "1", 2)
wnd1.MergeCaption = "wnd2"
Yooo! The Merge-Windows Mystery is finally solved! :D
Thank you for sharing!
A bit simplified version (it seems that you just have to set MergeID separately to a GUID, and then create the window to be merged with that GUID):
Set wnd1 = ActiveWindow.Windows.Add("wnd1", visWSVisible, visAnchorBarAddon)
wnd1.MergeID = "{BD8994FC-A032-412B-B557-9039E82AB7FA}"
Set wnd2= ActiveWindow.Windows.Add("wnd2", visWSVisible Or visWSAnchorMerged, visAnchorBarAddon, , , , , "{BD8994FC-A032-412B-B557-9039E82AB7FA}")
Browser ID: smf
(is_webkit)
Templates: 1:
Printpage (default).
Sub templates: 4:
init,
print_above,
main,
print_below.
Language files: 1:
index+Modifications.english (default).
Style sheets: 0:
.
Hooks called: 56 (
showintegrate_autoload, cache_get_data, integrate_pre_load, integrate_load_session, integrate_verify_user, cache_get_data, integrate_user_info, integrate_load_board, cache_get_data, integrate_board_info, cache_get_data, integrate_allowed_to_general, integrate_pre_load_theme, cache_get_data, integrate_allowed_to_general, integrate_simple_actions, integrate_allowed_to_general, integrate_load_theme, integrate_pre_log_stats, cache_get_data, integrate_actions, integrate_pre_parsebbc, integrate_bbc_codes, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_menu_buttons, integrate_current_action, integrate_theme_context, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general)
Files included: 25 - 925KB. (
show/home/iw0lkfe3x6cq/public_html/vgforum/index.php, /home/iw0lkfe3x6cq/public_html/vgforum/Settings.php, /home/iw0lkfe3x6cq/public_html/vgforum/cache/db_last_error.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/QueryString.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Subs.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Subs-Auth.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Errors.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Load.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Security.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Subs-Compat.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Subs-Db-mysql.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Cache/CacheApi.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Cache/CacheApiInterface.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Cache/APIs/FileBased.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Subs-Charset.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Unicode/Metadata.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Unicode/QuickCheck.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Session.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Logging.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Class-BrowserDetect.php, (Current Theme)/languages/index.english.php, (Current Theme)/languages/Modifications.english.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Printpage.php, (Current Theme)/Printpage.template.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Unicode/CaseUpper.php)
Memory used: 775KB.
Tokens:
post-login.
Cache hits: 7: 0.00164s for 22,301 bytes (
showget modSettings: 0.00068s - 19982 bytes, get known_languages: 0.00033s - 1277 bytes, get board_parents-0: 0.00022s - 2 bytes, get permissions:-1: 0.00010s - 50 bytes, get theme_settings-1: 0.00015s - 980 bytes, get log_online-update: 0.00014s - 10 bytes, get menu_buttons--1-english: 0.00003s - 0 bytes)
Cache misses: 1: (
showget menu_buttons--1-english)
Queries used: 9.
[Show Queries]