Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Yousfi Benameur
  Where is Yousfi Benameur?
 El Bayadh
 Algeria
 Yousfi Benameur
 To: Emerson Reed
  Where is Emerson Reed?
 Americana - SP
 Brazil
 Emerson Reed
 Tags
Subject: RE: Ctl32_BalloonTip
Thread ID: 188742 Message ID: 188977 # Views: 5 # Ratings: 0
Version: Visual FoxPro 9 Category: Classes and Objects
Date: Tuesday, August 12, 2008 8:54:37 PM         
   


> I've recently updated Ctl32 classes in my app and BalloonTip controls with large texts are displaying a blank space after text (as you can see in the attached image).
>
>
>
> It works as expected if I "downgrade" to the older version.
> Somebody could help me to solve this?
>
> Thanks!
>
> Emerson Santon Reed
> http://weblogs.foxite.com/emersonreed
> http://emersonreed.spaces.live.com

Hi Emerson
I download ctl32 and do some tests in the class and on the form1.
Your problem is in create method of the class and _setmargin() who not executed because all margins=0 !
In method "create" i do this test with changing the ctlmarginBottom ,i force the method to execute _setmargin()
With this setting and your text above,the baloon is good.

******************
messagebox(trans(This.ctlMarginTop)+"  "+trans(This.ctlMarginLeft)+"  "+trans(This.ctlMarginRight)+"  "+trans(This.ctlMarginBottom ))
This.ctlMarginBottom=This.ctlMarginBottom-28
*********************
If This.ctlMarginTop <> 0 ;
        Or This.ctlMarginLeft <> 0 ;
        Or This.ctlMarginRight <> 0 ;
        Or This.ctlMarginBottom <> 0 Then

    This._SetMargins()

Endif

If This.ctlMargin <> 0 Then
    This.ctlMargin = 	This.ctlMargin
Endif

try to review this point in the class.


regards
Yousfi Benameur

ENTIRE THREAD

Ctl32_BalloonTip Posted by Emerson Reed @ 8/11/2008 6:54:10 PM
RE: Ctl32_BalloonTip Posted by Bernard Bout @ 8/12/2008 1:25:59 AM
RE: Ctl32_BalloonTip Posted by Emerson Reed @ 8/12/2008 1:16:45 PM
RE: Ctl32_BalloonTip Posted by Carlos Alloatti @ 8/12/2008 3:12:05 PM
RE: Ctl32_BalloonTip Posted by Emerson Reed @ 8/12/2008 4:21:36 PM
RE: Ctl32_BalloonTip Posted by Carlos Alloatti @ 8/12/2008 7:09:17 PM
RE: Ctl32_BalloonTip Posted by Emerson Reed @ 8/12/2008 10:20:08 PM
RE: Ctl32_BalloonTip Posted by Yousfi Benameur @ 8/12/2008 8:54:37 PM