Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » LineEdit, EditFields, DocEdit » filtering characters in the EditString [SOLVED...]
Re: filtering characters in the EditString [message #2513 is a reply to message #2511] Sun, 16 April 2006 08:39 Go to previous message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
fudadmin wrote on Sun, 16 April 2006 04:36

below your let's say Avail3
#include "VegaMain.h"

void Avail3(One<Ctrl>& ctrl)
{
	//	ctrl.Create<Option>().ThreeState();
	ctrl.Create<OptionImage>().ThreeState().SetImage(imgYes(), imgNo(), imgMaybe());
	
}

int FilterCommaSpace(int c)
{
	if (c == ',' || c ==' ') return false; //add more unwanted chars here..
	else return c;
}

...
...
void VegaTab1::MaskDefaultValue() // body of the callback
{
	editName <<= Null;
	editName.SetFilter(FilterCommaSpace); //added filter
...


Edit: It looks like you even didn't spy EditString! ...


Embarassed Crying or Very Sad Embarassed
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Shift-Backspace should also delete in TextCtrls [FIXED][ADDED]
Next Topic: Which widget can show text with fixed font?
Goto Forum:
  


Current Time: Fri May 03 06:32:49 CEST 2024

Total time taken to generate the page: 0.02873 seconds