aem Posted May 13, 2019 Share Posted May 13, 2019 Whether added statically at design time or dynamically with xx.add() or xx.addchild() my pre-spaced text seems to be stripped of any multiple spaces - replacing them with one space. So a line like: rootnode.add(nil,''aaaa bbbb'); shows text: aaaa bbbb Our multi-level trees almost always require alignment of the many items that comprise the lines. Using a font like new courier and spaces lets us do that normally. Am I missing a simple way to avoid this stripping action? thanks, tonyM Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 13, 2019 Share Posted May 13, 2019 4 hours ago, aem said: Am I missing a simple way to avoid this stripping action? Hello, Can you please specify which edition and build of UniGUI are you using? Quote Link to comment Share on other sites More sharing options...
aem Posted May 29, 2019 Author Share Posted May 29, 2019 Thanks - We are now official - we purchased and installed 1.90.0.1499 last week. As for the unitreenode text, I see now that the node.text contains the string as intended. So when I check unitreeview1.selected.text it might contain a string formatted like: Chk: 000012345 Seq_no: 45-56 But the browser (firefox or edge) displays: Chk: 000012345 Seq_no: 45-56 All text of all nodes are shown this way - spaces squished out. In another thread I got the idea that HTML interpretation may make it necessary to replace every space with I could do that religiously during the load, but I wouldn't be thrilled... If you come across an easier method please let us know. thanks, tonyM CC Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 29, 2019 Share Posted May 29, 2019 48 minutes ago, aem said: Thanks - We are now official - we purchased and installed 1.90.0.1499 last week. Hello, Thank you, please adjust your forum email address first Quote Link to comment Share on other sites More sharing options...
aem Posted May 29, 2019 Author Share Posted May 29, 2019 Alrighty, I changed my forum address from my standard development address to my formal corporate email account. This of course is not the registration address that the Seattle office used to purchase and register the product - It is my own account within the purchasing company ClearCycle of Seattle WA. I hope this works for everyone. tonyM Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 29, 2019 Share Posted May 29, 2019 3 hours ago, aem said: I changed my forum address from my standard development address to my formal corporate Hello, Thank you. On 5/13/2019 at 8:24 PM, aem said: multiple spaces - replacing them with one space. Can you try to use this approach? 1. UniServerModule -> CustomCSS: .customSG .x-grid-cell-inner { white-space: pre; } 2. UniTreeView -> LayoutConfig -> Cls = customSG Quote Link to comment Share on other sites More sharing options...
aem Posted May 29, 2019 Author Share Posted May 29, 2019 Thanks -- I see where you are going with the "pre" business. (ala <pre>) Your two steps are simple and clear -- but I did not see any change in the tree listing. If you are darn sure should work (in your experience) I will try it in an isolated test app. tonyM CC Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 29, 2019 Share Posted May 29, 2019 25 minutes ago, aem said: but I did not see any change in the tree listing. Please make a simple testcase if possible. Quote Link to comment Share on other sites More sharing options...
aem Posted May 30, 2019 Author Share Posted May 30, 2019 How about that? a simple mainform-only test case works! You get the spaces preserved. Now comes the fun - to trial and error my way between the isolated case and the full case. I will report back. Thank you sincerely, tonyM Quote Link to comment Share on other sites More sharing options...
aem Posted May 30, 2019 Author Share Posted May 30, 2019 Thank You -- Walking back from isolated example to full code revealed a stupid oversight on my part. For those that need spaces, this works well for me as SherZod provided: 1. UniServerModule -> CustomCSS: .customSG .x-grid-cell-inner { white-space: pre; } 2. UniTreeView -> LayoutConfig -> Cls = customSG Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.