FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Necessary to rename common controls?

 
Post new topic   Reply to topic     Forum Index -> DFL
View previous topic :: View next topic  
Author Message
Lynn



Joined: 27 Aug 2004
Posts: 89

PostPosted: Mon May 02, 2005 4:50 am    Post subject: Necessary to rename common controls? Reply with quote

In dfl\application.d, you rename the common controls:

const char[] CONTROL_CLASSNAME = "DFL_Control";
const char[] FORM_CLASSNAME = "DFL_Form";
const char[] TEXTBOX_CLASSNAME = "DFL_TextBox";
const char[] LISTBOX_CLASSNAME = "DFL_ListBox";
const char[] LABEL_CLASSNAME = "DFL_Label";
const char[] BUTTON_CLASSNAME = "DFL_Button";
const char[] MDICLIENT_CLASSNAME = "DFL_MdiClient";
const char[] RICHTEXTBOX_CLASSNAME = "DFL_RichTextBox";
const char[] COMBOBOX_CLASSNAME = "DFL_ComboBox";
const char[] TREEVIEW_CLASSNAME = "DFL_TreeView";

Is this really necessary? I am not familiar with the low-level programming involved, so this isn't a criticism if it is really the appropriate way to do this.

The reason I ask: I use VisualTest to write scripts to test an application. I've found it invaluable for q/a. There is a call to
WOptionSetClass("DFL_Button")
but I would prefer to avoid this.

I took a look at application.d and tried renaming to just "Button", but the call to superClass in _init failed.

Just checking ... works ok now but wanted to make you aware of VisualTest issue.
Back to top
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Mon May 02, 2005 5:09 am    Post subject: Re: Necessary to rename common controls? Reply with quote

Lynn wrote:
In dfl\application.d, you rename the common controls:

I super class them so that every single window doesn't need to be sub classed. Super classing creates a new window class based on another, which requires me to use a new name.
- Chris
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DFL All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group