English
Forum

Dialog windows such as %hwnd

 
- Page 1 -



GDL
Hi,

is it possible, that itself one so erzeugtes Window

ofenster&=create(window,%hwnd,Oberflächengestaltung,0,0,%maxx,%maxy)

just as behave like a %hwnd,quasi one 2tes Mainwindow.

Hello
Georg
 
Windows7 Xprofan 8,9,10 [...]  [...] 
10/03/06  
 



 
- Page 1 -



GDL
Hello Andreas,

I get it on one Child-Window not there. On %hwnd works but correct.
CompileMarkSeparation
Def PtInRect(3) !"USER32","PtInRect"

Proc CheckMouse

    Parameters hw&,x%,y%,lang&[onummer&],breit&[onummer&]
    Dim rect#,16
    Dim rectpt#,8
    Long rect#,0=x%
    Long rect#,4=y%
    Long rect#,8=lang&[onummer&]
    Long rect#,12=breit&[onummer&]
    GetCursorPos(rectpt#)
    ScreenToClient(hw&,rectpt#)

    If Neq(PtInRect(rect#,Long(rectpt#,0),Long(rectpt#,4)),0)

        result%=1

    EndIf

    Dispose rect#
    Dispose rectpt#

ENDPROC


Hello
Georg
 
Windows7 Xprofan 8,9,10 [...]  [...] 
10/05/06  
 



Hello Georg...

...is not yet integrally perfect...
CompileMarkSeparation
Def @GetCursorPos(1) !"USER32","GetCursorPos"
Def @ScreenToClient(2) !"USER32","ScreenToClient"
Def @Ptinrect(3) !"USER32","PtInRect"
Def @WaitMessage(0) !"USER32","WaitMessage"
Declare Rect#,Rectpt#,Dialog&,Message#
Windowstyle 31
LET Dialog&=@CreateWindow(%Desktop,"Mausklick auf Dialog",30,30,300,300)
Usecursor 0

While %Menuitem<>-2

    @WaitMessage()
    Startpaint Dialog&
    Rectangle 30,30-60,60
    Endpaint

    IF @Checkmouse(Dialog&,30,30,60,60)=1

        IF %Message=514

            @messagebox("Mit linker Maustaste ins schwarze getroffen!","Treffer!",64)

        endif

    endif

    Usecursor 0

wend

Proc Checkmouse

    Parameters Hw&,X%,Y%,Lang&,Breit&
    Declare Result&
    Dim Rect#,16
    Dim Rectpt#,8
    Long Rect#,0=X%
    Long Rect#,4=Y%
    Long Rect#,8=Lang&
    Long Rect#,12=Breit&
    @Getcursorpos(Rectpt#)
    @Screentoclient(Hw&,Rectpt#)
    LET Result&=@Ptinrect(Rect#,@long(Rectpt#,0),@long(Rectpt#,4))
    Dispose Rect#
    Dispose Rectpt#
    Return Result&

Endproc

 
10/06/06  
 




GDL
@Andreasanke.

but comment me Please Why one on one Dialogue with waitinput not weiterkommt.or ought to one waitinput only in Ausnahmefällen benefit?

Hello
Georg
 
Windows7 Xprofan 8,9,10 [...]  [...] 
10/06/06  
 



[quote:10c8e47fce=GDL]but comment me Please Why one on one Dialogue with waitinput not weiterkommt.[/quote:10c8e47fce]
...on the lying, what Waitinput next to the Call the API MsgWaitForMultipleObjects yet so everything does - can you well only Roland answer.

Greeting

Andreas
 
10/07/06  
 




GDL
@ Andreas,

works wonderful for Einklickabfrage.for ständige request nehm I How already former
Schonmal had.

@Getasynckeystate(2)<>0.

there @Getasynckeystate(2)<>0 with waitinput not goes what about me too Buttons inquire would like used I

settimer 1
waitinput
killtimer

understand of course not Why it then goes, but hauptsache It's all right.

Hello
Georg
 
Windows7 Xprofan 8,9,10 [...]  [...] 
10/08/06  
 




Ralph
Theobald
Hello ,

can someone explain, How your rausgefunden have, that the
Api function PTINRECT three Parameter has.

Thomas Hölzer has in Prffellow ( Dlgcheckarea) a ähnlichen code
using. in the Win32 and in the SDK standing PTinRect with two Parameters:
1. structure : Rechteckkoordinaten Window
2. structure: Mouse-Coordinates
or have I what overlooking ?

Greeting Ralph

3 kB
Hochgeladen:02/16/07
Downloadcounter88
Download
 
Xprofan 10 , AMD Athlon 3000+, 1GB
02/16/07  
 



[...] 
 
02/16/07  
 



 
- Page 2 -



RGH
Ralph Theobald
Hello ,

can someone explain, How your rausgefunden have, that the
Api function PTINRECT three Parameter has.

Thomas Hölzer has in Prffellow ( Dlgcheckarea) a ähnlichen code
using. in the Win32 and in the SDK standing PTinRect with two Parameters:
1. structure : Rechteckkoordinaten Window
2. structure: Mouse-Coordinates
or have I what overlooking ?

Greeting Ralph


Hello Ralph,
the first Parameter is a Zeiger on a structure (= 32 bit) and the second Parameter directly the structure. The structure POINT exists from two 32-bit Values for Coordinates and is accordingly 64 bit big. in lieu of the structure can also The two Coordinates apiece as Longint (32 bit) transfer go. the are then again 64 bit and everything is in the Lot! In XProfan is it on the Einfachsten, for first Parameter a Strukturvariable To benefit and The Coordinates two LongInts.
Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
02/16/07  
 




RGH
Andreas Hötker
GDL
but comment me Please Why one on one Dialogue with waitinput not weiterkommt.


...on the lying, what Waitinput next to the Call the API MsgWaitForMultipleObjects yet so everything does - can you well only Roland answer.

Greeting

Andreas


Hello Andreas,
The from you named API comes in Waitinput not at all to. WAITINPUT there already since Profan 1.0 ... and there there were these API-Fuktion yet none.

for the API-FAchmann: what happens in WaitInput? here the Delphi-Listing:
CompileMarkSeparation
In all Kürze: it go zunächste some global ? Happen? reset and then as long as the MessageLoop called, To one the abgefragten Events eingetreten is. These global ? Happen? go from the Fensterprozeduren, teils tributary of jeweiligen Style, staid. even if it these Funktionalität already since Version 1 gives, watts tappt im dunkeln still in the running the Time correct and verfeinert, lastly in Version 10.

API-Aufrufe there naturally in MessageLoop:
CompileMarkSeparation
(The first row behind the Begin served moreover, F1 in Editfeldern abzufragen, before it with Version 10 The Hotkeys given. tappt im dunkeln serves, How much others, solely the compatibility To previous versions.)

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
02/16/07  
 



Mmh, simply a Loop means. best Thanks.
 
02/16/07  
 




Ralph
Theobald
Hello Roland ,Hello If

thanks for eure trouble.

The PtInRect function determines whether the specified point lies within the specified rectangle. A point is within a rectangle if it lies on the left or top side or is within all four sides. A point on the right or bottom side is considered outside the rectangle.

BOOL PtInRect(

CONST RECT *lprc,// address of structure with rectangle
POINT pt // structure with point
);
Parameters

lprc

Points to a RECT structure that contains the specified rectangle.

pt

Specifies a POINT structure that contains the specified point.

Return Value

If the specified point lies within the rectangle, the return value is TRUE.
If the function fails, the return value is FALSE. To get extended error information, call GetLastError.

The appeal PtInRect(rect#,point#) not working, was well one Verständnisproblem
for may part.
I thought the Access to The Strukturelemente results always over The address.

Greeting Ralph
 
Xprofan 10 , AMD Athlon 3000+, 1GB
02/17/07  
 




Frank
Abbing
Mach you nothing from it, Ralph. be too Schonmal above stumbled .
 
02/17/07  
 




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.738 Views

Untitledvor 0 min.
Thomas Freier02/08/24
H.Brill05/20/23
RudiB.04/15/22
AndreasS12/01/18
More...

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