Re: Enhanced IDE control ordering
Mike777 wrote:
>
> I have a set of two controls, a label and a checkbox.
> However, the IDE builds the exw file with the myLabel code before the
> myCheckbox
> code and then complains that myCheckbox_onClick has not been declared.
This works without changing anything in reorder controls.
include Win32Lib.ew
without warning
--------------------------------------------------------------------------------
-- Window Window1
constant Window1 = createEx( Window, "Window1", 0, Default, Default, 400, 300,
0, 0 )
constant LText3 = createEx( LText, "LText3", Window1, 48, 24, 148, 20,
w32or_all({SS_NOTIFY}), 0 )
constant CheckBox2 = createEx( CheckBox, "CheckBox2", Window1, 76, 60, 148, 20,
0, 0 )
---------------------------------------------------------
--------------------------------------------------------------------------------
procedure LText3_onClick (integer self, integer event, sequence params)--params
is ()
setCheck(CheckBox2, w32True)
end procedure
setHandler( LText3, w32HClick, routine_id("LText3_onClick"))
--------------------------------------------------------------------------------
procedure CheckBox2_onClick (integer self, integer event, sequence
params)--params is ()
if not isChecked(CheckBox2) then
VOID=message_box("is not checked now","",0)
end if
end procedure
setHandler( CheckBox2, w32HClick, routine_id("CheckBox2_onClick"))
---------------------------------------------------------
WinMain( Window1,Normal )
> So I went into Generate Tools|Change control order for program and moved
> myLabel
> well below myCheckbox. The exw file is built in the same order, as if my
> manual
> re-ordering has no effect.
I tested the above project and used reordering such that label was after the
checkbox and ran the project. Looking at the exw the label is now after the
checkbox.
> Thanks
>
> Mike
judith
|
Not Categorized, Please Help
|
|