View Single Post
  #1  
Old 06-12-2008, 05:42 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
Access Violations at setting width/height? x.x

Hi,

PHP Code:
  if( GUI_tooltipCtrl.objectType() != "asdf" GUI_tooltipCtrl.destroy();
  
GUI_tooltipCtrl.destroy();
  new 
GuiScrollCtrl"GUI_tooltipCtrl" );
  
GUI_tooltipCtrl.500;
  
GUI_tooltipCtrl.50;
  
GUI_tooltipCtrl.visible true;
  
GUI_tooltipCtrl.profile GuiScrollProfile;  
  
GUI_tooltipCtrl.minsize = {00};
  
GUI_tooltipCtrl.useownprofile true;
  
GUI_tooltipCtrl.profile.bitmap "";  
  
GUI_tooltipCtrl.profile.fillcolor = { 30.635.725.5204 };    
  
GUI_tooltipCtrl.profile.bordercolor = { 200200200255 };  
  
GUI_tooltipCtrl.vScrollBar "alwaysOff";
  
GUI_tooltipCtrl.hScrollBar "alwaysOff";  
  
this.tooltipCtrl.profile.fillcolorhl this.tooltipCtrl.profile.fillcolor;
  
this.tooltipCtrl.profile.fillcolorna this.tooltipCtrl.profile.fillcolor;  
  
this.tooltipCtrl.profile.bordercolorna this.tooltipCtrl.profile.bordercolor;    
  
this.tooltipCtrl.profile.bordercolorhl this.tooltipCtrl.profile.bordercolor;      
  
GUI_tooltipCtrl.profile.border 1;  
  
GUI_tooltipCtrl.profile.transparency 1;  
  if( 
GUI_tooltipCtrl_Text.objectType() != "GuiMLTextCtrl" )  GUI_tooltipCtrl_Text.destroy();
  
withGUI_tooltipCtrl ) new GuiMLTextCtrl"GUI_tooltipCtrl_Text" );
  
GUI_tooltipCtrl.text "testing this stuff";
  
GUI_tooltipCtrl.profile GuiMLTextProfile;
  
GUI_tooltipCtrl.width GUI_tooltipCtrl_Text.width;
  
GUI_tooltipCtrl.height GUI_tooltipCtrl_Text.height;  
 
// GUI_tooltipCtrl.width = GUI_tooltipCtrl_Text.width;
//  GUI_tooltipCtrl.height = GUI_tooltipCtrl_Text.height; 
  
GUIContainer.addControlGUI_tooltipCtrl ); 
If i remove the // from
PHP Code:
 // GUI_tooltipCtrl.width = GUI_tooltipCtrl_Text.width;
//  GUI_tooltipCtrl.height = GUI_tooltipCtrl_Text.height; 
I get access violations... any ideas?
__________________
Reply With Quote