Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #2722
| From | Carlos Rocha <carlos.rocha@doossier.com.removethis> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: CommandBars and DataWindow |
| Date | 2011-12-19 18:41 +0000 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <jco0i2$cnq$1@speranza.aioe.org> (permalink) |
| References | <58d17b98-10a8-476b-8e5f-9853929ce9ef@i8g2000vbh.googlegroups.com> |
Hi Stefan,
The easiest way is by putting the window (I don't use DataWindows, tho)
inside a Pane, using Codejock DockingPane control.
You can then call oDockingPane:SetCommandBars(oMyCommandBar),and if your
window is created with OwnerAlignment := OA_FULL_SIZE DockingPane takes
care of everything. And as a bonus you are ready to work with the
beautiful and handy DockingPane control and say goodbye to VO SplitWindow.
You'll need a top window (it could be any container window, like
ChildAppWindow, or DialogWindow) where the DockingPane, the CommandBars
and your DataWindow are created.
Snipet:
//------------------------------------------------------
method Init() MyTopWindow
local oDock as CJDockingPane // sub-classed XtremeDockingPane
oCommandBars := MyCommandBars{self} // sub-classed XtremeCommandBars
oMyDataWindow := MyDataWindow{self}
oMyDataWindow:OwnerAlignment := OA_FULL_SIZE
oDock := CJDockingPane{self}
oDock:Options:HideCliente := true
oDock:SetCommandBars(oCommandBars)
// oPaneWindow is the IPane object that will hold your DataWindow
oPaneWindow := oDock:CreatePane(1,0,0,DocTopOf, nil)
oPaneWindow:SetHandle(Long(_cast,oMyDataWindow:Handle()))
return self
//------------------------------------------------------
On 19-12-2011 06:52, Stefan wrote:
> Hi,
> who of you uses the CommandBars of Codejock together with DataWindow?
> For this purpose, the method __ResizeParent of the class __FormFrame
> must be changed so that also the CommandBar is considered. The method
> can not be overwritten because it is strongly typed, and subclassing
> is not possible in this case. What to do?
>
> Stefan
--
Carlos Rocha
---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 111218-1, 18-12-2011
Tested on: 19-12-2011 18:41:26
avast! - copyright (c) 1988-2011 AVAST Software.
http://www.avast.com
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
CommandBars and DataWindow Stefan <info@sanosoft.com> - 2011-12-18 22:52 -0800
Re: CommandBars and DataWindow Carlos Rocha <carlos.rocha@doossier.com.removethis> - 2011-12-19 18:41 +0000
Re: CommandBars and DataWindow "Willie Moore" <williem@wmconsulting.com> - 2011-12-19 13:51 -0600
Re: CommandBars and DataWindow Stefan <info@sanosoft.com> - 2011-12-19 22:39 -0800
csiph-web