Hello,
i activated Tooltips with DC_ToolTipEnable(.T.)
I get some errors at my customers:
MAGICHELP:EXECUTE(938)
Xbase Error.: 2: Parameter hat falschen Typ
Sub System..: BASE[3]
Operation...: "<1545>==<20240821>"
Can Default.: No
Can Retry...: No
Can Substit.: Yes
Severity....: Error
Cargo.......: [None]
Tries.......: 0
Thread No...: 7
Line 938 from _dcfunct:
ELSEIF oXbp == oLastXbp .AND. Valtype(lastmp1) = 'A' .AND. Valtype(mp1) = 'A' .AND. lastmp1[1] == mp1[1] .AND. ;
lastmp1[2] == mp1[2] .AND. nLastEvent == nEvent
What is wrong there ?
Second problem:
If i have the dialog on a second monitor, all tooltips are shown at the most left position of the dialog.
Can this corrected by any parameter ?
Tooltip
-
- Posts: 481
- Joined: Wed Jan 27, 2010 10:25 pm
- Location: Berlin Germany
Tooltip
_______________________
Best Regards
Wolfgang
Best Regards
Wolfgang
Re: Tooltip
Hi,
There are a number of complains with problems of using DC_ToolTipEnable(.T.) and MagicHelp, and none of them are solved??? It seems that MagicHelp in not so "Magic", or DC_ToolTip don't use it correctly.
I think that in the line 938 the cause of error is this part: lastmp1[1] == mp1[1] .AND. lastmp1[2] == mp1[2]
In the error message: Parameter hat falschen Typ, Operation...: "<1545>==<20240821>", it seems that the left part is a numeric value and the right part is DTOS(), that is a character value. You can try to fix this with the following code:
VAR2CHAR(lastmp1[1]) == VAR2CHAR(mp1[1]) .AND. VAR2CHAR(lastmp1[2]) == VAR2CHAR(mp1[2])
but it doesn't mean that its the right solution.
There are a number of complains with problems of using DC_ToolTipEnable(.T.) and MagicHelp, and none of them are solved??? It seems that MagicHelp in not so "Magic", or DC_ToolTip don't use it correctly.
I think that in the line 938 the cause of error is this part: lastmp1[1] == mp1[1] .AND. lastmp1[2] == mp1[2]
In the error message: Parameter hat falschen Typ, Operation...: "<1545>==<20240821>", it seems that the left part is a numeric value and the right part is DTOS(), that is a character value. You can try to fix this with the following code:
VAR2CHAR(lastmp1[1]) == VAR2CHAR(mp1[1]) .AND. VAR2CHAR(lastmp1[2]) == VAR2CHAR(mp1[2])
but it doesn't mean that its the right solution.
Best regards,
Slavoljub Damnjanovic
SD-SoftDesign, Alaska Software Technology Partner
https://www.sd-softdesign.com
https://www.sd-softdesign.rs
Slavoljub Damnjanovic
SD-SoftDesign, Alaska Software Technology Partner
https://www.sd-softdesign.com
https://www.sd-softdesign.rs
Re: Tooltip
hi,
Magighelp is not a Windows Tooltip Control ***, it is just a simple BAD Xbase++ "Workaround"
*** https://learn.microsoft.com/en-us/wind ... p-controls
it use Xbase++ Thread Timing and NOT Windows Event, so when Thread become active it might have NOT the same Status when Control got Focus.
Magighelp is not a Windows Tooltip Control ***, it is just a simple BAD Xbase++ "Workaround"
*** https://learn.microsoft.com/en-us/wind ... p-controls
it use Xbase++ Thread Timing and NOT Windows Event, so when Thread become active it might have NOT the same Status when Control got Focus.
greetings by OHR
Jimmy
Jimmy
Re: Tooltip
Hi,
I know that MagicHelp is an Alaska sample in Source\Samples\Solution\Tooltip. It works fine in their example, and I don't think its a bad solution. Maybe its usage in eXpress++ system is not correct and needs some changes.
In my PowerWin library I also implemented tooltip, but its simpler than in Alaska sample. My solution user :enter() and :leave() events to display and destroy tooltips, when they are defined for the Xbp object with :toolTipText variable. It don't need a watcher/dispatcher thread like in Alaska example. There is no problem with it in any situation.
I know that MagicHelp is an Alaska sample in Source\Samples\Solution\Tooltip. It works fine in their example, and I don't think its a bad solution. Maybe its usage in eXpress++ system is not correct and needs some changes.
In my PowerWin library I also implemented tooltip, but its simpler than in Alaska sample. My solution user :enter() and :leave() events to display and destroy tooltips, when they are defined for the Xbp object with :toolTipText variable. It don't need a watcher/dispatcher thread like in Alaska example. There is no problem with it in any situation.
Best regards,
Slavoljub Damnjanovic
SD-SoftDesign, Alaska Software Technology Partner
https://www.sd-softdesign.com
https://www.sd-softdesign.rs
Slavoljub Damnjanovic
SD-SoftDesign, Alaska Software Technology Partner
https://www.sd-softdesign.com
https://www.sd-softdesign.rs
Re: Tooltip
hi,
as i say there is a REAL Windows Control called Tooltip.
https://learn.microsoft.com/en-us/windo ... p-controls
MagicHelp is a Xbase++ Tool, written by a User (don´t remember WHO did it), and work with Xbase++ Thread Timing.
it expect row/col in mp1[1]/mp1[2] to work but often have other Event in mp1 and than CRASH
the Problem exist since v1.5
ALASKA should finally implement a Real Windows Tooltip Control and other missing Windows Controls
as i say there is a REAL Windows Control called Tooltip.
https://learn.microsoft.com/en-us/windo ... p-controls
MagicHelp is a Xbase++ Tool, written by a User (don´t remember WHO did it), and work with Xbase++ Thread Timing.
it expect row/col in mp1[1]/mp1[2] to work but often have other Event in mp1 and than CRASH
the Problem exist since v1.5
ALASKA should finally implement a Real Windows Tooltip Control and other missing Windows Controls
greetings by OHR
Jimmy
Jimmy
Re: Tooltip
Hi,
I know all Windows controls, including Tooltip. In my PowerWin library I have implemented some of them: Animation, SysLink and Up-Down. I think that Alaska has no more interest to implement other missing Windows controls. If you prefer Windows Tooltip control, why don't you implement it and make your contribution? I believe you can achieve that.
Regarding MagicHelp, if the problem is known and exists so long, its strange that no one fixed it so far? That couldn't be so hard and impossible.
I know all Windows controls, including Tooltip. In my PowerWin library I have implemented some of them: Animation, SysLink and Up-Down. I think that Alaska has no more interest to implement other missing Windows controls. If you prefer Windows Tooltip control, why don't you implement it and make your contribution? I believe you can achieve that.
Regarding MagicHelp, if the problem is known and exists so long, its strange that no one fixed it so far? That couldn't be so hard and impossible.
Best regards,
Slavoljub Damnjanovic
SD-SoftDesign, Alaska Software Technology Partner
https://www.sd-softdesign.com
https://www.sd-softdesign.rs
Slavoljub Damnjanovic
SD-SoftDesign, Alaska Software Technology Partner
https://www.sd-softdesign.com
https://www.sd-softdesign.rs
Re: Tooltip
hi,
i use FIVEWIN / Harbour since 5 Years (after 20 Years Xbase++)
i have made it in my DXE LIb, but i do not use Xbase++ any more.
i use FIVEWIN / Harbour since 5 Years (after 20 Years Xbase++)
that the Point, that Alaska has no more interest to finish there Work and let User alone with the Problem.
greetings by OHR
Jimmy
Jimmy