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
  #1 (permalink)  
Old 05-11-2009, 07:56 PM
ExcludeReality's Avatar
Senior Member
 
Join Date: Nov 2008
Location: Greenville, South Carolina
Posts: 166
Default Control style in Basic4ppc

I use Basic4ppc mostly to create desktop applications, and there is something that's always been annoying me.
All the controls on desktop have the visual style of Windows 2000 (Or some other early windows-version).

When you run an application on a phone the control style changes to the Windows-mobile style.
Why doesen't the same thing happend with Vista?
__________________
Codito, ergo sum
"I code, therefore I am"
Reply With Quote
  #2 (permalink)  
Old 05-11-2009, 09:48 PM
Knows the basics
 
Join Date: May 2008
Posts: 53
Default

You need to create a .manifest file to get the visual style of Windows Xp Controls.

Manifest Files Reference

Windows XP Manifest File Maker
Reply With Quote
  #3 (permalink)  
Old 05-11-2009, 10:31 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Quote:
Originally Posted by ExcludeReality View Post
I use Basic4ppc mostly to create desktop applications, and there is something that's always been annoying me.
All the controls on desktop have the visual style of Windows 2000 (Or some other early windows-version).

When you run an application on a phone the control style changes to the Windows-mobile style.
Why doesen't the same thing happend with Vista?
I believe your apps use native B4p Form...
Try to use a FormEx control, from Agraham's dll, and you'll seem the diference..
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #4 (permalink)  
Old 05-12-2009, 01:38 PM
ExcludeReality's Avatar
Senior Member
 
Join Date: Nov 2008
Location: Greenville, South Carolina
Posts: 166
Default

None of the suggestions worked.
The manifest thing didn't do anything at all.
Cableguy, I do not fully understand how to add a control from the FormExDesktop library.
Don't you mean ControlExDesktop?
__________________
Codito, ergo sum
"I code, therefore I am"
Reply With Quote
  #5 (permalink)  
Old 05-14-2009, 01:36 AM
Knows the basics
 
Join Date: May 2008
Posts: 53
Default

I think that you have not understand it well.

Try this utility to create the manifest file easier.


XP Look 1.0

You have to select your exe file and the utility will create the manifest file.
Reply With Quote
  #6 (permalink)  
Old 05-14-2009, 06:05 AM
ExcludeReality's Avatar
Senior Member
 
Join Date: Nov 2008
Location: Greenville, South Carolina
Posts: 166
Default

First of all I'm using Vista. Consequently I fail to see why I should make an XP manifest file.
And also, I wanted an answer from someone who could tell me why Basic4ppc doesn't adjust the style of basic controls (Buttons, Combo boxes, Check boxes...) depending on how thoose controls should look like!
__________________
Codito, ergo sum
"I code, therefore I am"
Reply With Quote
  #7 (permalink)  
Old 05-14-2009, 09:10 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 ExcludeReality View Post
First of all I'm using Vista. Consequently I fail to see why I should make an XP manifest file.
Getting shirty when people are trying to help is not a good idea.

You DO need a manifest file, there are other options if you have Visual Studio or the SDK but manifests are easiest.

Most controls adapt automatically but you also need to use the Door library to set the FlatStyle property of Buttons, CheckBoxes And RadioButtons to "System" to get them drawn according to a theme.
Attached Files
File Type: zip manifests.zip (34.9 KB, 56 views)
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.

Last edited by agraham : 05-14-2009 at 10:05 AM.
Reply With Quote
  #8 (permalink)  
Old 05-14-2009, 01:45 PM
ExcludeReality's Avatar
Senior Member
 
Join Date: Nov 2008
Location: Greenville, South Carolina
Posts: 166
Default

It works! Thank you so much Agraham and Pachuquin!
I didn't even think it was possible.

And if i was disrespectful
__________________
Codito, ergo sum
"I code, therefore I am"
Reply With Quote
  #9 (permalink)  
Old 05-14-2009, 02:53 PM
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

A bit of research later and using the Door library I got it to work without a manifest file. This works on .NET 2.0 and later.

EDIT:- Note that on .NET 2.0 Buttons, CheckBoxes and RadioButtons no longer need their FlatStyle properties altered to support visual styles. I have amended the attachment accordingly
Attached Files
File Type: sbp testapp.sbp (1.1 KB, 84 views)
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.

Last edited by agraham : 05-14-2009 at 03:22 PM.
Reply With Quote
  #10 (permalink)  
Old 05-14-2009, 06:06 PM
taximania's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 592
Awards Showcase
Beta Tester 
Total Awards: 1
Default

For desktop applications

You impress me again AGraham
__________________
.
.
.
Don't ask, I'm fine, honest. !!
.
.
.
Just a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80


http://www.taximania.co.uk
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 08:14 AM.


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