65.9K
CodeProject is changing. Read more.
Home

TextBox function in C

starIconemptyStarIconemptyStarIconemptyStarIconemptyStarIcon

1.00/5 (14 votes)

Oct 2, 2004

viewsIcon

51625

downloadIcon

1091

complete textbox functionality in c-graphics

<!-- Article Starts - DO NOT ADD HTML/BODY START TAGS--><!-- Download Links -->

Introduction

This Program provides complete functionality of textbox in
graphics mode.
i.e you can use HOME,END,INSERT,DEL,BACKSPACE,
LEFT ARROW,RIGHT ARROW etc.
 ->before running this program mention the path of bgiobj.exe in function
 initgraph in main.
 ->You can use this utility by including this file in your source
program and calling function textbox.
 ->It's syntax is
 void textbox (int leftx,int lefty,int righty);
 ->kindly remove the main function from this code while using function
 textbox
 ->Pressing of ESC key is the terminating condition
Limitations:-
 -> height of the text box is fixed
 -> you can not insert characters more than the width of textbox