Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Control style in Basic4ppc

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 05-14-2009, 11:45 PM
Basic4ppc Veteran
 
Join Date: May 2008
Location: Newcastle Upon Tyne - England
Posts: 271
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by agraham View Post
This works on .NET 2.0 and later.
...and these four lines of code are burned into all of my desktop applications.

Will it throw an exception if this is run on a Windows 2000 platform?

Interestingly, when run in the IDE, the IDE itself adopts the Windows XP style.
Attached Images
File Type: jpg IDEStyle.JPG (43.6 KB, 47 views)
Reply With Quote
  #12 (permalink)  
Old 05-15-2009, 08:06 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by Zenerdiode View Post
Will it throw an exception if this is run on a Windows 2000 platform?
I don''t know, probably not as it is a .NET Framework facility which I would hope would find out if the the OS supported visual styles and fail gracefully if not. You could always ErrorLabel it to make sure.

Code:
Sub SetAppStyle
  ErrorLabel(StyleErr)
  obj1.New1(
False)
  obj1.CreateNew(
"System.Windows.Forms.Application" & obj1.System_Windows_Forms)
  obj1.RunMethod(
"EnableVisualStyles")
  obj1.SetProperty(
"VisualStyleState""ClientAndNonClientAreasEnabled")
StyleErr:
End Sub
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Old style DLLs Jess Questions (Windows Mobile) 3 06-18-2008 03:37 PM
iPhone Style gadgets J12345T Basic4ppc Wishlist 5 06-18-2008 02:48 PM
Is there any thing like Visual Basic "Tabbed dialog control" in Basic4ppc? mozaharul Questions (Windows Mobile) 6 03-23-2008 11:07 AM
Can I use Basic4PPC to control my Mogul from the Desktop? obrienj Questions (Windows Mobile) 2 01-10-2008 12:58 PM
Change text style Erel Code Samples & Tips 2 05-01-2007 01:59 PM


All times are GMT. The time now is 04:22 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0