Patch level : 10.0
Files correlati : ba8.exe Ricompilazione Demo : [ ] Commento : Corretta gestione colore campi di solo testo git-svn-id: svn://10.65.10.50/trunk@20355 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									3059997081
								
							
						
					
					
						commit
						8adadf091b
					
				@ -1370,15 +1370,9 @@ void TPrinter::read_configuration(
 | 
			
		||||
  	  xvt_sys_get_host_name(hostname, sizeof(hostname));
 | 
			
		||||
      read_rcd = (host == hostname);  // Safe to read
 | 
			
		||||
  		if (!read_rcd)
 | 
			
		||||
      {
 | 
			
		||||
  			read_rcd = yesno_box(FR("Attenzione: le impostazioni della stampante sono relative alla stazione di lavoro %s.\n"
 | 
			
		||||
                                "Si desidera utilizzarle ugualmente sulla stazione %s?"), (const char*)host, hostname);
 | 
			
		||||
        if (!read_rcd)
 | 
			
		||||
        {
 | 
			
		||||
          // Forza la lettura parametri della stampante di default
 | 
			
		||||
          _prname.cut(0);
 | 
			
		||||
          set_printrcd(); 
 | 
			
		||||
        }
 | 
			
		||||
      {      
 | 
			
		||||
        _prname.cut(0); // Forza la lettura parametri della stampante di default
 | 
			
		||||
        set_printrcd(); 
 | 
			
		||||
      }
 | 
			
		||||
  	}
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
@ -1502,11 +1502,9 @@ bool TReport_field::print_tools(TBook& book) const
 | 
			
		||||
  if (visible)
 | 
			
		||||
  {
 | 
			
		||||
    book.set_pen(fore_color(), border()-1);
 | 
			
		||||
    book.set_text_color(text_color(), back_color());
 | 
			
		||||
    if (pattern() == PAT_SPECIAL)
 | 
			
		||||
    {
 | 
			
		||||
      book.set_text_color(text_color(), back_color());
 | 
			
		||||
      book.set_brush(shade_color(), pattern(), shade_angle());
 | 
			
		||||
    }
 | 
			
		||||
    else
 | 
			
		||||
      book.set_brush(back_color(), pattern());
 | 
			
		||||
  }
 | 
			
		||||
@ -1653,7 +1651,7 @@ void TReport_field::print(TBook& book) const
 | 
			
		||||
      book.set_font(print_font());
 | 
			
		||||
      const TReport_rct& pr = print_rect(book); // Calcolo rettangolo dopo aver settato il font!
 | 
			
		||||
      book.set_text_align(horizontal_alignment(), vertical_alignment());
 | 
			
		||||
      book.set_text_color(fore_color(), back_color());
 | 
			
		||||
      book.set_text_color(text_color(), back_color());
 | 
			
		||||
      TString8 sec_code; section().code(sec_code);
 | 
			
		||||
      if (pr.height() > 100) // Multiriga?
 | 
			
		||||
      {
 | 
			
		||||
@ -3152,7 +3150,8 @@ HIDDEN bool fld2id(TReport_field* fld, TVariant& var)
 | 
			
		||||
    if (curr == NULL || &sec != &curr->section())
 | 
			
		||||
    {
 | 
			
		||||
      TString16 str;
 | 
			
		||||
      str << sec.type() << sec.level() << '.' << fld->id();
 | 
			
		||||
      sec.code(str);
 | 
			
		||||
      str << '.' << fld->id();
 | 
			
		||||
      var.set(str);
 | 
			
		||||
    }
 | 
			
		||||
    else
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user