How to change pushbutton title

forum.cdk (1998-2005) & forum.td.cdk (2005-2010)
René Haken

How to change pushbutton title

Post by René Haken » 02 Jun 2003, 16:38

 Posted by:  René Haken 

I'm changing object titles in forms via CDK functions. But I can't find out
how to change pushbutton title. I tryed SetStrProperty and SetAttribute with
no result.
Someone can help me ??

Thanks

Rene Haken

Jeff Luther
Site Admin
Site Admin
United States of America
Posts: 2385
Joined: 04 Mar 2017, 18:34
Location: Palm Springs, California

Re: How to change pushbutton title

Post by Jeff Luther » 02 Jun 2003, 18:07

 Posted by:  Jeff Luther 

This works: Call SalSetWindowText( pbSomePushbutton, 'New Title' )

and you can even set it like:
Call SalSetWindowText( pbSomePushbutton, 'New &Title' )

if you want the "T" underscored, so that Alt+T will activite the button.

- Jeff Luther/PC Design
email: pcdesign@pulpcards.com
info: www.pulpcards.com/Centura/

Jim McNamara

Re: How to change pushbutton title

Post by Jim McNamara » 02 Jun 2003, 22:38

 Posted by:  Jim McNamara 

Hi Jeff,

I almost gave the same reply this AM. Works great for runtime, but, I think
Rene wants the CDK to write it into the target object's property sheet.
AFAIK, SetStrProperty(...) and SetAttribute(...) only work with programmer
defined attributes.

Jeff Luther
Site Admin
Site Admin
United States of America
Posts: 2385
Joined: 04 Mar 2017, 18:34
Location: Palm Springs, California

Re: How to change pushbutton title

Post by Jeff Luther » 02 Jun 2003, 23:36

 Posted by:  Jeff Luther 

Thanks for the correction/clarification!

- Jeff

W.P.Nijhof

Re: How to change pushbutton title

Post by W.P.Nijhof » 03 Jun 2003, 09:46

 Posted by:  W.P.Nijhof 

In article , rene.haken@seznam.cz
says...
Should be cdkItem.SetProperty( CDK_IT_WindowTitle, 'text' )
--
WayPay

Return to “td.cdk”

Who is online

Users browsing this forum: [Ccbot] and 0 guests