Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed 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, 03: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, 03:50 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,186
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, 11: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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Web browser for desktop and device agraham Additional Libraries 49 11-23-2008 06:12 PM
Device or Desktop DaveW Questions & Help Needed 2 11-07-2008 01:04 PM
Application behaves differently in Device mozaharul Questions & Help Needed 4 08-07-2008 05:48 AM
Application behaves differently in PPC mozaharul Questions & Help Needed 3 07-31-2008 04:22 AM
Using rapi from desktop to copy file from device to desktop sunnyboyj Questions & Help Needed 9 02-08-2008 12:40 PM


All times are GMT. The time now is 01:31 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0