Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Wed Oct 23, 2019 11:27 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: custom tab panel
PostPosted: Sat Oct 08, 2011 12:56 pm 
Offline
User avatar

Joined: Sat Jun 04, 2011 8:29 am
Posts: 387
I need a tab panel that lets me change the color of the main panel and preferably the tabs at top.

The Custom Tab Panel was recommended... from Alex Restrespro..... he has been really busy so has not been able to help yet.

When i open the custom tab panel sample project...it says that 4 controls are deprecated... two are edit text fields... I click all and resolve... but then running the project yields an error

Code, facingsDemo.northTabs.PanelPageAdded, line 8, This method requires fewer parameters than were passed, aTabsCC = new tabsCCDemo(NORTH)

And since it's only passing one parameter... doesn't make sense... perhaps the code needs updating for 2011 release 3.

My questions:
- has anyone else encountered this or know how to fix it?

- if not is there another tab control out there that can handle coloring or additional capabilities than the RB built-in one?

_________________
Currently using:
Windows XP Pro SP3
Real Studio 2011 Release 4.3 Enterprise
and
Mac OS 10.7.4
Real Studio 2011 Release 4.3 Enterprise
(finally also compiled on Mac)


Top
 Profile  
Reply with quote  
 Post subject: Re: custom tab panel
PostPosted: Sat Oct 08, 2011 3:08 pm 
Offline
User avatar

Joined: Fri Nov 10, 2006 4:10 pm
Posts: 1855
Location: Michigan, USA
The necessary changes you're describing aren't too bad.

You'll want to look for two issues to resolve from the deprecated Edit Field:

1. Find any classes that have EditField as their super and change it to TextField.

2. Search for EditField within the project and check for type casting; e.g. EditField(MyVariable).Text. Change EditField to TextField.

I'm assuming that, since we're talking about tabs, they're never multiline; if they are, you'd want to use TextArea.

Hope this helps. :)

_________________
Windows 8 x64
Windows XP Pro SP3
Ubuntu 11.04 via Virtual Box
RS Enterprise 2012r1.1

Programming Tutorials & Free Projects: http://www.JasonTheAdams.com
"Christianity has not been tried and found wanting; it has been found difficult and not tried." - G.K. Chesterton


Top
 Profile  
Reply with quote  
 Post subject: Re: custom tab panel
PostPosted: Mon Oct 10, 2011 9:57 am 
Offline
User avatar

Joined: Sat Jun 04, 2011 8:29 am
Posts: 387
Thanks... this fixed the deprecated EditField......

but still have the tabs specific error

This method requires fewer parameters than were passed

customTabs = new tabsCCDemo(NORTH)

Something wrong with the way that's instantiated???

_________________
Currently using:
Windows XP Pro SP3
Real Studio 2011 Release 4.3 Enterprise
and
Mac OS 10.7.4
Real Studio 2011 Release 4.3 Enterprise
(finally also compiled on Mac)


Top
 Profile  
Reply with quote  
 Post subject: Re: custom tab panel
PostPosted: Mon Oct 10, 2011 1:16 pm 
Offline
User avatar

Joined: Fri Nov 10, 2006 4:10 pm
Posts: 1855
Location: Michigan, USA
What's "NORTH"?

What available constructors are available to the taabsCCDemo object?

_________________
Windows 8 x64
Windows XP Pro SP3
Ubuntu 11.04 via Virtual Box
RS Enterprise 2012r1.1

Programming Tutorials & Free Projects: http://www.JasonTheAdams.com
"Christianity has not been tried and found wanting; it has been found difficult and not tried." - G.K. Chesterton


Top
 Profile  
Reply with quote  
 Post subject: Re: custom tab panel
PostPosted: Tue Oct 11, 2011 10:54 am 
Offline
User avatar

Joined: Sat Jun 04, 2011 8:29 am
Posts: 387
Sorry ishould have just waited for Alex but im learning RB and thought it a good test if i could fix those issues...

NORTH was a constant...

Anyway Alex sent me a new updated project that fixed all the problems...so I think Im all set onthis one....

Thanks for trying to help...i appreciate it.

_________________
Currently using:
Windows XP Pro SP3
Real Studio 2011 Release 4.3 Enterprise
and
Mac OS 10.7.4
Real Studio 2011 Release 4.3 Enterprise
(finally also compiled on Mac)


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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group