Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Controls in child window
#4
Quote:so yes the array for child would help, but i can't do it

If you can capture a control with 'Find window or control' dialog, then you can get array. If not, will need to use keyboard, or maybe accessible object functions.

example with QM Mouse dialog
Macro Macro1449
Code:
Copy      Help
out

int w1=win("Mouse" "#32770")
ARRAY(int) a
int i h

out "---- Edit controls ----"
child "" "Edit" w1 0x400 0 0 a
for i 0 a.len
,h=a[i]
,outw h

out "---- Checkboxes -----"
child "" "Button" w1 0x400 0 0 a
for i 0 a.len
,h=a[i]
,if(GetButtonType(h)!=1) continue
,outw h

Function GetButtonType
Code:
Copy      Help
;/
function# hwnd ;;Returns: 0 push button, 1 check, 2 radio, 3 group

;Returns Button control type.


sel GetWinStyle(hwnd)&15
,case [2 3 5 6] ret 1
,case [4 9] ret 2
,case 7 ret 3


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)