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

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

Code Samples & Tips Share your recent discoveries and ideas with other users.

PopUp Form Module

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-29-2010, 09:42 PM
Junior Member
 
Join Date: Jul 2007
Location: Oakville, Ontario, Canada
Posts: 45
Default PopUp Form Module

Application shows the use of a module I wrote which helps me add data entry forms to any project.

Flexform.bas is a module you can attach to your project to quickly and easily implement pop up data entry forms. It require ControlsEx.dll and Formlib.dll to support the form's scrolbar and field adjustments.

The user need only provide delimited strings of field names and field types. A lot more functionality is available such as field defaults, decimals positions and data verification. Some of these require helper routines which you can find in the module UT.BAS. This demo should give you a good idea of how to use all its features.

Flexform has a public structure you fill in before calling its Initialize routine. Below is the basics:

FlexForm.psFF.Fields="Symbol|Company|Units|Price|. ..|Remarks"
FlexForm.psFF.Types ="Text|Text|Numeric|Numeric|...|Memo"
FlexForm.Form_Initialize
FlexForm.Form1.Show

The FlexForm.Bas ff_Commands routine makes a call back to the main module's named sub whenever a button is clicked. Note that it does provide 2 parameters but I also populate an event(psFF.Event) and data property(psFF.DataOut) should you wish to do away with this design. In the program where this was originally used, a context menu on the original listviews(here replaced with Tables) called this same sub which did a lot more than what you see here.

On the device the display is padded on the bottom to allow room for the SIP.
Attached Files
File Type: zip FlexForm.zip (7.8 KB, 129 views)
Reply With Quote
  #2 (permalink)  
Old 04-30-2010, 01:42 AM
Knows the basics
 
Join Date: Apr 2007
Posts: 56
Default

Thanks for the great code!
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
Properties module - useful module for working with properties / ini files Erel Code Samples & Tips 2 10-13-2011 09:02 PM
Sender Parent Form On A Module pdabasic Questions (Windows Mobile) 3 04-11-2010 06:32 PM
Suppress SMS Popup? CryoGenID Questions (Windows Mobile) 1 07-28-2009 08:35 AM
PopUp Notifications library. taximania Additional Libraries 18 02-28-2009 07:26 PM
Storage of module klaus Beta Versions 6 08-31-2008 02:36 PM


All times are GMT. The time now is 10:41 PM.


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