PDA

View Full Version : ToolTip



Queiroz
29-Jun-2018, 09:58 AM
Hello,

In our system we use the cWinToolTip class of the cWintooltip.pkg mixin package.
When compiling is displaying error in this line:



Type tTOOLINFO
Field tTOOLINFO.cbSize as Integer
Field tTOOLINFO.uFlags as Integer
Field tTOOLINFO.hwnd as Handle
Field tTOOLINFO.uid as Integer
==> Field tTOOLINFO.rect as Char tRect_size
Field tTOOLINFO.hInst as Handle
Field tTOOLINFO.lpszText as Pointer
Field tTOOLINFO.lParam as Integer
End_Type


Where does this "tRect_size" come from that is not recognized?

Does anyone know how to solve it?


Thank you,
Queiroz

Vincent Oorsprong
30-Jun-2018, 12:45 AM
Querioz,

The tTOOLINFO as you show is the old way of struct declaration (valid till DataFlex 10) and can be better converted to the Struct...End_Struct format.

Now to the tRect_Size. Each Type...End_Type "struct" defines it size in bytes in a constant named after the "struct" + "_Size". So somewhere in your code the tRect "struct" is no longer defined.

One of the actions taken in 19.1 is to cleanup the old "structs" and make them real structs.