DCGET Tooltip

This forum is for eXpress++ general support.
Post Reply
Message
Author
Manfred
Posts: 14
Joined: Sun Jul 22, 2012 12:10 am
Location: Wesel

DCGET Tooltip

#1 Post by Manfred »

Hi
where is my mistake in reasoning?
this works fine

Code: Select all

@ oDialogZusatz:nOben,oDialogZusatz:nLinks DCSAY "Bemerkung          :";
                                                   OBJECT oDialogZusatz:oText;
                                                   PARENT oDialogZusatz:oRahmenKopf;
                                                    SAYID "bemerkung";
                                                     SIZE 0
         @ DCGUI_ROW,DCGUI_COL DCGET oDialogZusatz:oZuw:m_bem;
                         EDITPROTECT {|| .T.};
                                 EVAL {|o| o:usevisualstyle := oSysPara:doParaWs:VisualStyle,;
                                           oDialogZusatz:oZuw:addEditControl(o,,,.T.);
                                      };
                               OBJECT oDialogZusatz:oZuw:oM_bem;
                               PARENT oDialogZusatz:oRahmenKopf;
                              TOOLTIP {|| zeigetooltip("bemerkungget")}<-----
                              
but this not

Code: Select all

@ oDialogZusatz:nOben,oDialogZusatz:nLinks DCSAY "Bemerkung          :";
                                                   OBJECT oDialogZusatz:oText;
                                                   PARENT oDialogZusatz:oRahmenKopf;
                                                    SAYID "bemerkung";
                                                     SIZE 0
         @ DCGUI_ROW,DCGUI_COL DCGET oDialogZusatz:oZuw:m_bem;
                         EDITPROTECT {|| .T.};
                                 EVAL {|o| o:usevisualstyle := oSysPara:doParaWs:VisualStyle,;
                                           oDialogZusatz:oZuw:addEditControl(o,,,.T.);
                                      };
                               OBJECT oDialogZusatz:oZuw:oM_bem;
                               PARENT oDialogZusatz:oRahmenKopf;
                              TOOLTIP {|| zeigetooltip(oDialogZusatz:oZuw:m_bem)}<-----
                              
not that either

Code: Select all

@ oDialogZusatz:nOben,oDialogZusatz:nLinks DCSAY "Bemerkung          :";
                                                   OBJECT oDialogZusatz:oText;
                                                   PARENT oDialogZusatz:oRahmenKopf;
                                                    SAYID "bemerkung";
                                                     SIZE 0
         @ DCGUI_ROW,DCGUI_COL DCGET oDialogZusatz:oZuw:m_bem;
                         EDITPROTECT {|| .T.};
                                 EVAL {|o| o:usevisualstyle := oSysPara:doParaWs:VisualStyle,;
                                           oDialogZusatz:oZuw:addEditControl(o,,,.T.);
                                      };
                               OBJECT oDialogZusatz:oZuw:oM_bem;
                               PARENT oDialogZusatz:oRahmenKopf;
                              TOOLTIP oDialogZusatz:oZuw:m_bem <-----
                              

Code: Select all

FUNCTION zeigetooltip(cWert)
	     RETURN cWert

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DCGET Tooltip

#2 Post by rdonnay »

There is something about your tooltip that is not thread safe.

Tooltips are run in another thread.
For some reason, your oDialogZusatz:oZuw:m_bem variable is not accessible from the Tooltip thread.

I have only seen this problem in the past if you are trying to access a database field.
The eXpress train is coming - and it has more cars.

Manfred
Posts: 14
Joined: Sun Jul 22, 2012 12:10 am
Location: Wesel

Re: DCGET Tooltip

#3 Post by Manfred »

is there any workaround, or is it absolut inpossible, to display?
The get field is a Memofield of an Databaserecord from dbf and it display a short string from this. The tooltip should display the complete string of the memofield.

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DCGET Tooltip

#4 Post by rdonnay »

Send me a small sample program that I can compile and run.

I will see if I can figure this out for you.
The eXpress train is coming - and it has more cars.

Manfred
Posts: 14
Joined: Sun Jul 22, 2012 12:10 am
Location: Wesel

Re: DCGET Tooltip

#5 Post by Manfred »

oh, its not so important to make a lot of work. It was a little idea of myself. I have to go another way to resolve this problem. Many thanks.

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DCGET Tooltip

#6 Post by rdonnay »

oh, its not so important to make a lot of work.


It won't be a lot of work for me.
I don't like to leave issues like this unanswered on the forum.
eXpress++ users should understand why this is a problem and how to solve it.
The eXpress train is coming - and it has more cars.

Manfred
Posts: 14
Joined: Sun Jul 22, 2012 12:10 am
Location: Wesel

Re: DCGET Tooltip

#7 Post by Manfred »

its ok. How do german people say:"es war eine Schnapsidee".
Thanks a lot and have a good time.

Post Reply