> set address function
> set range function
Fixed: _GetIPAdress function, used code from LazyCat's control
This was more for a learning experience.
Edit: added ability to use styles and extended styles
; create the control
_GuiCtrlIpAddressCreate($h_Gui, $x, $y, $width, $heigth, $v_styles = -1, $v_exstyles = -1)
; Clears the contents of the IP address control.
; Retrieves the address values for all four fields in the IP address control.
; Determines if all fields in the IP address control are blank.
; Sets the keyboard focus to the specified field in the IP address control.
; All of the text in that field will be selected.
; Sets the valid range for the specified field in the IP address control.
_IPSetRange($h_IPAdress, $field_index, $low_range = 0, $high_range = 255)
; Sets the address values for all four fields in the IP address control.
; i.e. "126.96.36.199"
Edit: some refinements to _GetIPAdress and _IPSetRange functions
Edited by gafrost, 19 February 2006 - 12:57 PM.