Is it possible to replace the "X" close icon with the "OK" icon on all application windows created from parent windows.
Is it possible to replace the "X" close icon with the "OK" icon on all application windows created from parent windows.
GWard,
I think it only works on dialogboxes adding this style to the dialogbox resource: EXSTYLE WS_EX_CAPTIONOKBTN
Antonio Linares wrote:GWard,
I think it only works on dialogboxes adding this style to the dialogbox resource: EXSTYLE WS_EX_CAPTIONOKBTN
DEFINE WINDOW oWnd ...
nStyle = GetWindowLong( oWnd:hWnd, GWL_STYLE ) SetWindowLong( oWnd:hWnd, GWL_STYLE, nOr( nStyle, WS_EX_CAPTIONOKBTN ) )Antonio Linares wrote:GWard,
I have not tried it myself, but maybe this may work:
DEFINE WINDOW oWnd ... nStyle = GetWindowLong( oWnd:hWnd, GWL_STYLE ) SetWindowLong( oWnd:hWnd, GWL_STYLE, nOr( nStyle, WS_EX_CAPTIONOKBTN ) )
Antonio,
I used
(Found them on a Web site)
Then :
DEFINE WINDOW oWnd TITLE "Orders"
nStyle = GetWindowLong( oWnd:hWnd, GWL_STYLE )
SetWindowLong( oWnd:hWnd, GWL_STYLE, nOr( nStyle, WS_EX_CAPTIONOKBTN ) )
The Icon remains as an "X" and not "OK"
The "Orders" WINDOW contains a COMBOBOX and LISTBOX.
The LISTBOX represents storage areas which when tapped on column 2 displays all of the individual products within that location in another WINDOW with a LISTBOX.
When I return from the product WINDOW and tap the "X" in the "Orders" WINDOW it does not exit. If I tap it again the "X" vanishes completely.
If I do not enter the products WINDOW the "X" operates as expected.
Are my define values wrong.
I trust I am not overusing the forum but I am nearly there with my application and the client is overjoyed.
Many thanks
GWard,
Your defines are ok. It seems as the windows don't allow such style. We have modified FWPPC to allow DEFINE WINDOW ... STYLE ... clause (as FW for PC) but the OK button at the caption area does not show
.
It looks as you may need to use a dialogbox to get the OK button on the caption. Maybe you could use pushbuttons at the bottom instead of a pulldown menu ?
GWard,
We have found this Pocket PC API function:
http://msdn.microsoft.com/library/defau ... l_ztgv.asp
but sadly doesn't work too, the way we need it...
Antonio Linares wrote:GWard,
It looks as you may need to use a dialogbox to get the OK button on the caption. Maybe you could use pushbuttons at the bottom instead of a pulldown menu ?