Print Page | Close Window

how to paint mdiclient

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=17614
Printed Date: 23 November 2024 at 3:07pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: how to paint mdiclient
Posted By: ws0411101
Subject: how to paint mdiclient
Date Posted: 29 November 2010 at 4:25am
when i use extremeCommandBars, i should use :

        obj_extremeCommandBars.SetMDIClient(myMdiClient.Handle.ToInt32)

to bound the MdiClient object handle to the commandBars. commandBars get the handle of MdiClient,
but how can i paint some text on  the  MdiClient.





Replies:
Posted By: Oleg
Date Posted: 29 November 2010 at 10:00am
Hi,

Not sure if it works for .NET but please try

CommandBars.Workspace.AutoTheme = False;


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


Posted By: ws0411101
Date Posted: 01 December 2010 at 5:26am
olegthank you!  but your ways didn't work, the text can't paint on the MdiCilent,
it seems that after i use this code:

   CommandBars.SetMDIClient(myMdiClient.Handle.ToInt32)
 
to set the MdiClient handle to CommandBars, the MdiClient  can't respond any event.
i define two sub to paint text, and binding them to event "Paint" and "Resize", like  this:

        AddHandler myMdiClient.Paint, AddressOf Mdi_OnPaint
        AddHandler myMdiClient.Resize, AddressOf Mdi_OnResize

but when i debug the program, the two sub doesn't execute.
do you have some other method to solve this problem?? thank you!






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