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.


Panels create scrollbars in landscape


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-30-2008, 03:56 PM
Junior Member
 
Join Date: Feb 2008
Posts: 34
Lightbulb Panels create scrollbars in landscape [Solution]

I'm using FormLib for a fullscreen app. I have sliding panels (animated). This means a panel starts outside the form and moves into the form.

First, all works as expected on desktop.

In portrait on device, all works as expected.

In landscape, the exact same code causes scrollbars to appear on the form. As soon as the panel becomes visible outside the screen scrollbnars appear. Then as the panel moves into the form the scrollbars decrease. Finally, as the panel is fully into the form, scrollbars disappear.

Not really a complaint as much as a curiousity. Wish I would have gotten a consistent result. I would've have liked to know that it wasn't going to work in landscape before I coded the whole project.

Last edited by sahoopes : 03-30-2008 at 05:08 PM. Reason: Fix posted
Reply With Quote
  #2 (permalink)  
Old 03-30-2008, 04:25 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,368
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Sounds like in landscape mode Form.AutoScroll is being set to True. Download Erels' new Door library and add it as a Component. Make an object, say obj1, and try this code.

Code:
obj1.New1(false)
obj1.FromControl("Form1")  ' or whatever your form is called
Msgbox(obj1.GetProperty("AutoScroll"))
' if it is in fact True then try setting it to false
obj1.SetProperty("AutoScroll",False)
EDIT :- obj1 should be an "Object" from the library Door library (Beta) - Special library
Reply With Quote
  #3 (permalink)  
Old 03-30-2008, 05:05 PM
Junior Member
 
Join Date: Feb 2008
Posts: 34
Thumbs up

Thanks agraham. I was just looking at that and was going to ask how to do it. I really appreciate your help.
...
Just tested and works like a charm. Here's the simple code for everyone else:

Add Door.dll to your project. Use Add Object to add "Object" and call it obj1.

Code:
obj1.New1(false)
obj1.FromControl("Form1")
...
Make sure form1 is visible first
...
if obj1.GetProperty("AutoScroll") = True then obj1.SetProperty("AutoScroll",False)
I guess you could just skip the test for True and set it to false always:

Code:
obj1.SetProperty("AutoScroll",False)
Thank you agraham and Erel for the fix.
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
Disapearing Panels! ceaser Basic4ppc Wishlist 3 06-05-2008 04:21 AM
Sqlite and Panels jeterry Code Samples & Tips 1 05-14-2008 03:55 AM
Landscape/Portrait... yildi Questions & Help Needed 8 11-20-2007 09:59 AM
More properties for panels RandomCoder Basic4ppc Wishlist 0 07-12-2007 08:48 PM
Landscape Night Clock Alex812 Share Your Creations 4 07-03-2007 02:18 PM


All times are GMT. The time now is 07:01 AM.


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