[SOLVED] PROBLEM PLEASE HELP! |
Post Reply |
Author | |
shipwreck
Senior Member Joined: 18 April 2008 Location: United States Status: Offline Points: 308 |
Post Options
Thanks(0)
Posted: 12 May 2010 at 11:26am |
Hello everyone! Since everyone ignored my previous post, I will include that issue in this one as well. My first issue: Making an MDI based web browser with the child forms as the browser tabs. With one browser tab, I can have the commandstatechange disable and enable the back, forward, etc. buttons in the toolbar that is actually created on the MDI parent form itself. However, with multiple tabs open, the commandstatechange is only for the previous tab. I need it to sync to the active form or child AKA browser tab. Please help me out with this! My Second Issue: In a previous post, I mentioned that I wanted to put the Go, Stop, and Refresh button all in one single button using the commandbars actions function. I can implement the Refresh and stop actions fairly well but I am unable to implement the go button. It will function nearly the same as the refresh action, but will only be active as the current action if the text in my address combobox(Also on MDI Parent) is different from the active window's webbrowser.locationURL. Please fellow developers, this is a serious issue in my development. They have completely halted my project. :[ Thanks and regards in advance!~
|
|
Product: Xtreme Suite Pro (Active-X), Version 15.3.1
Platform: Windows 7 Ultimate SP1 (64Bit) & Windows XP Mode SP3 (32Bit) Language: Visual Basic 6.0 SP6 |
|
shipwreck
Senior Member Joined: 18 April 2008 Location: United States Status: Offline Points: 308 |
Post Options
Thanks(0)
|
C'mon folks! Any ideas!?
|
|
Product: Xtreme Suite Pro (Active-X), Version 15.3.1
Platform: Windows 7 Ultimate SP1 (64Bit) & Windows XP Mode SP3 (32Bit) Language: Visual Basic 6.0 SP6 |
|
Baldur
Senior Member Joined: 22 November 2006 Location: Germany Status: Offline Points: 244 |
Post Options
Thanks(0)
|
I think, the simplest way is, to define the whole commandbar in each mdi-form.
Than, on each mdi-activate/deactivate of mdi-form, you have to reassign the corresponding commandbar to the main-form by commandbar.AttachToWindow-Method.
The second way (i use) is, define the whole commandbar in the main-window and on each mdi-activate/deactivate store a reference to the current mdi-form in the main-form.
Than, in the mainform, call on the commandbar_action-event a corresponding mdi-form-subroutine to handle the associated events.
Also, you can store in the mdi-form a reference to the main-commandbar, to set each action-status or use the commandbar_update-event to set the actions to the actual mdi-form by a public mdi-form-subroutine.
|
|
shipwreck
Senior Member Joined: 18 April 2008 Location: United States Status: Offline Points: 308 |
Post Options
Thanks(0)
|
That is definitely what I'm looking for Baldur.
But what exact code would you use to implement this? |
|
Product: Xtreme Suite Pro (Active-X), Version 15.3.1
Platform: Windows 7 Ultimate SP1 (64Bit) & Windows XP Mode SP3 (32Bit) Language: Visual Basic 6.0 SP6 |
|
shipwreck
Senior Member Joined: 18 April 2008 Location: United States Status: Offline Points: 308 |
Post Options
Thanks(0)
|
Seriously Baldur? I understand what your leaning towards but I got no clue how to implement it. Maybe a sample or a code example?
|
|
Product: Xtreme Suite Pro (Active-X), Version 15.3.1
Platform: Windows 7 Ultimate SP1 (64Bit) & Windows XP Mode SP3 (32Bit) Language: Visual Basic 6.0 SP6 |
|
JantjeKeizer
Groupie Joined: 12 February 2008 Status: Offline Points: 70 |
Post Options
Thanks(0)
|
This is a quick demo (not everything is logical here, but it shows the idea) I defined an interface which every customform can implement and catch/process messages 20100516_190647_ICommandbar.rar |
|
shipwreck
Senior Member Joined: 18 April 2008 Location: United States Status: Offline Points: 308 |
Post Options
Thanks(0)
|
Hey JantjeKeizer,
Thanks for the sample, I'm downloading it now. I'll be sure to let you know if it's what I'm looking for. |
|
Product: Xtreme Suite Pro (Active-X), Version 15.3.1
Platform: Windows 7 Ultimate SP1 (64Bit) & Windows XP Mode SP3 (32Bit) Language: Visual Basic 6.0 SP6 |
|
shipwreck
Senior Member Joined: 18 April 2008 Location: United States Status: Offline Points: 308 |
Post Options
Thanks(0)
|
Okay, I reviewed the project and so far it's definitely somewhat close to what I'm trying to achieve. But, I'm having trouble adding anything to the ribbon, such as the quick access controls. In which I'm intended to use as the "Browser" bar.
Have any ideas? |
|
Product: Xtreme Suite Pro (Active-X), Version 15.3.1
Platform: Windows 7 Ultimate SP1 (64Bit) & Windows XP Mode SP3 (32Bit) Language: Visual Basic 6.0 SP6 |
|
shipwreck
Senior Member Joined: 18 April 2008 Location: United States Status: Offline Points: 308 |
Post Options
Thanks(0)
|
Okay, well I have tried to tinker with the code you have given me and when it seems it might work my VB seems to crash. :[
Maybe if I explain a little better, you all may be able to help even more. Currently, as mentioned earlier, this is an MDI based project, and by using the tab workspace along with MDI child windows, I'm able to implement a tabbed web browser. Now, I already have the function to where the back, forward, and etc. buttons enable and disable themselves depending on the web browser's current state. However, the problem lies here: When switching between tabs, the state of the controls (Back, Forward, etc.) do not apply to the active tab and/or child form. I need a fix for this. That help clarify what I'm looking for a little bit? :p |
|
Product: Xtreme Suite Pro (Active-X), Version 15.3.1
Platform: Windows 7 Ultimate SP1 (64Bit) & Windows XP Mode SP3 (32Bit) Language: Visual Basic 6.0 SP6 |
|
JantjeKeizer
Groupie Joined: 12 February 2008 Status: Offline Points: 70 |
Post Options
Thanks(0)
|
Just use the update event to update with a local variable
20100526_061214_ICommandbar.rar |
|
shipwreck
Senior Member Joined: 18 April 2008 Location: United States Status: Offline Points: 308 |
Post Options
Thanks(0)
|
Okay, now I get what your saying. I'm downloading the test project now. I'l let you know the results.
|
|
Product: Xtreme Suite Pro (Active-X), Version 15.3.1
Platform: Windows 7 Ultimate SP1 (64Bit) & Windows XP Mode SP3 (32Bit) Language: Visual Basic 6.0 SP6 |
|
shipwreck
Senior Member Joined: 18 April 2008 Location: United States Status: Offline Points: 308 |
Post Options
Thanks(0)
|
Okay, I reviewed the sample project and have come to terms that this may definitely what I'm looking for and trying to achieve.
So, I'm going to try and implement this into my project to see how things work out. If I'm successful, I will definitely include you in the credits for development of my upcoming product. Thanks for all the help! |
|
Product: Xtreme Suite Pro (Active-X), Version 15.3.1
Platform: Windows 7 Ultimate SP1 (64Bit) & Windows XP Mode SP3 (32Bit) Language: Visual Basic 6.0 SP6 |
|
shipwreck
Senior Member Joined: 18 April 2008 Location: United States Status: Offline Points: 308 |
Post Options
Thanks(0)
|
Okay folks, I didn't mean to reopen this but I'm at a standpoint and stuck. :[
The functions work well friend, but I absolutely can not hide the MDI buttons in the ribbonbar! the code I normal use is: CurBar.SetFlags xtpFlagHideMDIButtons, 0 Unfortunately, this has absolutely no effect in the sample project! Anyway to fix this JantjeKeizer ? Any help will be appreciated!! |
|
Product: Xtreme Suite Pro (Active-X), Version 15.3.1
Platform: Windows 7 Ultimate SP1 (64Bit) & Windows XP Mode SP3 (32Bit) Language: Visual Basic 6.0 SP6 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
I tried same with our MDI ribbon samlpe and it works. Are you sure CurBar is Ribbonbar ? |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
shipwreck
Senior Member Joined: 18 April 2008 Location: United States Status: Offline Points: 308 |
Post Options
Thanks(0)
|
Oleg, I'm talking about the sample project that JantjeKeizer posted above to help me with another issue.
The same that he/she provided above solved my previous issue, but I'm unable to hide the mdisysbutton using the set flags option that I normally use. Oleg, if you can, download the project above and see if you can have any luck at it please, this problem puts my whole project on hold. |
|
Product: Xtreme Suite Pro (Active-X), Version 15.3.1
Platform: Windows 7 Ultimate SP1 (64Bit) & Windows XP Mode SP3 (32Bit) Language: Visual Basic 6.0 SP6 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
In this project first comment line Set CurBar = .AddRibbonBar("Main") it actually do nothing and add .SetFlags xtpFlagHideMDIButtons, 0 inside "With" block. ... only notice that your users can press Alt+'-' and restore/minimize child window. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
shipwreck
Senior Member Joined: 18 April 2008 Location: United States Status: Offline Points: 308 |
Post Options
Thanks(0)
|
Hey Oleg!
This definitely helped! I never thought to insert the code in that fashion. Thanks! And that other method of minimizing the child windows, is there a way to disable that? |
|
Product: Xtreme Suite Pro (Active-X), Version 15.3.1
Platform: Windows 7 Ultimate SP1 (64Bit) & Windows XP Mode SP3 (32Bit) Language: Visual Basic 6.0 SP6 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Just set controlBox property of frmClient to False.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
shipwreck
Senior Member Joined: 18 April 2008 Location: United States Status: Offline Points: 308 |
Post Options
Thanks(0)
|
Worked Great!
Thanks for the tip Oleg! :] |
|
Product: Xtreme Suite Pro (Active-X), Version 15.3.1
Platform: Windows 7 Ultimate SP1 (64Bit) & Windows XP Mode SP3 (32Bit) Language: Visual Basic 6.0 SP6 |
|
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 |