Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Maximise with Custom Control Problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Maximise with Custom Control Problem

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


Joined: 25 October 2007
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote stevepert Quote  Post ReplyReply Direct Link To This Post Topic: Maximise with Custom Control Problem
    Posted: 25 October 2007 at 6:24am
I'm using a custom control (a date picker) on a ribbon bar in VB. Occasionally when I maximise my application the date picker locates itself on the title bar rather than in the ribbon group. Is there anything I can do to force it to redraw itself in the right position? It resets itself if I resize the app with the mouse but I can't see how to do this in code.

Dim custControl As CommandBarControlCustom
Set custControl = grp.Add(XtremeCommandBars.XTPControlType.xtpControlCustom, ID_TOOL_APPTS_DTPICKER, "Date Picker", False, False)
custControl.DescriptionText = "Date"
custControl.flags = xtpFlagControlStretched
custControl.Handle = dtpDateView.hWnd
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.297 seconds.