Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi IP Feld in TabSheet erstellen (https://www.delphipraxis.net/21399-ip-feld-tabsheet-erstellen.html)

tuxic 2. Mai 2004 13:06


IP Feld in TabSheet erstellen
 
Hi,
wie kann ich ein IP-Feld (das aus den Win32API) in einem TabSheet von einem PageControl erstellen?

Delphi-Quellcode:
  initcommoncontrolsex(icc);
  hIpAddr := CreateWindowEx(WS_EX_CLIENTEDGE, WC_IPADDRESS, nil,
    WS_VISIBLE or WS_CHILD, 10, 20, 120, 21, form1.Handle, hmenu(nil),
    hInstance, nil);
soweit bin ich ja schon :)

toms 2. Mai 2004 13:22

Re: IP Feld in TabSheet erstellen
 
Hi,

Musst nur das Parent des IP-Feldes ändern:
Delphi-Quellcode:
Windows.SetParent(hIpAddr , TabSheet1.Handle);

tuxic 2. Mai 2004 14:04

Re: IP Feld in TabSheet erstellen
 
doch so einfach :)
danke

tuxic 2. Mai 2004 14:18

Re: IP Feld in TabSheet erstellen
 
Zitat:

Zitat von toms
Hi,

Musst nur das Parent des IP-Feldes ändern:
Delphi-Quellcode:
Windows.SetParent(hIpAddr , TabSheet1.Handle);

wo wir gerade bei handles sind ;)
einfach den handle gleich auf form1.tabcheet1.handle setzen funzt auch. 8)

toms 2. Mai 2004 14:19

Re: IP Feld in TabSheet erstellen
 
@tuxic: Hab's übersehen, dass "form1.Handle" steht.


Alle Zeitangaben in WEZ +1. Es ist jetzt 22:21 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz