I had made a window using wnim a year and a half ago. Since then I had not recompiled the program. So I went to recompile today and the autolayout wasn't working. It took me a long time to figure out what was wrong. Well, the error was in the use of "_" (underline) in the name of the controls' variables. As Nim ignores but makes it easier to visualize, I adopted this scheme. In the past, the autolayout recognized it, but I see that now it doesn't.
See the code below. statictextA, statictext_B and statictext_C, declared like this. As we know, for Nim it's all without the "_". Now see the autolayout. I used statictextA, statictextB and statictext_C. If you test each one separately, you will see that the only problem is the use of statictext_C in the autolayout, that is, the "_" is not ignored.
I had made a window using wnim a year and a half ago. Since then I had not recompiled the program. So I went to recompile today and the autolayout wasn't working. It took me a long time to figure out what was wrong. Well, the error was in the use of "_" (underline) in the name of the controls' variables. As Nim ignores but makes it easier to visualize, I adopted this scheme. In the past, the autolayout recognized it, but I see that now it doesn't.
See the code below.
statictextA
,statictext_B
andstatictext_C
, declared like this. As we know, for Nim it's all without the "_". Now see the autolayout. I usedstatictextA
,statictextB
andstatictext_C
. If you test each one separately, you will see that the only problem is the use ofstatictext_C
in the autolayout, that is, the "_" is not ignored.Example: