Print Page | Close Window

SOLVED: Bar Attached Property

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=13415
Printed Date: 07 October 2024 at 8:32am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SOLVED: Bar Attached Property
Posted By: AndyWilton
Subject: SOLVED: Bar Attached Property
Date Posted: 15 February 2009 at 5:17pm
Hi All,
 
Just a "quick question"...
 
I'm trying to determine if a Command Bar is currently attached / Docked to another Command Bar (ie, is displayed on the same row).
 
Does anybody know what property would tell me this?  I thought 'position' would, but it doesn't.
 
Thanks in advance.
 
Regards,
 
Andy


-------------
Product: Xtreme SuitePro (ActiveX) v11.2.1 -> v15.2.1
Platform: Windows XP / Vista / Win 7
Language: Clarion 5.5 -> C8.x
======================================
Andy Wilton



Replies:
Posted By: Oleg
Date Posted: 16 February 2009 at 5:23am
Hi,
 
You can call GetWindowRect for ToolBar to check and for all other ToolBars and check if "Top" or "Left" (for Vertical) value is  same.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: AndyWilton
Date Posted: 16 February 2009 at 5:26am
Hi Oleg,
 
I'm a little confused?  If I had 3 different CommandBars, each on seperate rows - couldn't they all have a position of "Top"?
 
Regards,
 
Andy


-------------
Product: Xtreme SuitePro (ActiveX) v11.2.1 -> v15.2.1
Platform: Windows XP / Vista / Win 7
Language: Clarion 5.5 -> C8.x
======================================
Andy Wilton


Posted By: Oleg
Date Posted: 16 February 2009 at 5:36am
Hi,
 
if they are in 3 separate Rows all "Top" positions will be different.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: AndyWilton
Date Posted: 16 February 2009 at 6:01am
Hi Oleg,
 
I've tried the GetWindowRect method in the past and have struggled to get it to work within the Clarion environment.  Is there any other way I can get to the positions? or could you explain the GetWindowRect in more detail.
 
Basically, I've declared 4 long variables and try passing them as parameters but I keep getting 'Type Mismatch' for the parameters.
 
Regards,
 
Andy


-------------
Product: Xtreme SuitePro (ActiveX) v11.2.1 -> v15.2.1
Platform: Windows XP / Vista / Win 7
Language: Clarion 5.5 -> C8.x
======================================
Andy Wilton


Posted By: AndyWilton
Date Posted: 16 February 2009 at 7:35am

Hi Oleg,

 

I've just figured the Clarion 'getWindowRect' interface out (its marvelous what you can accomplish when you're under pressure!)

 

Thanks for help, its much appreciated.

 

Regards,

 

Andy

 



-------------
Product: Xtreme SuitePro (ActiveX) v11.2.1 -> v15.2.1
Platform: Windows XP / Vista / Win 7
Language: Clarion 5.5 -> C8.x
======================================
Andy Wilton



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net