How to change dialog style define from resource?
RC:
INFO DIALOG 6, 15, 473, 347
STYLE WS_POPUP | WS_VISIBLE | WS_SYSMENU
FONT 10, "Courier"
{
}
PRG:
//perfectly as expected
DEFINE DIALOG oDlg RESOURCE 'INFO'
...
ACTIVATE DIALOG oDlg
//-------------------
//on the other prg with child window
DEFINE WINDOW oWnd TITLE "Test Child" MDICHID
DEFINE DIALOG oDlg RESOURCE 'INFO' OF oWnd
...
ACTIVATE DIALOG oDlg NOWAIT;
ON INIT SetWindowLong( oDlg:hWnd, GWL_EXSTYLE, nOr(WS_CHILD ) )
ACTIVATE WINDOW oWnd
//-------------------
not working as expected...??? the oDlg must be transform to child of oWnd
any help?
The purpose is to use dialog 'INFO' as popup dialog somewhere and a child of oWnd somewhere within the app.
How to change dialog style at runtime?
-Best Regards,
Change Dialog Style at runtime
Change Dialog Style at runtime
Kind Regards,
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
I GOT IT!!!
Oh my!!! that was easy and fast reply too
I put
....
ACTIVATE DIALOG oDlg NOWAIT CENTERED;
ON INIT SetParent( oDlg:hWnd, oWnd:hWnd )
....
Now I can use dialog as popup and child to any window....
What am I thinking....
Thanks!
Oh my!!! that was easy and fast reply too
I put
....
ACTIVATE DIALOG oDlg NOWAIT CENTERED;
ON INIT SetParent( oDlg:hWnd, oWnd:hWnd )
....
Now I can use dialog as popup and child to any window....
What am I thinking....
Thanks!
Kind Regards,
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
Yet... still not able to change dialog style at runtime...
The above is just a workaround....
Feel free to post your solution please....
The above is just a workaround....
Feel free to post your solution please....
Kind Regards,
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
Dialog-settings at runtime
Hello,
There is a toppic for V-tools in the forum.
There, i change everything at runtime.
Afterwards i write the source for it.
You find it at :
http://www.pflegeplus.com/fw_downloads/vtools.zip
When you need, i can send you the complete source-part of the
dialog-handling of V-Tools.
The new Version 2.0 is nearly finished with many new functions
and support Vista and the new FWH 8.05
It writes now the complete source of a design and includes
the make file as well, building the exe-file.
In another 2 weeks it be be finished.
Best Regards
Uwe
There is a toppic for V-tools in the forum.
There, i change everything at runtime.
Afterwards i write the source for it.
You find it at :
http://www.pflegeplus.com/fw_downloads/vtools.zip
When you need, i can send you the complete source-part of the
dialog-handling of V-Tools.
The new Version 2.0 is nearly finished with many new functions
and support Vista and the new FWH 8.05
It writes now the complete source of a design and includes
the make file as well, building the exe-file.
In another 2 weeks it be be finished.
Best Regards
Uwe
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
i work with FW.
If you have any questions about special functions, maybe i can help.
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Mr. Antonio,
After years of programming with Xharbour.org/FWH....
Fivewin is so robust and flexible you can have some workaround effortlessly... to fit one's style in coding...
Glad you're here!
Best regards,
After years of programming with Xharbour.org/FWH....
Fivewin is so robust and flexible you can have some workaround effortlessly... to fit one's style in coding...
Glad you're here!
Best regards,
Kind Regards,
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15