Print Page | Close Window

Commandbar in Powerbuilder 10.5

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=4772
Printed Date: 19 June 2025 at 3:24am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Commandbar in Powerbuilder 10.5
Posted By: LLouis
Subject: Commandbar in Powerbuilder 10.5
Date Posted: 09 August 2006 at 10:08pm
I couldn't display the menu using the commandbars in powerbuilder 10.5 application! my scripts is as below:

CommandBars.object.ActiveMenuBar.Controls.Add(2, 0, "&File", -1, False)

CommandBars is the name of the ole object.

 

 




Replies:
Posted By: WaleedSeada
Date Posted: 06 April 2007 at 8:19am
Hello There,
 
I understand that you need to attach the control to the its host.
You need to put that line after/before using commandbar:
CommandBars.AttachToWindow(Handle(Parent Window))
 
Tel Me if you still have problems
Waleed Seada


-------------
:Powerbuilder 10.5
:Codejock suite 11.2.2
=========================
Waleed Seada



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