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  |
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
|
|
|
|
Goto Forum:
Current Time: Mon Apr 28 14:39:14 CEST 2025
Total time taken to generate the page: 0.00978 seconds
|