Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - CommandBar and other controls' position
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CommandBar and other controls' position

 Post Reply Post Reply
Author
Message
okosv View Drop Down
Newbie
Newbie


Joined: 31 October 2009
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote okosv Quote  Post ReplyReply Direct Link To This Post Topic: CommandBar and other controls' position
    Posted: 31 October 2009 at 7:59am
Hi CodeJock,
I'm using VB6 to develop the soft, and there is some problem which I can't to solve.
There is form, and in it form is one command bar object (toolbar) and frame control, toolbar is located on top of form. How can I set position of frame, thus that frame was below of commandbar object.
I tried to use GetClientRect, than add some fixed value to bottom value, but in other computers with different screen resolution, and default windows theme, it not given necessary results.
How can I do it?
Thank u
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 02 November 2009 at 7:46am
Hi,
 
 
from SDI sample:
 
Private Sub CommandBars_Resize()
   
    On Error Resume Next
   
    Dim Left As Long
    Dim Top As Long
    Dim Right As Long
    Dim Bottom As Long
   
    CommandBars.GetClientRect Left, Top, Right, Bottom
    rtfText.Move Left, Top, Right - Left, Bottom - Top
    rtfText.RightMargin = IIf(rtfText.Width > 400, rtfText.Width - 400, rtfText.Width)
End Sub
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.