| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| nexnex Newbie cheater
 
 ![]() Reputation: 0 
 Joined: 22 Jun 2019
 Posts: 13
 
 
 | 
			
				|  Posted: Thu Jul 25, 2019 3:39 am    Post subject: How to modify address list headers (THeaderSections)? |   |  
				| 
 |  
				| Address list has sections in the header - Active, Description, Address, Type, Value. Let's say I want to remove Address section or add some new one, how can I do it?
 I tried to use functions and properties from THeaderSections documentation, but it seems they aren't published and inacessible from lua.
 
  	  | Code: |  	  | -- also, is there a better way to get address list headers?
 -- it's not published property either, so I use .Control[1]
 local headers = getAddressList().Control[1]
 local props = getPropertyList(headers.Sections)
 if props then
 for i=0,props.Count-1 do print(props[i]) end
 else
 print('no published properties')
 end
 
 | 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Dark Byte Site Admin
 
  Reputation: 470 
 Joined: 09 May 2003
 Posts: 25807
 Location: The netherlands
 
 | 
			
				|  Posted: Thu Jul 25, 2019 5:19 am    Post subject: |   |  
				| 
 |  
				| it's not published. I'll add it for next version (You could of course use low level method calls using assembly, but I don't recommend that way)
 _________________
 
 Do not ask me about online cheats. I don't know any and wont help finding them.
 Like my help? Join me on Patreon so i can keep helping
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| nexnex Newbie cheater
 
 ![]() Reputation: 0 
 Joined: 22 Jun 2019
 Posts: 13
 
 
 | 
			
				|  Posted: Thu Jul 25, 2019 5:58 am    Post subject: |   |  
				| 
 |  
				| Thank you. I just realized that adding sections is much more involved process.
 I can access values of the existing sections with memrec.Description, memrec.Value and such.
 But how would I access newly created section values? That would require something like memrec.get/setCustomField(name, value) and code for displaying it in address list.
 I'm not sure it's worth the trouble.
 
 However, ability to hide existing sections would still be welcome.
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  |