Go Back   Technology Questions > Hardware Questions > Mobile Computers > Tablet PC > Tablet PC Software > Windows XP Tablet PC Newsgroup

Windows XP Tablet PC Newsgroup Join the discussions in the Microsoft Windows XP Tablet PC Newsgroup

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 06-21-2004, 03:05 AM
Registered User
 
Join Date: Jun 2004
Posts: 4
mmalhotra is on a distinguished road
Increase Panel Height

Hi All
I am new to tablet pc development. My working enviorment is Windows 2003 with Tablet PC SDK 1.5 installed and C#. I am designing a control for tablet pc. I am using a panel for pen Input. Now when user is writing (Using Pen) and is near the end of panel I want to increase panel's height so that user can have more area to write on.
Please provide Suggestions.
Thanx in Advance
munish
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 06-21-2004, 03:05 AM
Xploder HD Movie Player for PS3. Manage, convert and transfer media files between the PC and PS3.
  #2 (permalink)  
Old 06-22-2004, 06:50 AM
Giuseppe Pellegrino
Tablet PC Guest
 
Posts: n/a
Re: Increase Panel Height

Having two available lines for inking would help?
TABLET INPUT PANEL\OPTIONS

"mmalhotra" <mmalhotra.187j4g@no-mx.forums.yourdomain.com.au> wrote in
message news:mmalhotra.187j4g@no-mx.forums.yourdomain.com.au...
>
> Hi All
> I am new to tablet pc development. My working enviorment is Windows
> 2003 with Tablet PC SDK 1.5 installed and C#. I am designing a control
> for tablet pc. I am using a panel for pen Input. Now when user is
> writing (Using Pen) and is near the end of panel I want to increase
> panel's height so that user can have more area to write on.
> Please provide Suggestions.
> Thanx in Advance
> munish
>
>
> --
> mmalhotra
> ------------------------------------------------------------------------
> mmalhotra's Profile: http://www.tabletquestions.com/member.php?userid=706
> View this thread: http://www.tabletquestions.com/showthread.php?t=2063
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 07-28-2004, 04:56 AM
Registered User
 
Join Date: Jun 2004
Posts: 4
mmalhotra is on a distinguished road
Thank you for the reply and taking interest in my problem.
The solution your are suggesting is logically correct but the issue arises at some other point.
Let me explain you ...
I have implemented 1 sample which recalculates the height of the ink picture control according to the strokes made by the user. It checks if the stroke is around the bottom of the control then its size is increased. All works fine..but if the user hapazardly writes some strokes vertically without lifting the pen then the stroke is not recognized untill the pen is lifted from the tablet pc, i.e. when the user is writing hapazardly after 1-2 strokes the ink of the following strokes does not appear.
This is the code which I wrote :- just copy and paste the code written below and set the reference of Micosoft.Ink

and then run it, then try to write vertical lines with the pen or mouse.
----------------------------------------------------------------------------------------------------------------------------
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace AutoGrow
{
/// <summary>
/// Summary description for Form1.
/// </summary>
public class frmAutoGrow : System.Windows.Forms.Form
{
private Microsoft.Ink.InkPicture inkPic;
private int marginHeight = 80;
private int intIncreament = 100;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;

public frmAutoGrow()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();

//
// TODO: Add any constructor code after InitializeComponent call
//
}

/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}

#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.inkPic = new Microsoft.Ink.InkPicture();
this.SuspendLayout();
//
// inkPic
//
this.inkPic.BackColor = System.Drawing.Color.White;
this.inkPic.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.inkPic.Location = new System.Drawing.Point(0, 0);
this.inkPic.MarginX = -2147483648;
this.inkPic.MarginY = -2147483648;
this.inkPic.Name = "inkPic";
this.inkPic.Size = new System.Drawing.Size(448, 168);
this.inkPic.TabIndex = 0;
this.inkPic.MouseMove += new System.Windows.Forms.MouseEventHandler(this.inkPic _MouseMove);
//
// frmAutoGrow
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.AutoScroll = true;
this.ClientSize = new System.Drawing.Size(456, 349);
this.Controls.Add(this.inkPic);
this.Name = "frmAutoGrow";
this.Text = "Test AutoGrow";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.Resize += new System.EventHandler(this.frmAutoGrow_Resize);
this.ResumeLayout(false);

}
#endregion

/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.Run(new frmAutoGrow());
}

private void frmAutoGrow_Resize(object sender, System.EventArgs e)
{
inkPic.Width = Width - 20;
}

private void inkPic_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e)
{
if(inkPic.CollectingInk && inkPic.Location.Y + e.Y > inkPic.Bottom - marginHeight)
{
inkPic.Size += new Size(0,intIncreament);
Invalidate(true);
}
}
}
}

Hope you can help me...its really urgent for me.
Best Regards,
Munish
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 07-28-2004, 02:26 PM
Chris H.
Tablet PC Guest
 
Posts: n/a
Re: Increase Panel Height

Perhaps you meant to post this information to the
microsoft.public.windows.tabletpc.developer newsgroup?
--
Chris H.
Microsoft Windows MVP/Tablet PC
Tablet Creations - http://nicecreations.us/
Associate Expert
Expert Zone - www.microsoft.com/windowsxp/expertzone


"mmalhotra" <mmalhotra.1a3ztm@no-mx.forums.yourdomain.com.au> wrote in
message news:mmalhotra.1a3ztm@no-mx.forums.yourdomain.com.au...
>
> Thank you for the reply and taking interest in my problem.
> The solution your are suggesting is logically correct but the issue
> arises at some other point.
> Let me explain you ...
> I have implemented 1 sample which recalculates the height of the ink
> picture control according to the strokes made by the user. It checks if
> the stroke is around the bottom of the control then its size is
> increased. All works fine..but if the user hapazardly writes some
> strokes vertically without lifting the pen then the stroke is not
> recognized untill the pen is lifted from the tablet pc, i.e. when the
> user is writing hapazardly after 1-2 strokes the ink of the following
> strokes does not appear.
> This is the code which I wrote :- just copy and paste the code written
> below and set the reference of Micosoft.Ink
>
> and then run it, then try to write vertical lines with the pen or
> mouse.
> ----------------------------------------------------------------------------------------------------------------------------
> using System;
> using System.Drawing;
> using System.Collections;
> using System.ComponentModel;
> using System.Windows.Forms;
> using System.Data;
>
> namespace AutoGrow
> {
> /// <summary>
> /// Summary description for Form1.
> /// </summary>
> public class frmAutoGrow : System.Windows.Forms.Form
> {
> private Microsoft.Ink.InkPicture inkPic;
> private int marginHeight = 80;
> private int intIncreament = 100;
> /// <summary>
> /// Required designer variable.
> /// </summary>
> private System.ComponentModel.Container components = null;
>
> public frmAutoGrow()
> {
> //
> // Required for Windows Form Designer support
> //
> InitializeComponent();
>
> //
> // TODO: Add any constructor code after InitializeComponent call
> //
> }
>
> /// <summary>
> /// Clean up any resources being used.
> /// </summary>
> protected override void Dispose( bool disposing )
> {
> if( disposing )
> {
> if (components != null)
> {
> components.Dispose();
> }
> }
> base.Dispose( disposing );
> }
>
> #region Windows Form Designer generated code
> /// <summary>
> /// Required method for Designer support - do not modify
> /// the contents of this method with the code editor.
> /// </summary>
> private void InitializeComponent()
> {
> this.inkPic = new Microsoft.Ink.InkPicture();
> this.SuspendLayout();
> //
> // inkPic
> //
> this.inkPic.BackColor = System.Drawing.Color.White;
> this.inkPic.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
> this.inkPic.Location = new System.Drawing.Point(0, 0);
> this.inkPic.MarginX = -2147483648;
> this.inkPic.MarginY = -2147483648;
> this.inkPic.Name = "inkPic";
> this.inkPic.Size = new System.Drawing.Size(448, 168);
> this.inkPic.TabIndex = 0;
> this.inkPic.MouseMove += new
> System.Windows.Forms.MouseEventHandler(this.inkPic _MouseMove);
> //
> // frmAutoGrow
> //
> this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
> this.AutoScroll = true;
> this.ClientSize = new System.Drawing.Size(456, 349);
> this.Controls.Add(this.inkPic);
> this.Name = "frmAutoGrow";
> this.Text = "Test AutoGrow";
> this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
> this.Resize += new System.EventHandler(this.frmAutoGrow_Resize);
> this.ResumeLayout(false);
>
> }
> #endregion
>
> /// <summary>
> /// The main entry point for the application.
> /// </summary>
> [STAThread]
> static void Main()
> {
> Application.Run(new frmAutoGrow());
> }
>
> private void frmAutoGrow_Resize(object sender, System.EventArgs e)
> {
> inkPic.Width = Width - 20;
> }
>
> private void inkPic_MouseMove(object sender,
> System.Windows.Forms.MouseEventArgs e)
> {
> if(inkPic.CollectingInk && inkPic.Location.Y + e.Y > inkPic.Bottom
> - marginHeight)
> {
> inkPic.Size += new Size(0,intIncreament);
> Invalidate(true);
> }
> }
> }
> }
>
> Hope you can help me...its really urgent for me.
> Best Regards,
> Munish
>
>
> --
> mmalhotra
> ------------------------------------------------------------------------
> mmalhotra's Profile: http://www.tabletquestions.com/member.php?userid=706
> View this thread: http://www.tabletquestions.com/showthread.php?t=2063
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OutLook 2003 and the Input panel problem muskateer Tablet PC - Software Discussions 0 07-10-2006 09:06 PM
wanted - operational tablet pen input panel on a desktop pc. art Windows XP Tablet PC Newsgroup 4 08-16-2005 07:23 AM
New Input Panel for Tablet PCs =?Utf-8?B?Q2hyaXM=?= Windows XP Tablet PC Newsgroup 14 03-04-2005 05:18 PM
Input Panel problems with Averatec 3500C Nick Viney Windows XP Tablet PC Newsgroup 1 09-06-2004 11:49 AM
Using XP Tablet PC Input Panel with Access Robin Windows XP Tablet PC Newsgroup 1 05-26-2004 09:10 PM


All times are GMT -8. The time now is 08:33 PM.


2003 - 2008 All Rights Reserved. Technology Questions

SEO by vBSEO 3.1.0