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

DFL dfl.tabcontrol.TabControl and Entice

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



Joined: 22 Dec 2004
Posts: 298
Location: Rochester, NY

PostPosted: Tue Feb 20, 2007 11:41 pm    Post subject: DFL dfl.tabcontrol.TabControl and Entice Reply with quote

Greetings.

So, I created a very complicated tool, which I am still adding stuff to. I want to open a new tab, but I am having problems understanding Entince entries and your entries on the examples. Here is what Entice creates:

Code:
      //~DFL dfl.tabcontrol.TabControl=Util
      Util = new TabPage("Tab 1");
      Util.name = "Util";
      Util.dock = dfl.control.DockStyle.TOP;
      Util.tag = new dfl.base.StringObject("Utilities");
      Util.appearance = dfl.tabcontrol.TabAppearance.BUTTONS;
      Util.bounds = dfl.base.Rect(0, 250, 942, 300);
      Util.parent = this;
      //~Entice Designer 0.8.1pre3 code ends here.


When I compile this code, I get,
Code:
OpenJobs.d(750): Error: cannot implicitly convert expression (new TabPage("Tab 1")) of type dfl.tabcontrol.TabPage to dfl.tabcontrol.TabControl


If I take that line,
Code:
Util = new TabPage("Tab 1");

the program compiles, but I get an "Access Violation" error when I run it. The question is, how do I get to show the tab?

thanks,

jic
Back to top
View user's profile Send private message
Chris Miller



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

PostPosted: Wed Feb 21, 2007 10:22 am    Post subject: Re: DFL dfl.tabcontrol.TabControl and Entice Reply with quote

This doesn't exactly look like what Entice outputs. It would output (and does in my tests) Util = new dfl.tabcontrol.TabControl(); (most notably the fully-qualified name).

Entice currently doesn't let you design TabPages right on its parent; you have to do it through File->New "TabPage" and then add it to your TabControl at runtime (theparent.tabPages.add(thispage)).
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