Notifications
Clear all
[Closed] Dotnet location
Aug 14, 2013 12:35 pm
I don’t understand why when i click on the check box it doesn’t move, it appears to only be making it smaller.
(
rollout test_rl "test" width:100 height:400
(
fn function_check_box fn_check_button =
(
fn_check_button.text = ""
fn_check_button.Appearance = fn_check_button.Appearance.Button
fn_check_button.FlatStyle = fn_check_button.FlatStyle.Flat
fn_check_button.FlatAppearance.CheckedBackColor = fn_check_button.FlatAppearance.CheckedBackColor.Orange
fn_check_button.ForeColor = (dotnetclass "system.drawing.color").FromArgb 10 10 10
fn_check_button.BackColor = (dotnetclass "system.drawing.color").FromArgb 250 250 250
return fn_check_button
)
dotnetcontrol left_box "system.windows.forms.checkbox" pos:[80,0] width:20 height:400
on test_rl open do
(
function_check_box left_box
)
on left_box mouseclick do
(
if left_box.checked == true then
(
left_box.location = (dotNetObject "system.drawing.point" -5 0)
)else(
left_box.location = (dotNetObject "system.drawing.point" 0 0)
)
)
)
createdialog test_rl style:#(#style_toolwindow,#style_sysmenu)
)