Custom Control "dead" (VFP / Visual FoxPro) |
Post Reply |
Author | |
DDTech
Groupie Joined: 10 October 2007 Status: Offline Points: 23 |
Post Options
Thanks(0)
Posted: 10 October 2007 at 1:38pm |
Hi,
I know VFP is not actively supported but I find XTreeeeeeme CommandBars being a great product and I would really like to make use of it. I am comming from ActiveBar - so I have managed a LOT of problems already ;-)
So currently I am playing with Your Commandbars (tried DockingPanes this morning and had about the same problem) and try to show a form with VFP-Controls as a custom-Control. I found the "Dynamic Popup Sample" that does something like that.
so in the InitCommandsPopup i now have:
...
if CommandBar.Title = "FORM"
CommandBar.Controls.DeleteAll
do form MyForm.scx noShow
m.MyForm.TitleBar = 0
m.MyForm.BorderStyle = 0
loControl = CommandBar.Controls.Add(7, 0, "Form") loControl.Handle = m.MyForm.hWnd m.MyForm.Visible = .T.
endif
Works wonderful, but the form is dead, i.e. I can't make use of the controls. With the DockingPane it sometimes worked, sometimes not
Maybe You have an Idea or a trick.
Another Idea I used with ActiveBar was to cancel the actual population of the popup and position a form instead of a popup. But I found no way to cancel the appearance from within InitCommandsPopup()
(ActiveBar did have a BandOpen()-Event that was fired when clicking on the down-button. this event also provided a Cancel-parameter.
Thanks in advance
Regards from Berlin
F.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |