Click here to Skip to main content
Click here to Skip to main content

gTextbox - similar grid with source code

, 20 Aug 2003
Rate this:
Please Sign up or sign in to vote.
you can use this control to your program - see sample .

Download sourcecode

Download Demo Project

Introduction

this object (ActiveX control) a best grid .

See Image Please.

Sample screenshot

Introduction:

Exist Grids Programs always include a basic fault .

A Object included many Property & many Methods & many Events.

But in Grid , can’t see a field similar to an Object.

And a Grid don’t includes all “base Objects” (TextBox , CheckBox , RadioButton , CommandButton , ComboBox , ListBox , …)

Sample screenshot


I always feel  that . 

I feel  , most be create many Objects similar to “base Objects “ ,  included  all Properties and methods and  Events of  basic Objects and can use this instead of  Grid.

Oracle Developer very help me.

2 years ago I works to this method (Group Objects)  and  yet not completed .

Target :

Create many Objects with 4  properties

1-     Single Objects ( Separated with other similar objects )

2-     very simply to link them

3-     included all property and methods and Events of basic Objects.

4-     Can used this similar Grid.(Multi row)

This object (gTextBox):

This Object(after that call gTextBox) is similar to a TextBox (with Maximum compatibility)  but a different , This is a Group TextBox objects instead of single TextBox .

I  named this “gTextBox”.

I am doing create other objects (gCheckBox-gCommandButton-gComboBox and …)

gTextBox included many properties -methods and events for itself and all properties and methods and events of single TextBox .

see this image :

Sample screenshot


Any row included all properties and methods and events a TextBox  and included many property and methods and events to itself. 

Professional Details

ü      gTextBox Properties

Property Name

Description

Access

ChangeForeColor

After Change Text Change forecolor to this

R(rw)

D(rw)

Count

Number of Record is exist

R(r)

GridColor

set and return Grid Color

R(rw)

D(rw)

NumberOnly

set and return gTextBox only Number input (not alphabet)

R(rw)

D(rw)

ParsiWrite

set and return input language (for Persian Language only)

R(rw)

D(rw)

ReadOnly

set and return gTextBox is Read only or not (if Read Only not editable)

R(rw)

D(rw)

Records

Include All Records in gTextBox(is a collection class)

R(rw)

RowBackColor

set and return Current Row Back Color

R(rw)

D(rw)

RowForeColor

set and return Current Row fore Color

 

R(rw)

D(rw)

RowShow

set and return Number of row show (default is 10)

R(rw)

D(rw)

RowSize

set and return row size ( Pixel )

R(rw)

D(rw)

ScrollBar

set and return scroll bar exist or not

R(rw)

D(rw)

ScrollWidth

set and return scroll bar width (pixel)

R(rw)

D(rw)

SelectedItem

set and return current item

R(r)

SizableRow

set and return can change row size at runtime

R(rw)

D(rw)

SpaceHorizontal

set and return space between this object with other object

R(rw)

D(rw)

SpaceVertical

set and return space between textboxs in gTextBox

R(rw)

D(rw)

R = access at Runtime

D=access at Designtime

(r)=readable

(w)=writeable

ü      gTextBox  Methods

Method Name

Description

Parameters

AddItem

Add a new record to Records

 

Text as string

Clear

Clear all records and set Records property to empty

None

GoFocus

Set Focus to a text box (current row)

 

MoveRecordTo

Move row to a specified record ( you most say row number [newCursor] and record number [newRecord] )

newCursor as integer

newRecord as long

Refresh

Refresh all records of gTextBox

None

Remove

Remove specified record

DeletedRecordNo as long

RollBack

Roll back specified record

RecordNo as long (if not define roll back all records)

 


 

ü      gTextBox Events

Event Name

Description

Parameters

HappenedTime

AfterDelete

After delete a row active this event

None

After delete

AfterInsert

After insert a record active this event

RecordNo as long record number to be inserted

After insert

AfterChange

After change a record (only first time)

CursorNo as integer (row number)

RecordNo as long

After change

BeforeChange

Before change a record (only first time)

CursorNo as integer (row number)

RecordNo as long

Before change

BeforeDelete

Before delete a record (only current record)

You can cancel deleting

Cancel As Boolean

Before delete

BeforeClear

Before clear all record

You can cancel clearing

Cancel As Boolean

Before clear

BeforeInsert

Before insert a record

You can cancel inserting

Cancel As Boolean

Before insert

ChangeRowSize

change row size (if drag grid with mouse)

you can cancel row size change

Cancel As Boolean ChangeSize As Single

On change (drag mouse on grid)

OnMoveRecord

Moving a new record

CursorNo As Integer

RecordNo As Long

After change row number

OnScroll

Scroll and going to new record

CursorNo As Integer

RecordNo As Long

After move to new record only with change scroll bar

Validation

Validation (equal validate Event)

CursorNo As Integer

RecordNo As Long

Cancel As Boolean

Before exit from a row

 


 

Revision History(Version)

Version 1.0

  • Last Updates  at 29/Tir/2562(Parsi) equal 20-july-2003

Further program (Coming version)

1- connecting ADO DataBase .

2- add Formula property (very powerfull)

3- and …

 

 

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

iranvig
Web Developer
United Arab Emirates United Arab Emirates
I am Davood.J live in Tehran from IRAN.
I am married with one child (a boy 5 year old).
my basic work is "system analyst" and "system designer" .
but i like programming .
i work with Visual Basic 6.0 & Microsoft Access 2000 and Oracle Developer and Designer (very little) .

Comments and Discussions

 
QuestionHow do i make this thing work! Pinmember_Chosen23-Jul-06 10:13 
Generalneed help.. urgent..!!! Pinmembersuriac10-Jan-04 17:58 
GeneralSource Code Pinmemberashkan_25573-Aug-03 18:17 
Generalfor other information call me . PinmemberRama Krishna31-Jul-03 10:11 
GeneralRe: for other information call me . Pinmemberashkan_25573-Aug-03 18:14 
GeneralAbout your article PinsussStanislav Panasik30-Jul-03 18:37 
GeneralRe: About your article Pinmemberashkan_255730-Jul-03 19:27 
GeneralSorry to all. Pinmemberashkan_255730-Jul-03 17:57 
GeneralRe: Sorry from all. Pinmemberdog_spawn31-Jul-03 0:52 
GeneralRe: Sorry from all. Pinmemberashkan_255731-Jul-03 2:13 
QuestionNew concept? Pinmemberdog_spawn30-Jul-03 11:16 
AnswerRe: New concept? Pinmemberashkan_255730-Jul-03 19:38 
GeneralStupid article Pinmemberchong_lim30-Jul-03 9:42 
GeneralRe: Stupid article PinmemberJohn M. Drescher30-Jul-03 10:52 
GeneralRe: Stupid article PinsussAnonymous1-Aug-03 17:25 
GeneralCan't find the file you give us Pinmemberadamsdigiark30-Jul-03 8:51 
GeneralRe: Can't find the file you give us Pinmemberashkan_255730-Jul-03 18:08 
GeneralPlease stay home... PinmemberDavide Calabro30-Jul-03 8:19 
GeneralRe: Please stay home... PinmemberDimitris Vassiliades4-Aug-03 20:28 
GeneralRe: Please stay home... PinmemberDavide Calabro4-Aug-03 23:18 
Yes, considering the low average level of the articles in terms of quality and formatting. Frown | :(
 
SoftechSoftware
Davide Calabro'
davide_calabro@yahoo.com
http://www.softechsoftware.it

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web02 | 2.8.140827.1 | Last Updated 21 Aug 2003
Article Copyright 2003 by iranvig
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid