English
Bugs and vermeintliche

Gridboxen and SubClass want not together

 

Jörg
Sellmeyer
If I into example from the Profanhilfe instead of one Buttons one List view einsetze, functions the Repaint not any more.
have I as a Error drin or is the still one Profanbug?

deference! only XProfan11!
 $H Messages.ph
 $H windows.ph
 $DEFINE TEST

SubClassProc

    If SubClassMessage(%hWnd, ~wm_sizing)

        SetStyle %hwnd, 1, GetStyle(%hwnd, 1) | $02000000
        Resize
        Set("WinProc", 0)

    ElseIf SubClassMessage(bt&, ~wm_rbuttondown)

        SetText bt&, "Autsch!"
        Set("WinProc", 0)

    ElseIf SubClassMessage(bt&, ~wm_rbuttonup)

        SetText bt&, "Test1"
        SetMenuItem 3000
        Set("WinProc", 0)

    ElseIf SubClassMessage(st&, ~wm_mousemove)

        SetMenuItem 3001
        Set("WinProc", 0)

    ElseIf SubClassMessage(%hwnd, ~wm_close)

        SetMenuItem 3999
        Set("WinProc", 0)

    EndIf

ENDPROC

Proc Resize

    SetWindowPos bt& = 0, 50 - Width(%HWnd)/2, Height(%HWnd) - 75
    SetWindowPos bt2& = Width(%HWnd)/2, 50 - Width(%HWnd)/2, Height(%HWnd) - 75
    SetWindowPos st& = 0, 0 - 0,0; 0
    SetWindowPos tb& = 0, 0 - 0,0; 0

ENDPROC

declare bt&, bt2&, st&, tb&
declare end%
cls
st& = create("StatusWindow", %HWnd, "Statuszeile")
tb& = create("Toolbar", %HWnd,0,15,1,1000,1)
bt& = create("Button", %HWnd, "Test1", 0, 50, Width(%HWnd)/2, Height(%HWnd) - 75)
 $IFDEF TEST
bt2& = create("GridBox", %HWnd, "Test2",0, Width(%HWnd)/2, 50, Width(%HWnd)/2, Height(%HWnd) - 75)
 $ELSE
bt2& = create("Button", %HWnd, "Test2", Width(%HWnd)/2, 50, Width(%HWnd)/2, Height(%HWnd) - 75)
 $ENDIF
Var cb& = Create("CheckBox",%hwnd,"Listen random füllen",370,30,160,20)
SubClass %HWnd, 1'SubClassing the Mainwindow on
SubClass bt&,   1'SubClassing the 1. Turn Buttons
SubClass st&,   1'SubClassing the Statuszeile on

whilenot end%

    waitinput

    If %Key = 4

        Resize
        SetStyle %hwnd, 1, GetStyle(%hwnd, 1) - $02000000

    ElseIf MenuItem(3000)

        MessageBox("Rechtsklick on Button 1!","Test",0)

    ElseIf MenuItem(3001)

        SetText st&,Str $(%message)
        MessageBox("Mausbewegung over Statuszeile!","Test",0)

    ElseIf MenuItem(3002)

        MessageBox("wm_activate","Test",0)

    ElseIf MenuItem(3003)

        MessageBox("wm_syscommand",st$(&sWParam),0)

    ElseIf MenuItem(3999)

        Case Messagebox("Wollen tappt im dunkeln the program really leave?","Frage",36) = 6 :
        end% = 1

    EndIf

endwhile

'Subclassing again switch off
SubClass %HWnd, 0
SubClass bt&, 0
SubClass st&, 0
end
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
08/26/08  
 




Jörg
Sellmeyer
it blockiert in the Context with the SetStyle-row (what becomes there really for a Style staid?). If the auskommentiert becomes (both Lines!), functions But it flackert How hell.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
08/26/08  
 




Frank
Abbing
$2000000 is same WS_CLIPCHILDREN -->
Excludes the area occupied by child windows when drawing occurs within the parent window. Diese style is used when creating the parent window.

can your Program powerful ausbremsen and ought to well only on Parent-Window applied go.

by me functions it in both Make not, egalk whether with or without SetStyle. must go to work.
 
08/27/08  
 




Jörg
Sellmeyer
the hakt still...
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
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

6.382 Views

Untitledvor 0 min.
Jörg Sellmeyer06/22/20
Ernst05/19/16
H.Brill04/09/16
rquindt11/21/15
More...

Themeninformationen

this Topic has 2 subscriber:

Jörg Sellmeyer (3x)
Frank Abbing (1x)


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