#define MakeButton(f,x,y,w,h,id,c,a,p,d) SetButtonAttributes( SetButtonPushMethod( MakeCaptionedControl(f,NORMAL_BUTTON,x,y,w,h,id,c), p, d ), a )
Parameters |
Description |
f |
frame to create the button in |
x |
left coordinate of the control |
y |
top coordinate of the control |
w |
how wide the control is |
h |
how tall to make the control |
nID |
ID of the control (any numeric ID you want to call it) |
a |
SliderDirection |
c | |
update_proc |
button click callback function. ButtonPushMethod. |
user_data |
user data to pass to callback when it is invoked. |
PSI_CONTROL that is a button.
An all-in-one macro to create a Slider control, set the callback, and set direction options.
Copyright (c) 2000+. All rights reserved.
|
What do you think about this topic? Send feedback!
|