How to fit long text into tab in Rave Reports - delphi

I'm making a report with a Rave Reports component in Delphi. I've come to some issues that I cannot figure out myself.
If I have a very long number or text without spaces inside, how can I fit it into the tab? My tabs have concrete widths and I don't want that very long text is truncated that doesn't fit into the tab. Is there any way to check if text is longer than tab width and then continue this text on new line? Also, is there a way for tab padding?
Regards,
evilone

I would seriously consider changing your reporting engine to, for example, Fast Reports. Last i heard was Rave Reports is no longer - i may be wrong, but just doing a quick check i couldnt even get to their website.
Fast Reports has the functionality you describe.

Related

Using TAB to exit a TMemo component

I have a requirement to allow users to tab around a Delphi application screen in a certain order. This is fine for almost everything, except that I can't seem to find a way to tab OUT of a memo component. I realise that Tab, itself, is a legitimate key in a memo for formatting purposes.
Does anyone know if it is possible at all to tab to the next control from a Tmemo? I don't need the Tab format in the Memo, so I'm quite happy to sacrifice that.
I'm using Delphi 5 Enterprise.
Thanks in advance.

Maintain splitted editor windows in PhpStorm

Using PhpStorm, I usually have 2 or 3 source files opened in splitted editors. Now that I have a secondary screen, I've put all the toolbars in the second screen, and I'd like to have a fixed 3-splits layout for my editors. But as soon as I close the last tab in one of the splits, that split is gone.
I've search through PhpStorm options and surfed for an answer, but didn't seem to find how to do it.
Is there any way to fix the split layout in PhpStorm?
It is not possible to get such behaviour in current version.
https://youtrack.jetbrains.com/issue/IDEA-66407 -- watch this ticket (star/vote/comment) to get notified on progress.

Crystal Reports - Printed field alignment issue

We have created a couple reports in VS2008 and since we've converted to 2012 we've run into an issue where the fields look perfect in the designer and in the viewer, but when we print it the fields are all moved. Now it isn't all the same movement either, some items moved down about an inch, others moved up a half inch, some left/right/etc. So to resolve the issue immediately I've opened designer and manually moved the fields so that they look wrong on designer but they print properly. The issue I'm running into now is when I put a field at the very top of the page, it still pushes it down despite all margins being set to zero.
Now I don't like breaking my designer to make it work, so if there is a more permanent solution people are aware of, that would be ideal. But if there is anyway to force this field to be pushed to top of page, that would be an acceptable temp fix.
The nature of our need here is that this prints on a specific insurance form and the fields have to fit in the proper boxes or they are declined.
Thanks in advance,
Dylan
With the use of guidelines in crystal report you can resolve this issue.
you can enable guidelines from File--> option --> in which layout tab
in Design view panel you can select Guidelines.
now you can design your crystal report and set all the fields in touch of guidelines.
remove unnecessary guidelines. you can set your report easily.
We had to recreate the form in VS2012. Something about the conversion process for an 08 file to 12 just would not hold margins at all.

Team Explorer work item UI is too wide

Is there any way to get the work item query results preview pane to auto-size its width? It is very often "too wide", with the controls being way too wide for their content. Here's an example--why do I have to have horizontal scrolling? Is there any way to fix this?
(When one opens a single work item, the width is streched appropriately. This is the behavior I want for the above query results preview.)
My favorite is opening work items when checking code in. If you open the work item from the check in window, close it, and open it again, then the spacing starts doubling. Every time you reopen it the spacing just gets bigger.
It's a bug. Hopefully 2010 fixes this.

Seeking a way to have a "Hover button" to expand a section

i have a flow panel that i'm adding extra items to it at runtime based on whether they have chosen to show all the items. that's all works fine; the expansion is controlled by a toolbar button.
the trouble is we'd like the user to be able to move his mouse over the "+" sign to expand the section.
initially i looked at TSpeedButton (OnMouseEnter) but even when it's "Flat", the focus rectangle still shows and so the glyph isn't centered. the main problem with this solution is it's appearance.
then i looked at making a descendant of TImage. that's a bit "unconventional" but it'd work. in OnMouseEnter or OnClick, it'd toggle an internal boolean "Expanded" flag and then load the appropriate picture from a resource. i have a dislike for unconventional solutions like that.
i need to add it to a few different screens so it's probably prudent for me to have/build a component for this. i have JVCL but i don't see anything suitable offhand.
thank you for your comments/help!
I always liked the approach used by the ModelMaker Code Explorer.
For example, when you're adding a new method, some rarely-used stuff is displayed collapsed ('Options and Directives' in the image below).
(source: 17slon.com)
When you hover over the text, you notice that it's actually a flat button. (Except that it's not - I believe Gerrit does some custom painting magic here).
(source: 17slon.com)
When you click this button, a panel appears. Button is still there, but with a new image. You can click it to close the panel.
(source: 17slon.com)
The state of this toggle button is preserved between sessions. IOW, even if you restart the Delphi, next tima you invoke 'Add Method', the 'Options and Directives' panel will appear exactly as you left it the last time.
i have a dislike for unconventional solutions like that.
Over the past few years, I have grown a bit suspicious of unconventional UI solutions — which is what you seem to be creating here. Why not just use a button that the user actually has to click? That seems to be much more common in the software I use, be it MS Office or programming utilities. Also, I'd make the button somewhat larger: in the screenshot, it really seems like a tiny little thing you have to target with your mouse cursor. Oh well, and if I'm bugging you with advise you haven't asked for anyway, why not give it ">>" as a caption instead of "+"? And if you'd give it a textual caption with a mnemonic as well, it'd actually be keyboard accessible. All this should make your UI better and more intuitive. I guess.
I do apologize for not answering your question, but I hope you'll spend 2 minutes thinking whether your users would actually prefer this solution :-)
Good luck!
Actually, I think that using a TImage in this situation is pretty conventional. I have seen many people suggest using the TImage, when either the TButton, or any of its associates did not have the right amount of control for whatever the developer was trying to do.
Have you tried a TBitBtn? I think when you get rid of the text it centers whatever image you have associated with it. I just checked in Delphi 6, all I have installed on this machine, and it had the MouseMove event.

Resources