|
From: Alexander S.K. <al...@be...> - 2013-05-17 05:23:59
|
> Method SetText works correctly in current version, but in 216c it
does not, see sample below.
> In current
> METHOD SetText( c ) INLINE hwg_Setwindowtext( ::Handle, c ), ::title := c, ::Refresh()
>
> In 216c
> METHOD SetText( c ) INLINE hwg_Setwindowtext( ::Handle, c )
>
>
> #include "guilib.ch"
> func main()
> local odlg, bt1, i1
> i1:=0
> init dialog odlg title "test" at 0,0 size 800,400
> @010,010 ownerbutton bt1 of odlg text "cnt" size 100,24 on click {||i1++,bt1:SetText(str(i1))}
> odlg:activate()
> return nil
Yes, I see. It doesn't work for ownerbuttons, because the text there
is drawn in the prg, using the :title value. I'll fix it.
Regards, Alexander.
|