SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Defines the horizontal alignment of the graphic in this cell.
Get
VB.NET | Style = object.ImageHAlign As SftBoxHAlignConstants |
VB | Style = object.ImageHAlign As SftBoxHAlignConstants |
C#.NET | SftBoxHAlignConstants Style = object.ImageHAlign; |
VC++ | enum SftBoxHAlignConstants Style = object->ImageHAlign; enum SftBoxHAlignConstants Style = object->GetImageHAlign(); |
C | HRESULT object->get_ImageHAlign(enum SftBoxHAlignConstants* Style); |
Put
VB.NET | object.ImageHAlign = Style As SftBoxHAlignConstants |
VB | object.ImageHAlign = Style As SftBoxHAlignConstants |
C#.NET | SftBoxHAlignConstants object.ImageHAlign = Style; |
VC++ | enum SftBoxHAlignConstants object->ImageHAlign = Style; void object->PutImageHAlign(enum SftBoxHAlignConstants Style); |
C | HRESULT object->put_ImageHAlign(enum SftBoxHAlignConstants Style); |
object
Style
Defines the horizontal alignment of the graphic in this cell.
Name | Value | Description |
---|---|---|
halignSftBoxLeft | 0 | The graphic is to the left of the cell text. |
halignSftBoxCenter | 1 | The graphic is centered in the cell. |
halignSftBoxRight | 2 | The graphic is to the right of the cell text. |
The ImageHAlign property defines the horizontal alignment of the graphic in this cell.
The Cell.ImageVAlign property is used to define the vertical alignment of the graphic in this cell. The cell graphic is defined using the Cell.Image property.
AxSftBox1.get_Item(ItemIndex).RowHeader.Image = Img End If End Sub Private Sub UpdateImages(ByVal ItemIndex As Integer, ByVal Img As Image, ByVal Align As SftBoxHAlignConstants) Dim C As SftBoxCell C = AxSftBox1.get_Cell(ItemIndex, 0) C.Image.NETImageObject = Img C.ImageHAlign = Align PropagateImage(ItemIndex, C.Image) End Sub Private Sub UpdateImageList(ByVal ItemIndex As Integer, ByVal ImageListControl As ImageList, ByVal i As Integer, ByVal Align As SftBoxHAlignConstants) Dim C As SftBoxCell C = AxSftBox1.get_Cell(ItemIndex, 0) C.Image.SetImageListH(ImageListControl.Handle.ToInt32(), i)
SftBox1.Item(ItemIndex).RowHeader.Image = Img End If End Sub Private Sub UpdatePictures(ByVal ItemIndex As Integer, ByVal Pic As StdPicture, ByVal Align As SftBoxHAlignConstants) Dim C As SftBoxCell Set C = SftBox1.Cell(ItemIndex, 0) Set C.Image.Picture = Pic C.ImageHAlign = Align PropagateImage ItemIndex, C.Image End Sub Private Sub UpdateImages(ByVal ItemIndex As Integer, ByVal Pic As LONG_PTR, ByVal Align As SftBoxHAlignConstants) Dim C As SftBoxCell Set C = SftBox1.Cell(ItemIndex, 0) C.Image.SetImage Pic, True
axSftBox1.get_Item(ItemIndex).RowHeader.Image = Img; } } private void UpdateImages(int ItemIndex, System.Drawing.Image img, SftBoxHAlignConstants Align) { SftBoxCell C = axSftBox1.get_Cell(ItemIndex, 0); C.Image.NETImageObject = img; C.ImageHAlign = Align; PropagateImage(ItemIndex, C.Image); } private void UpdateImageList(int ItemIndex, ImageList ImageListControl, int i, SftBoxHAlignConstants Align) { SftBoxCell C = axSftBox1.get_Cell(ItemIndex, 0); C.Image.SetImageListH((int) ImageListControl.Handle, (short) i);
m_vBox->Item[ItemIndex]->RowHeader->Image = Img; } } void CPicturesDlg::UpdateBitmap(long ItemIndex, const CBitmap& bmp, SftBoxHAlignConstants Align) { ISftBoxCellPtr C = m_vBox->Cell[ItemIndex][0]; C->Image->PutBitmapHandle((OLE_HANDLE)(HBITMAP) bmp); C->ImageHAlign = Align; PropagateImage(ItemIndex, C->Image); } void CPicturesDlg::UpdateImage(long ItemIndex, int resourceID, SftBoxHAlignConstants Align) { ISftBoxCellPtr C = m_vBox->Cell[ItemIndex][0]; C->Image->raw_LoadImageFromResource((long) AfxGetApp()->m_hInstance, L"PNG", (LPWSTR)MAKEINTRESOURCE(resourceID));
See Also SftBoxCell Object | Object Hierarchy