IDE forgets Caption on Side setting in LabelEdit control

new topic     » topic index » view thread      » older message » newer message

Hi,

I discovered that the IDE does not store the "Caption on Side" setting in the .prj file. The default side is for the caption to be on the left. If you set the caption to be on the right, exit the IDE and then start it again, you'll find your caption back on the left again.

I have coded a fix for this and wanted to offer the fix here for the maintainer of the IDE. I added a few lines to the IDE_proj.ew file.

In writeControlToPrj() line 8012 I added three lines after ..

    if length( ctrl[ValueEdit] ) then 
        printf( outFile, "Valueedit : %s\n", {ctrl[ValueEdit]} ) 
    end if 

these are the three lines I added:-

    if ctrl[LabelSide] then 
        printf( outFile, "LabelSide : %d\n", {ctrl[LabelSide]} ) 
    end if 

The second change I made was at line 10412 I added two lines after ..

		elsif match( "Valueedit", text ) = 1 then 
            controls[index][ValueEdit] = extractText( text ) 

these are the two lines I added:-

		elsif match( "LabelSide", text ) = 1 then 
            controls[index][LabelSide] = extractNumber( text ) 

I can provide the full IDE_proj.ew to anyone that wants it.
I hope this helps,
Cheers,
Mark

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu