U++ framework
Do not panic. Ask here before giving up.

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: 1221
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: Sun Apr 26 07:19:17 GMT+2 2026

Total time taken to generate the page: 0.00428 seconds