tab3 zeilenumbruch zählen

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: tab3 zeilenumbruch zählen

Re: tab3 zeilenumbruch zählen

Post by effel » 23 Mar 2024, 06:17

Du bist wundervoll, Danke!

Re: tab3 zeilenumbruch zählen

Post by just me » 22 Mar 2024, 04:48

Vielleicht: TCM_GETITEMRECT (0x130A)

Code: Select all

; RECT structure -> https://learn.microsoft.com/en-us/windows/win32/api/windef/ns-windef-rect
VarSetCapacity(RECT, 16, 0)
SendMessage, 0x130A, 0, &RECT, , ahk_id %thisTab_HWND%
ItemHeight := NumGet(RECT, 12, "Int") - NumGet(RECT, 4, "Int") ; unten - oben
Übrigens: Für eigene GUI-Controls kannst Du HWND mit der Option Hwnd abgreifen (Selten verwendete Optionen und Styles für Steuerelemente):

Code: Select all

Gui, Add, Tab3, w800 h600 HwndthisTab_HWND ...

Re: tab3 zeilenumbruch zählen

Post by effel » 22 Mar 2024, 04:14

Danke @just me.

das funktioniert wie erhofft, hast du auch das Zauberwort um die Höhe der Tabulatorzeile abzufragen?

Code: Select all

	ControlGet, thisTab_HWND, HWND,, SysTabControl321 

	; https://www.autohotkey.com/boards/viewtopic.php?f=9&t=127631#p564249 by just me
	; Ruft die aktuelle Anzahl von Registerkartenzeilen in einem Registersteuerelement ab
	; Gibt die Anzahl der Tabulatorzeilen zurück.
	SendMessage, 0x132C, 0, 0, , ahk_id %thisTab_HWND% 	; TCM_GETROWCOUNT (0x132C)
	RowCount := ErrorLevel
	
	msgbox,4096,% a_linenumber, %    thisTab_HWND "`n" RowCount

c54c1883.jpg
c54c1883.jpg (130.96 KiB) Viewed 266 times

Re: tab3 zeilenumbruch zählen

Post by just me » 22 Mar 2024, 02:56

Moin,

schau mal da: TCM_GETROWCOUNT (0x132C):

Code: Select all

SendMessage, 0x132C, 0, 0, , ahk_id %TabControlHwnd%
RowCount := ErrorLevel

tab3 zeilenumbruch zählen

Post by effel » 21 Mar 2024, 15:47

Hallo,

kann man feststellen, wie viele Zeilenumbrüche das Tab3 control hat?

784d4c55_cut.png
784d4c55_cut.png (787.39 KiB) Viewed 289 times

Top