English
Bugs and vermeintliche

Gettext$() and Statuswindow

 

Dieter
Zornow
have straight with höchstem amazing fixes, I with Gettext$() not each boxes of/ one Statusbar read can. its of course not in Help erwähnt but I find if I with Settext each boxes settle can heard the Gegenstück simply and logischer point moreover. especially since it a really simple thing would the To implementieren.
Proc GetStatusText

    parameters hndl&,part&
    Declare buf#,Text$
    Dim buf#,512
    sendmessage(hndl&,1026,part&,buf#)
    Text$ = string $(buf#,0)
    Dispose buf#
    return Text$

endproc

cls
Declare s#
Dim s#,12
Long s#,0 = 50, 280, -1
var st& = Create("StatusWindow",%Hwnd,"",3,s#)
dispose s#
settext st&,0,"Feld 1"
settext st&,1,"Feld 2"
settext st&,2,"Feld 3"
print gettext$(st&,0)
print gettext$(st&,1)
print gettext$(st&,2)
print
print "Nun with Sendmessage"
print GetStatusText(st&,0)
print GetStatusText(st&,1)
print GetStatusText(st&,2)
waitinput
 
Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
09/07/08  
 




Jörg
Sellmeyer
this is of course Done, shows but a others Error, the me already more frequently noticed is:
The expenses with print GetText$ erfolgen one after another, instead of among themselves:
Proc GetStatusText

    parameters hndl&,part&
    Declare buf#,Text$
    Dim buf#,512
    sendmessage(hndl&,1026,part&,buf#)
    Text$ = string $(buf#,0)
    Dispose buf#
    return Text$

endproc

cls
Declare s#
Dim s#,12
Long s#,0 = 50, 280, -1
var st& = Create("StatusWindow",%Hwnd,"",3,s#)
dispose s#
settext st&,0,"Feld 1"
settext st&,1,"Feld 2"
settext st&,2,"Feld 3"
print gettext$(st&,0) + ""
print gettext$(st&,1)
print gettext$(st&,2)
print
print "Nun with Sendmessage"
print GetStatusText(st&,0)
print GetStatusText(st&,1)
print GetStatusText(st&,2)
waitinput
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
11/04/11  
 



@Jörg: How here:  [...] 
 
11/04/11  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

5.742 Views

Untitledvor 0 min.
RudiB.12/26/21
Jörg Sellmeyer05/30/18
Wilfried05/22/16
Achim Engelhardt02/12/15
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie