English
Forum

Size of a Tabcontrols.

 

ByteAttack
Hello! has someone ne Idea, How I The Size of c & d rausbekomme? (a & b is clear over height and width)
have already the half-way Web search, but be anscheinen To stupid to that find

 
Website:  [...] 
Facebook:  [...] 
11/20/07  
 




Frank
Abbing
for c there a Message, around the same wide for each Item to obtain. then Gesamtbreite shared through amount Item.
d can itself well on the ehesten with the verwendeten Schrifthöhe measure.
 
11/20/07  
 




ByteAttack
can me Please there time someone help?
have The commctrl.ph time durchstöbert, and be on TCM_GETITEMRECT punched.
white now but not so right, the in XProfan umzusetzen.
Auzug MSDN:

TCM_GETITEMRECT Message

Retrieves the bounding rectangle for a tab in a tab control. You can send this message explicitly or by using the TabCtrl_GetItemRect macro.

Syntax

To send this message, call the SendMessage function as follows.

lResult = SendMessage( // returns LRESULT in lResult
(HWND) hWndControl, // lever to destination control
(UINT) TCM_GETITEMRECT, // message ID
(WPARAM) wParam, // = (WPARAM) (int) iItem;
(LPARAM) lParam // = (LPARAM) (RECT*) prc;
);

Parameters

iItem
index of the tab.
prc
Pointer to a RECT structure that receives the bounding rectangle of the tab, in viewport coordinates.

Return Value

Returns TRUE if successful, or FALSE otherwise.

Message information

Headercommctrl
 
Website:  [...] 
Facebook:  [...] 
11/20/07  
 



quite ungeprüft!

with XPSE
CompileMarkSeparation
without
CompileMarkSeparation
STRUCT RECT=LEFT&,TOP&,RIGHT&,BOTTOM&
DECLARE MEINREC#
DIM MEINREC#,RECT

IF SENDMESSAGE(TABCONTROL,$1300 + 10,ITEM,ADDR(MEINREC#))

    PRINT MEINREC#.LEFT&
    PRINT MEINREC#.RIGHT&
    ...

ENDIF

DISPOSE MEINREC#
 
11/20/07  
 




ByteAttack
Klappt Wunderbärchen. Thank you
 
Website:  [...] 
Facebook:  [...] 
11/20/07  
 



gladly happen!
 
11/20/07  
 




Thomas
Freier
exists at TABCONTROL The Possibility, next to the tab-wide too The tab-Höhe independent of the Schrifthöhe vorzugeben?
CompileMarkSeparation
Declare T&,TAB1&,TAB2&,TAB3&, lfont1&
cls
lfont1& = @Create("Font","MS Sans Serif",13,0,0,0,0)
T& = CREATE("TABCTRL",%HWND,"Mitglieder",0,1,%maxx-6,700)
TAB1&=@InsertTab(T&,1,"Haushalt")
TAB2&=@InsertTab(T&,2,"Bootsplätze")
TAB3&=@InsertTab(T&,3,"Inventarliste")
SetStyle T&,$54010600
SendMessage(T&,$1329,0,80) TAB-Breite
SetFont T&,lfont1&
WaitInput
Gruß Thomas
Windows XP SP2, XProfan X2
08/01/08  
 




Jörg
Sellmeyer
helps you the evtl. moreover:
Declare T&,TAB1&,TAB2&,TAB3&, lfont1&
cls
Var IL& = Create("ImageList",32,32)
lfont1& = @Create("Font","MS Sans Serif",13,0,0,0,0)
T& = CREATE("TABCTRL",%HWND,"Mitglieder",0,1,%maxx-6,700)
SendMessage(T&,$01303,0,IL&)
TAB1&=@InsertTab(T&,1,"Haushalt")
TAB2&=@InsertTab(T&,2,"Bootsplätze")
TAB3&=@InsertTab(T&,3,"Inventarliste")
SetStyle T&,$54010600
SendMessage(T&,$1329,0,80)'TAB-wide
SetFont T&,lfont1&
WaitInput
DeleteObject  IL&
end
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
08/01/08  
 




Thomas
Freier
@ Jörg : THANK YOU
into direction went my thoughts already, there Frank it in the list view for a defined Zeilenhöhe einsetzt . having here but nothing found, there to falschem concept (TAB) sought.
there Create("ImageList",32,32) under XProfan 10 uncharted is, have I moreover sought (Imagelist) and found.
CompileMarkSeparation
 $H commctrl.ph
Declare T&,TAB1&,TAB2&,TAB3&, lfont1&
cls
Var IL& = ~Imagelist_Create(42,42,~ILC_MASK | ~ILC_COLOR32,1,1)
lfont1& = @Create("Font","MS Sans Serif",13,0,0,0,0)
T& = CREATE("TABCTRL",%HWND,"Mitglieder",0,1,%maxx-6,700)
SendMessage(T&,$01303,0,IL&)
TAB1&=@InsertTab(T&,1,"Haushalt")
TAB2&=@InsertTab(T&,2,"Bootsplätze")
TAB3&=@InsertTab(T&,3,"Inventarliste")
SetStyle T&,$54010600
SendMessage(T&,$1329,0,80)TAB-Breite
SetFont T&,lfont1&
WaitInput
DeleteObject  IL&
end
whether the optimal is? It's all right.
 
Gruß Thomas
Windows XP SP2, XProfan X2
08/01/08  
 




Jörg
Sellmeyer
Oh, sorry! Have now already such a long time XProfan11, that I there none dran virtual having. but beautiful, that it your direction is.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
08/01/08  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.192 Views

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