Page 1 of 1

SAYTOOLTIP / GETTOOLTIP

Posted: Fri Feb 05, 2010 4:51 am
by Tom
DCSAY ... GET as a complex command to create a static and an SLE needs SAY- and GETTOOLTIPS in this combination, like other clauses (SIZE, OBJECT) need to have this prefix to identify the object. But in most cases, say- and gettooltip are the same. Would it be possible to allow just TOOLTIP in this situation to create both with one clause?

Code: Select all

@ 1,1 DCSAY "Name:" GET db->name TOOLTIP 'Please enter the customer's name'
acts as:

Code: Select all

@ 1,1 DCSAY "Name:" GET db->name GETTOOLTIP 'Please enter the customer's name' SAYTOOLTIP 'Please enter the customer's name'

Re: SAYTOOLTIP / GETTOOLTIP

Posted: Fri Feb 05, 2010 8:34 am
by rdonnay
Tom -

It appears that I started doing that at one time and never finished the job, because the following code is in DCDIALOG.CH (build 254) at line 873

Code: Select all

    [TOOLTIP <cToolTip>]                                        ;
To finish the job, you need to add the following lines at 953 and 1011 (or therabouts):

Code: Select all

    [;DC_GetListSet(DCGUI_GETLIST,cGETLIST_TOOLTIP,<cSayToolTip>)]          ;
    [;DC_GetListSet(DCGUI_GETLIST,cGETLIST_TOOLTIP,<cToolTip>)]             ;   <<<< new

    [;DC_GetListSet(DCGUI_GETLIST,cGETLIST_TOOLTIP,<cGetToolTip>)]          ;
    [;DC_GetListSet(DCGUI_GETLIST,cGETLIST_TOOLTIP,<cToolTip>)]             ;    <<<< new

Re: SAYTOOLTIP / GETTOOLTIP

Posted: Mon Feb 15, 2010 4:14 am
by Tom
Thanks! :D

Re: SAYTOOLTIP / GETTOOLTIP

Posted: Mon Feb 15, 2010 9:22 am
by rdonnay
Tom -

I have sent you a few private emails and got no response.
Need to give Chris Andries you address so he can mail the book.

Roger

Re: SAYTOOLTIP / GETTOOLTIP

Posted: Mon Feb 15, 2010 10:33 am
by Tom
Hi, Roger.

I had some mail problems, but I did answer. Please look at your PN-box of the forum. This is the last mail I wrote on friday.