Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sun Jun 24, 2018 5:58 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Hide an HTML viewer depending on what tab you're on
PostPosted: Mon Nov 26, 2012 6:22 pm 
Offline

Joined: Wed Nov 21, 2012 3:16 pm
Posts: 3
I'm trying to make an app that has a tab panel and each tab has a, HTMLViewer that opens a different page.

I've already determined that I can't have them all visible because they overlap. So my question is, how would I make the program hide the other HTMLViewers when I'm on a tab?

ie:
I'm on tab 1, HTMLViewer1 should be visible but HTMLViewer2 and 3 would be hidden.
I'm on tab 2, HTMLViewer2 should be visible but HTMLViewer1 and 3 would be hidden.
I'm on tab 3, HTMLViewer3 should be visible but HTMLViewer1 and 2 would be hidden.

Thanks in advance


Top
 Profile  
Reply with quote  
 Post subject: Re: Hide an HTML viewer depending on what tab you're on
PostPosted: Mon Nov 26, 2012 11:19 pm 
Offline
User avatar

Joined: Thu Feb 16, 2006 10:04 pm
Posts: 262
I don't use tab panels much, but wow this is terrible, this is really wonky in my test project. Buggy, buggy, buggy. The TabIndex property always reports 0. The only solution I can see in my very brief tests are to switch the build to Cocoa, that works like a charm here. You may want to just redesign and not use the tab panel .....

_________________
Thomas C.
Real Studio Blog
http://bigdaddysurf.com/blog/

https://itunes.apple.com/us/app/maui-dragstrip-2013/id604516033?mt=8
https://itunes.apple.com/us/book/how-to-waterstart/id576214730?mt=11


Top
 Profile  
Reply with quote  
 Post subject: Re: Hide an HTML viewer depending on what tab you're on
PostPosted: Tue Nov 27, 2012 1:29 am 
Offline

Joined: Mon Aug 15, 2011 10:25 pm
Posts: 293
Place the HTMLViewers in the Tab container and they automatically hide and show as needed..

_________________
Real Studio 2012r1.1 | MacBook Pro i5, 10.6.8 | Windows 7


Top
 Profile  
Reply with quote  
 Post subject: Re: Hide an HTML viewer depending on what tab you're on
PostPosted: Tue Nov 27, 2012 12:19 pm 
Offline
User avatar

Joined: Sun Aug 05, 2007 10:46 am
Posts: 4931
Location: San Diego, CA
shaosean wrote:
Place the HTMLViewers in the Tab container and they automatically hide and show as needed..


not unless they fixed a bug related to HTMLVIEWER.... it doesn't stay properly attached to the "parent"

What I do.. it instead of one HTMLViewer on each tab... the project has ONE and only one... and it is NOT attached to the tabpanel.
but when the tabpanel changes, I position the HTMLVIEWER so it LOOKS like it is attached.. not perfect... but it does work

_________________
Dave Sisemore
iMac I7[2012], OSX Mountain Lion 10.8.3 RB2012r2.1
Note : I am not interested in any solutions that involve custom Plug-ins of any kind


Top
 Profile  
Reply with quote  
 Post subject: Re: Hide an HTML viewer depending on what tab you're on
PostPosted: Tue Nov 27, 2012 1:37 pm 
Offline

Joined: Mon Aug 15, 2011 10:25 pm
Posts: 293
I make heavy use of HTMLViewers and PagePanels and have no issues with them.. I do have the HTMLViewers in a ContainerControl, so that may make a difference in usage, but I did make a sample app with a TabPanel and HTMLViewers nested and it worked fine..

RealStudio 2012r1.2
Cocoa builds

_________________
Real Studio 2012r1.1 | MacBook Pro i5, 10.6.8 | Windows 7


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group