Restored from previous forum. Originally posted by Manolo.
 Hi,
I need aligner numbers in a ListIconGadget. The ListIcon have 8 columns and I only need this feature in the 6th, 7th and 8th columns.
You can helpme??
Thanks,
Manolo
[url]mailto:vpardo@infonegocio.com[/url]
			
			
									
									
						I need aligner numbers to rigth. How??
- 
				BackupUser
- PureBasic Guru 
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Manolo.
 
Is possible that you helpme??
Thanks
			
			
									
									
						Hi guys,Hi,
I need aligner numbers in a ListIconGadget. The ListIcon have 8 columns and I only need this feature in the 6th, 7th and 8th columns.
You can helpme??
Thanks,
Manolo
[url]mailto:vpardo@infonegocio.com[/url]
Is possible that you helpme??
Thanks
- 
				BackupUser
- PureBasic Guru 
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Stan.
 
Can you be more specific ? One or two examples would help.
Bests.
Learning and Love are what life is all about ... [ PB. registered user ]
			
			
									
									
						Hi,Hi,
I need aligner numbers in a ListIconGadget. The ListIcon have 8 columns and I only need this feature in the 6th, 7th and 8th columns.
You can helpme??
Can you be more specific ? One or two examples would help.
Bests.
Learning and Love are what life is all about ... [ PB. registered user ]
- 
				BackupUser
- PureBasic Guru 
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
- 
				BackupUser
- PureBasic Guru 
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by El_Choni.
Ok, here it is:
Bye,
El_Choni
			
			
									
									
						Ok, here it is:
Code: Select all
lvc.LV_COLUMN
lvc\imask = #LVCF_FMT
InitGadget(1)
If OpenWindow(1,#CW_USEDEFAULT,#CW_USEDEFAULT,#CW_USEDEFAULT,#CW_USEDEFAULT,#PB_Window_SystemMenu|#PB_Window_MinimizeGadget,"ListIconGadget column align example")
  LVWidth = WindowWidth() - 4
  
  If CreateGadgetList(WindowID())
    ListIconGadget = ListIconGadget(0, 0, 0, LVWidth, WindowHeight()-30, "This", LVWidth/4-1)
    AddGadgetColumn(0, 1, "is", LVWidth/4-1)
    AddGadgetColumn(0, 2, "a", LVWidth/4-1)
    AddGadgetColumn(0, 3, "test", LVWidth/4-1)
  EndIf
  col = 1
  lvc\fmt = #LVCFMT_RIGHT
  SendMessage_(ListIconGadget, #LVM_SETCOLUMN, col, @lvc)
  col = 2
  lvc\fmt = #LVCFMT_CENTER
  SendMessage_(ListIconGadget, #LVM_SETCOLUMN, col, @lvc)
  col = 3
  lvc\fmt = #LVCFMT_LEFT ; not really needed, left is the default
  SendMessage_(ListIconGadget, #LVM_SETCOLUMN, col, @lvc)
  AddListIconGadgetItem(0, 0, "Column 1"+Chr(10)+"Column 2"+Chr(10)+"Column 3"+Chr(10)+"Column 4", 0)
  AddListIconGadgetItem(0, 1, "The first column"+Chr(10)+"must"+Chr(10)+"always"+Chr(10)+"be", 0)
  AddListIconGadgetItem(0, 2, "left aligned,"+Chr(10)+"the others"+Chr(10)+"may"+Chr(10)+"not.", 0)
  Repeat
    EventID.l = WaitWindowEvent()
    Select EventID
      Case #PB_EventCloseWindow
        Quit = 1
    EndSelect
  Until Quit = 1
EndIf
End
El_Choni