Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 18 DEC 2002 09:19:58PM Barry Stevens wrote:

I am converting a 3rd party AREV system to OpenInsight. There are a number of popups created with multiple lines of formatted information in the Heading. As this is not a feature of OI popups, does anyone have a workaround they might have used.

Barry


At 19 DEC 2002 04:50AM Oystein Reigem wrote:

Barry,

Can't think of an easy way. Here are threee hard(ish) ones:

Alternative 1: Make your own popup by copying and modifying the POPUP window and the POPUP and POPUP_SUB stored procedures. Remove the edit table's heading and instead use a static for each heading. Add some programming that finds out how many lines of text you need in the headings and SIZE the statics, the edit table and the window accordingly. Accept that headings will not follow if columns are resized by the user.

Alternative 2: As 1 but with simpler modifications. Accept that headings must be short. Use balloon help (bubble help, tooltip) to show the full heading. (I forget to which extent OI supports balloon help, but Sprezzatura's got a tooltip utility you can use.) You might need to exchange the edit table's heading with something else, like in 1, but at least it will be something with the same size so you won't have to fiddle with all the SIZEs.

Alternative 3: Make your own popup from scratch. You might not need all the functionality of OI's popups.

- Oystein -


At 19 DEC 2002 08:12AM Donald Bakke wrote:

Barry/Oystein,

To simulate multiline headings we've removed the edittable headings and put a BMP their instead. The BMP was drawn to look like a real heading but only taller. Obviously the limitations here are that the columns can't be resizable and the background colors are fixed.

dbakke@srpcs.com

SRP Computer Solutions, Inc.


At 19 DEC 2002 09:36AM Oystein Reigem wrote:

Don,

Wouldn't statics with font set to Small Fonts size 6 or 7 work equally well and be more flexible too?

- Oystein -


At 19 DEC 2002 10:45AM Donald Bakke wrote:

Oystein,

But how would you get the 3D-border look?

dbakke@srpcs.com

SRP Computer Solutions, Inc.


At 19 DEC 2002 10:59AM Oystein Reigem wrote:

Don,

Hit the screen from behind with a hammer.

No, seriously - I'm quite happy to get rid of some of the chunky edit table buttons. If only I could get rid of the row number buttons as well. In my newest app I've replaced all heading buttons with statics, intermixed with some smaller buttons for column-specific popups. I've sacrificed column resizing. I use balloon help to show the full content of edit table cells.

- Oystein -


At 19 DEC 2002 11:13AM Donald Bakke wrote:

Oystein,

If only I could get rid of the row number buttons as well.

Do you mean eliminate the row buttons as a whole or just replace the numbers with something else?

dbakke@srpcs.com

SRP Computer Solutions, Inc.


At 19 DEC 2002 03:53PM Oystein Reigem wrote:

The row numbers themselves are OK. There are of course times when you don't need them but most of the time they're useful.

But I object to the appearance of the row buttons. They are old-fashioned and different from the other buttons.

- Oystein -


At 21 DEC 2002 03:55AM Barry Stevens wrote:

Sorry, but could you expand on (How To):

" I use balloon help to show the full content of edit table cells."

Barry


At 21 DEC 2002 06:13AM Oystein Reigem wrote:

Barry,

I purchased a tooltip (balloon help, bubble help) utility from Sprezzatura. I've got a 16-bit version ZZ_TOOLTIP and a 32-bit version ZZX_TOOLTIP.

I don't think Sprezzatura have marketed their tooltip utility. It was originally developed for one particular customer. Hopefully they're willing to sell you a copy if you're interested.

For some controls, like buttons, one can use it to show an explanatory text. For other controls, like edit tables, one can use it to show content (data values). E.g, for edit tables one can show the content of one cell at a time, by letting the cursor hover above that cell.

Be aware that it does not work well on combos.

Here's how I'd use it in a window with a button BUT and couple of edit tables ET1 and ET2:

CREATE event:

ToolTipList=@Window:".BUT" : @FM : @Window:".ET1" : @FM : @Window:".ET2"

ToolTipText=Some explanatory text for the button" : @FM : "Dummy" : @FM : "Dummy"

call ZZx_ToolTip( @Window, "HOOK", ToolTipList, ToolTipText )

WINMSG event:

call ZZx_ToolTip( CtrlEntID, "WINMSG", Param1, Param2, Param3, Param4 )

/* (the parameters are the usual WINMSG parameters) */

CLOSE event:

call ZZx_Tooltip( @Window, "UNHOOK" )

- Oystein -

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/5e59522023a746b185256c94000cd0d0.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1