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++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » UPT: enhancement suggestion
UPT: enhancement suggestion [message #5770] Sat, 14 October 2006 15:11 Go to previous message
Werner is currently offline  Werner
Messages: 234
Registered: May 2006
Location: Cologne / Germany
Experienced Member
This is an updated and corrected version of a post which I had sent to Mirek.

Maybe it had better go into "U++ 'under development' Classes/Packages" but I can't find an appropriate topic. (I'm going to report this to a moderator.)


I once again suggest to enhance the UPT handling, this time by adding another template item "text" ("TEMPLATEITEM_TEXT").

What you can do with UPTs, increases dramatically when you can use strings with any character. The template items "id" and "filename" suffer from filtering. Using the template item "select" would make it far to difficult to handle the selection.

After all the suggested change requires the modification of just 7 lines of code, 1 in "UppDlg.h":

enum { TEMPLATEITEM_ID, TEMPLATEITEM_FILENAME, TEMPLATEITEM_OPTION, TEMPLATEITEM_SELECT, TEMPLATEITEM_TEXT };


and 6 in "Template.cpp":

static char *nm[] = { "id", "filename", "option", "select", "text" };
...
case TEMPLATEITEM_TEXT: {
    EditField *e = new EditField;
    ctrl.Add(e);
    break;
}


Werner

 
Read Message
Read Message
Previous Topic: upp-610-dev1 build error
Next Topic: Feature request: Copy and paste layouts
Goto Forum:
  


Current Time: Mon Apr 29 05:52:53 CEST 2024

Total time taken to generate the page: 0.05370 seconds