CCJGrid custom row height: Difference between revisions

From DataFlex Wiki
Jump to navigationJump to search
m
Cleanup code that isn't used (less is more)
(Created page with "Normally you can't set the row height for an individual row in a codejock grid. The following code shows you how-to do that. <source lang="dataflex"> Use Windows.pkg Use DFClient.pkg Use cCJGrid.pkg Use cCJGridColumn.pkg Deferred_View Activate_oListWithImage for ; Object oListWithImage is a dbView Set Border_Style to Border_Thick Set Size to 332 591 Set Location to 2 2 Set Label to "ListWithImage" Object oThisProductList is a cCJGrid Set Size to 325...")
 
m (Cleanup code that isn't used (less is more))
 
Line 55: Line 55:
       Function DisplayImage String sImageName Returns String
       Function DisplayImage String sImageName Returns String
         String  sXAML
         String  sXAML
       
        Send OnSetImageName (&sImageName)
          
          
         Move "" to sXAML
         Move "" to sXAML
Line 72: Line 70:
         Forward Send OnCreateColumn
         Forward Send OnCreateColumn
         Delegate Set ComEnableMarkup to True
         Delegate Set ComEnableMarkup to True
      End_Procedure
     
      Procedure OnSetImageName String ByRef sImageName
      End_Procedure
     
      Procedure OnSetCalculatedValue String ByRef sValue
        Forward Send OnSetCalculatedValue (&sValue)
      End_Procedure
     
      Procedure OnSetDisplayMetrics Handle hoGridItemMetrics Integer iRow String ByRef sValue
        Forward Send OnSetDisplayMetrics hoGridItemMetrics iRow (&sValue)
       End_Procedure
       End_Procedure
     End_Object
     End_Object

Navigation menu