Print Page | Close Window

Maximise with Custom Control Problem

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=8524
Printed Date: 21 December 2024 at 9:32pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Maximise with Custom Control Problem
Posted By: stevepert
Subject: Maximise with Custom Control Problem
Date 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



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