Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » TabCtrl » Cross-platform TabBar issue (revision 3063)
Cross-platform TabBar issue (revision 3063) [message #30794] Sun, 23 January 2011 12:48 Go to previous message
Sender Ghost is currently offline  Sender Ghost
Messages: 301
Registered: November 2008
Senior Member
I think, TabBar could be more cross-platform. Also I added new lines to the end of files:
diff -ruN uppsrc/TabBar/TabBar.cpp uppsrc-fixed/TabBar/TabBar.cpp
--- uppsrc/TabBar/TabBar.cpp	2011-01-23 16:24:59.000000000 +0600
+++ uppsrc-fixed/TabBar/TabBar.cpp	2011-01-23 16:26:46.000000000 +0600
@@ -2447,13 +2447,13 @@
 CH_STYLE(TabBar, Style, StyleDefault)
 {
 	Assign(TabCtrl::StyleDefault());
-	#ifdef PLATFORM_LINUX
-	DefaultCrosses();
-	#else
+	#if defined(PLATFORM_WIN32)/* || defined(PLATFORM_WIN64)*/
 	if(IsWinVista())
 		Variant2Crosses();
 	else
 		DefaultCrosses();
+	#else
+	DefaultCrosses();
 	#endif
 	DefaultGroupSeparators();
 }
diff -ruN uppsrc/TabBar/TabBar.t uppsrc-fixed/TabBar/TabBar.t
--- uppsrc/TabBar/TabBar.t	2011-01-23 16:24:18.000000000 +0600
+++ uppsrc-fixed/TabBar/TabBar.t	2011-01-23 16:26:31.000000000 +0600
@@ -25,4 +25,4 @@
 caES("Tots")

 esES("Todos")

 itIT("Tutti")

-roRO("Toate")
\ No newline at end of file
+roRO("Toate")

diff -ruN uppsrc/TabBar/TabBarCtrl.cpp uppsrc-fixed/TabBar/TabBarCtrl.cpp
--- uppsrc/TabBar/TabBarCtrl.cpp	2011-01-23 16:25:18.000000000 +0600
+++ uppsrc-fixed/TabBar/TabBarCtrl.cpp	2011-01-23 16:27:00.000000000 +0600
@@ -96,4 +96,4 @@
 	SetCtrl(GetData());
 }
 
-END_UPP_NAMESPACE
\ No newline at end of file
+END_UPP_NAMESPACE
diff -ruN uppsrc/TabBar/TabBarCtrl.h uppsrc-fixed/TabBar/TabBarCtrl.h
--- uppsrc/TabBar/TabBarCtrl.h	2011-01-23 16:25:48.000000000 +0600
+++ uppsrc-fixed/TabBar/TabBarCtrl.h	2011-01-23 16:27:10.000000000 +0600
@@ -27,4 +27,4 @@
 	void 	SetCtrl(Ctrl &ctrl);
 protected:
 	virtual void CursorChanged();
-};
\ No newline at end of file
+};


To be sure, there is no IsWinVista function for FreeBSD.

[Updated on: Sun, 23 January 2011 13:00]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: TabBar code fixes patch (SVN r2960)
Next Topic: TabBar crash fix (very crude one, needs author to rewrite it)
Goto Forum:
  


Current Time: Sun Apr 28 22:14:31 CEST 2024

Total time taken to generate the page: 3.05953 seconds