English
Forum

Strange Behavior of Toolbars

 

Jac
de
Lad
I have the following trouble:

The under listed code lead moreover, that a TOolbar prepares becomes. so far, so well, Gibts but a problem: usually becomes one Control (z.B. one Button) the The Coordinates 0,0,100,24 has under The Toolbar gezeichnet; with my latest Program must I but the wide the Toolbar dazuaddieren, because the Button otherwise under the Toolbar lying...find I somehow strange. I have yet rausgefunden, Why the so is, but Perhaps has Yes someone ne idea...
CompileMarkSeparation
Def GET_TOOLTIP(1) sendmessage(&(1),1059,0,0)

proc TBButton

    Parameters Index%,id%,icon$,tt$
    declare s#,text#,hricon&
    Dim s#,40
    Dim text#,500
    String text#,0=tt$
    Long s#,0=40
    Long s#,4=$0
    Long s#,8=tb&
    Long s#,12=id%
    Long s#,36=text#
    Sendmessage(GET_TOOLTIP(tb&),$404,0,s#)
    SetStyle GET_TOOLTIP(tb&),$D000041
    Dispose s#
    Dispose Text#
    hricon&=LoadIcon(%hInstance,Addr(icon$))
    ImageList_AddIcon(ti&,hricon&)
    Dim s#,20
    Long s#,0=index%
    Long s#,4=If(index%=-1,-1,id%)
    Byte s#,8=If(index%=-1,0,4)
    Byte s#,9=If(index%=-1,1,4)
    Long s#,16=0
    sendmessage(tb&,1045,id%,s#)
    Dispose s#

endproc

proc TBSeparator

    TBButton -1,-1,1,0,0,"",""

endproc

declare ti&,tb&,tt&
cls
ti&=ImageList_Create(32,32,$121,128,128)
tb&=CREATEWINDOWEX($020000,"ToolbarWindow32","",$50000000,0,0,0,0,%HWnd,3000,%Hinstance,0)
SendMessage(tb&,$430,0,ti&)
Sendmessage(tb&,1054,20,0)
tt&=CREATEWINDOWEX(0,"tooltips_class32","",$D0000000,0,0,0,0,tb&,0,%Hinstance,0)
Sendmessage(tb&,$424,tt&,0)
sendmessage(tb&,$438,0,$50000B41)
waitinput
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
10/28/06  
 




Nico
Madysa
The Toolbar is of my Wissens after a normales Control, therefore is it normal, that one there dy% moreover add must, or?

P.s.: bunny shining itself To increase...
 
Nico Madysa
10/30/06  
 




Jac
de
Lad
Well, the understand I Yes, but since understand I do not, Why the otherwise always without works (quasi The Clientarea shrink, How if I one Menu through CreateMenu create).
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
10/30/06  
 



of my Wissens shrink only the Menu and Scrollbars The Clientarea.
 
10/30/06  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

697 Views

Untitledvor 0 min.
Wilfried06/08/16
H.Brill05/17/15
Andreas Koch01/08/13
Andreas Miethe04/28/11

Themeninformationen

this Topic has 3 subscriber:

Jac de Lad (2x)
iF (1x)
Nico Madysa (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