IDE project
- Posted by DonCole Aug 06, 2013
- 1459 views
Hello Everybody,
How can I move controls around in a bitmap, same as a window, using IDE?
IDE does not allow me to make a bitmap a parent like a window.
Here is my code that I wrote by hand. Using trial and error numbers to place the EditText where I want it.
I have a lot more EditTexts to create and it will take forever to do it by hand.
-- code generated by Win32Lib IDE v0.22.0 Build Dec-16-2006 constant TheProgramType="exw" include Win32Lib.ew without warning -------------------------------------------------------------------------------- -- Window Window1 global constant Window1 = createEx( Window, "Window1", 0, Default, Default, 1076, 448, 0, 0 ) global constant Picture = createEx( Bitmap, "ramp3.bmp", Window1, 1, 1, 1076, 448, w32or_all({WS_BORDER}), 0 ) global constant PushButton3 = createEx( PushButton, "Calculate", Picture, 24, 372, 88, 28, 0, 0 ) global constant PushButton4 = createEx( PushButton, "Close", Picture, 952, 376, 88, 28, 0, 0 ) global constant EditText6 = createEx( EditText, "EditText6", Picture, 350, 135, 44, 24, 0, 0 ) --------------------------------------------------------- procedure PushButton4_onClick (integer self, integer event, sequence params)--params is () closeWindow(Window1) end procedure setHandler( PushButton4, w32HClick, routine_id("PushButton4_onClick")) procedure PushButton3_onClick (integer self, integer event, sequence params)--params is () ---- end procedure setHandler( PushButton3, w32HClick, routine_id("PushButton3_onClick")) -------------------------------------------------------------------------------- ------------------------------------------------------- -- IDE Project generated from exw file using -- exw2prj 1.1 final (IDE 0.12) written by Martin Stachon ------------------------------------------------------- -- code generated by Win32Lib IDE v0.22.0 Build Dec-16-2006 include Win32Lib.ew -------------------------------------------------------------------------------- -- Window Window1 --global constant Bitmap2 = createEx( Bitmap, "Bitmap2", Window1, 188, 96, 504, 248, 0, 0 ) --------------------------------------------------------- --this program has 15 lines without including this line. If there is a discrepancy please send this file zipped to Judith. WinMain( Window1,Normal ) --this program has 36 lines without including this line. If there is a discrepancy please send this file zipped to Judith.
Don Cole