|  | 
| How can i get the position of buttom | 
| Post Reply   | 
| Author | |
| csfishy   Newbie   Joined: 06 November 2013 Status: Offline Points: 2 |  Post Options  Thanks(0)  Quote  Reply  Topic: How can i get the position of buttom Posted: 06 November 2013 at 2:48am | 
| hello, i would like to ask a question, anybody can help me? but how can i get the position of single button control? e.g. Set Control = ToolBar.Controls.Find(xtpControlButton, ID_Tool_help, False, -1  ) how to get the "Control" position? | |
|  | |
| Micca   Groupie   Joined: 26 November 2008 Status: Offline Points: 22 |  Post Options  Thanks(1)  Quote  Reply  Posted: 23 April 2015 at 6:19am | 
| 
   How to get the absolute screen position of a toolbar control: Dim L1 As Long, R1 As Long, T1 As Long, B1 As Long Dim L2 As Long, R2 As Long, T2 As Long, B2 As Long Dim ControlLeft as Long, ControlTop as Long Control.Parent.GetWindowRect L1, T1, R1, B1 Control.GetRect L2, T2, R2, B2 ControlLeft = L1 + L2 ControlTop= T1 + T2 | |
| 
     Micca --------------------- Product: Xtreme Commandbars (ActiveX) Version 17.2 Platform: Win7 64bit Language: Visual Basic 6.0 SP6 | |
|  | |
| Post Reply   | |
| Tweet | 
| Forum Jump | Forum Permissions  You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |