1. IDE fails to preserve control order

Hi,

I've noticed that the IDE does not remember the manually configured control order, as established using the Generate Tools -> Change Control Order for Program option. After you exit the project and then load it again, the user specified order is lost and instead a default order is imposed. I think the default is based on control positions from top left to bottom right of the window.

A way to see this clearly is to create a new project and place six gui controls, for instance buttons, like so:

[button 1]    [button 2]       [button 3] 
              [button 5] 
[button 4]                     [button 6] 


  • Now run it and press TAB repeatedly and you'll see the control order go 1,2,3,5,4,6 (NOTE: 5 before 4)
  • Now go to Generate Tools -> Change Control Order for Program. You'll see the order listed 1,2,3,4,5,6
  • BUG 1 - If you click Ok on this 1,2,3,4,5,6 order it will not be observed, you must change the order to have any affect
  • Now change the order in anyway, and click ok and run the code, you'll now see your newly defined order work
  • Now exit the IDE, then open it again and reload this project
  • Now run it
  • BUG 2 - You'll see your user defined order as been forgotten and a default imposed of 1,2,3,5,4,6


I'm not sure if it helps but here is the .exw code generated by the IDE. I could send the .prj file if needed but it's over 900 lines long so I won't put it in the forum unless someone needs it.

--  code generated by Win32Lib IDE v1.0.4 Build July-06-2008 
 
constant TheProgramType="exw"  
  
include Win32Lib.ew 
without warning 
 
-------------------------------------------------------------------------------- 
--  Window Window1 
constant Window1 = createEx( Window, "Window1", 0, Default, Default, 379, 181, 0, 0 ) 
constant PushButton1 = createEx( PushButton, "PushButton1", Window1, 24, 16, 88, 28, 0, 0 ) 
constant PushButton2 = createEx( PushButton, "PushButton2", Window1, 140, 16, 88, 28, 0, 0 ) 
constant PushButton3 = createEx( PushButton, "PushButton3", Window1, 256, 16, 88, 28, 0, 0 ) 
constant PushButton5 = createEx( PushButton, "PushButton5", Window1, 140, 60, 88, 28, 0, 0 ) 
constant PushButton4 = createEx( PushButton, "PushButton4", Window1, 24, 96, 88, 28, 0, 0 ) 
constant PushButton6 = createEx( PushButton, "PushButton6", Window1, 256, 96, 88, 28, 0, 0 ) 
--------------------------------------------------------- 
--------------------------------------------------------- 
 
 
WinMain( Window1,Normal ) 


I hope I've managed to explain myself clearly and that there is someone still working on fixing IDE bugs. I am running v1.0.4.

Cheers, Mark

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu