I have created a group with 2 sub shapes. One is a rectangle, and one is a text. I need them to be separate.
However..I'm not able to programatically see the difference between the 2 sub shapes. They both have a GeometryCount of 1, and the rectangle CAN contain a text as well, so I can't just check the text property either.
How can I identify the text only shape?
THL
The only real difference is a text shape has LinePattern = 0.
Well, if that is consistent, then I can use that :)
Thanks!
THL
Did you mean LineStyle?
THL
Nah.. found it :)
THL
Quote from: RhesusMinus on January 28, 2011, 08:53:13 AM
I have created a group with 2 sub shapes. One is a rectangle, and one is a text. I need them to be separate.
However..I'm not able to programatically see the difference between the 2 sub shapes. They both have a GeometryCount of 1, and the rectangle CAN contain a text as well, so I can't just check the text property either.
How can I identify the text only shape?
Hi,
Maybe if all you actually want to do is to identify the shapes, it might be a good idea to simply mark them beforehand?!
I mean, to tag the shapes you want to identify, e.g. tag the rectangle shape with a mark "rectangle", and the text shape with a mark "text".
So later you could simply look at the tag of the shape you are processing and tell what it is.
You could implement this marking using custom properties (http://office.microsoft.com/en-us/visio-help/about-custom-properties-HP085050535.aspx), user-defined cells (http://msdn.microsoft.com/en-us/library/aa200962.aspx#575), or even the (already fossilized?) Data1/Data2/Data3 (http://msdn.microsoft.com/en-us/library/ms425982.aspx) shape attributes
Keep in mind that Visio provides powerful and easy to use tools to show text items on a shape nowadays, e.g. text fields (http://office.microsoft.com/en-us/visio-help/creating-text-fields-to-display-information-in-visio-HA001182249.aspx), or data graphics (http://www.visguy.com/2007/05/04/data-graphics-resources/) were specifically designed for this.
You might want to check these out if you haven't done it yet!
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: 762KB.
Tokens:
post-login.
Cache hits: 7: 0.00120s for 22,301 bytes (
showget modSettings: 0.00056s - 19982 bytes, get known_languages: 0.00020s - 1277 bytes, get board_parents-0: 0.00011s - 2 bytes, get permissions:-1: 0.00009s - 50 bytes, get theme_settings-1: 0.00011s - 980 bytes, get log_online-update: 0.00009s - 10 bytes, get menu_buttons--1-english: 0.00004s - 0 bytes)
Cache misses: 1: (
showget menu_buttons--1-english)
Queries used: 9.
[Show Queries]