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.

Tab control behaves differently on device than desktop

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-18-2008, 02:22 PM
Newbie
 
Join Date: Jun 2008
Posts: 4
Default Tab control behaves differently on device than desktop

Hi,

I have a program which uses a tab control. On the desktop the tabs display on the top of the control but on the device they are on the bottom.... Anyone any ideas?

Cheers...


Mike
Reply With Quote
  #2 (permalink)  
Old 06-18-2008, 02:50 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

You can use the Door library to change the alignment on the desktop.
Code:
'obj is an Object.
Sub Globals
    
'Declare the global variables here.

End Sub

Sub App_Start
    Form1.Show
    
tab.New1("form1",30,30,100,100)
    ChangeAlignment(
"tab")
End Sub

Sub ChangeAlignment (TabName)
    
If CPPC Then Return
    obj.New1(
false)
    obj.FromControl(Control(TabName,TabControl).ControlRef)
    obj.SetProperty(
"Alignment","Bottom")
End Sub
Reply With Quote
  #3 (permalink)  
Old 06-24-2008, 10:46 AM
Newbie
 
Join Date: Jun 2008
Posts: 4
Default

That's excellent, Thanks for your help! :-)
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
Web browser for desktop and device agraham Additional Libraries 73 03-11-2012 03:44 PM
Using rapi from desktop to copy file from device to desktop sunnyboyj Questions (Windows Mobile) 19 10-27-2010 01:08 PM
Device or Desktop DaveW Questions (Windows Mobile) 2 11-07-2008 12:04 PM
Application behaves differently in Device mozaharul Questions (Windows Mobile) 4 08-07-2008 04:48 AM
Application behaves differently in PPC mozaharul Questions (Windows Mobile) 3 07-31-2008 03:22 AM


All times are GMT. The time now is 09:53 AM.


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