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 #2511 is a reply to message #2510] Sun, 16 April 2006 04:36 Go to previous messageGo to previous message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
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! ...

[Updated on: Sun, 16 April 2006 04:39]

Report message to a moderator

 
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 Jul 04 22:29:27 CEST 2025

Total time taken to generate the page: 0.03485 seconds