Hey Adrian, 2009/6/5 Adrian Sutherland <[email protected]>: > I've got to the point that I have got the 3270 part working - > connecting to the host etc. by mashing up with the s3270 program (of > the x3270 suite). > > I can now display a screen! > > 3270/Mainframe screens are essentially totally made up of fields which > can be protected (readonly) or non-protected (where a user can put > their input). > > Originally I was going to map protected fields to WText - but the > problem I have here is that it seems to remove training (and perhaps > leading) spaces - as you can imaging disastrous to a fix font old > fashioned layout! > > I tried resizing the WText() to no effect. > > I tried using "<pre></pre>" tags but it then seemed to put each field > on a new line(?) Note to self - I need to retry this with an explicit > inline().
Perhaps you could replace the spaces with a entity character ? > So I tried mapping all fields to WLineEdit. After fiddling with > Margins (I had to set a negative one), Padding and Borders I got the > spacing working great. I setReadOnly() for protected fields. > > WLineText has the setTextSize() which allows me to mitigate any > trailing space character removal. > > The issue I have now is that although the field is read only it can > still be selected (i.e by the mouse or by tabbing). What I would like > is that a readonly field be unselectable - so when you tab you tab > through the "unprotected" fields only. Only setEnabled() would do that (but yes, it grays out). > Is it feasibly to achieve this do you think? If so would this be an > acceptable change to Witty? Or could you please give me a hint of what > code I should look to change - I would make a special version or > WLineEdit. > > Or do folks think it would make more sense (simpler) to make a version > of WText that somehow keeps spaces. Perhaps adding a setTextSize() > member function. And use WText for protected fields. I would indeed go back to the WText solution and use the HTML tag for a space ? > Disabling the WLineEdit control greys it out ... if I could stop it > greying out I could disable() rather than set ReadOnly() - is this > possible? Note to self - is there a CSS way to do this? With CSS: not reliably ! CSS does not control very well the native controls (line edits, combo boxes)... Regards, koen ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
