Dear Yuri,
Use the WM_ACTIVATE message in the application's main window procedure. This message indicates window activation changes (activating/deactivating).
Combine with the LOWORD of wParam to check the activation state (e.g., WA_INACTIVE for background).
You may need to inherit a Class ...
Search found 114 matches: activating
Searched query: activating
- Fri Mar 15, 2024 3:51 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Window transition event
- Replies: 2
- Views: 881
- Tue Aug 01, 2023 12:37 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: EXCEL description: (DOS Error -2147352567) WINOLE/1007 Imp
- Replies: 4
- Views: 686
Re: EXCEL description: (DOS Error -2147352567) WINOLE/1007 Imp
Hi Jimmy
REQUEST HB_CODEPAGE_UTF8
HB_CDPSELECT("UTF8")
activating utf8 seems to no longer give error
before it was
REQUEST HB_CODEPAGE_ITWIN
HB_CDPSELECT("ITWIN")
I do not understand excel takes the window setting
TIA
REQUEST HB_CODEPAGE_UTF8
HB_CDPSELECT("UTF8")
activating utf8 seems to no longer give error
before it was
REQUEST HB_CODEPAGE_ITWIN
HB_CDPSELECT("ITWIN")
I do not understand excel takes the window setting
TIA
- Mon Jul 03, 2023 6:19 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Hide a Checkbox from Resource.
- Replies: 7
- Views: 714
Re: Hide a Checkbox from Resource.
I hide them using the "ON INIT" when activating the dialog. Seemed to work well.
- Thu Mar 30, 2023 12:43 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: how to get Information from ::aControls
- Replies: 2
- Views: 338
Re: how to get Information from ::aControls
hi,
have to over-think concept
ah ... ok, thxWhen we create controls on a dialog, the controls are created only when the dialog is initialized.
So, hWnd is valid only after activating the dialog.
have to over-think concept
- Thu Mar 30, 2023 11:37 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: how to get Information from ::aControls
- Replies: 2
- Views: 338
Re: how to get Information from ::aControls
When we create controls on a Window, all controls are fully created and so have valid hWnd.
When we create controls on a dialog, the controls are created only when the dialog is initialized. So, hWnd is valid only after activating the dialog.
When we create controls on a dialog, the controls are created only when the dialog is initialized. So, hWnd is valid only after activating the dialog.
- Wed Mar 09, 2022 6:20 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Jump into edit mode
- Replies: 6
- Views: 668
Jump into edit mode
... with a xBrowse with arrays datasource.
The array has only one single row.
How can I jump directly into edit mode of the first left cell when the dialog opens?
I tried the ON INIT clause when activating the dialog.
But oBrw:aCols[1]:SetFocus() does of course not work.
Anyone who give me a hint?
The array has only one single row.
How can I jump directly into edit mode of the first left cell when the dialog opens?
I tried the ON INIT clause when activating the dialog.
But oBrw:aCols[1]:SetFocus() does of course not work.
Anyone who give me a hint?
- Fri Nov 19, 2021 10:04 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: How many control per dialog?
- Replies: 21
- Views: 2258
Re: How many control per dialog?
... library to make like this picture but not found. If you have any idea, most welcome.
Thanks for your question.
Just curious...
Why not use the cell content of the browse for activating a action ?
You prefer a button action. Is this because the buttons seems to be on top en overlapping the cells ?
Thanks for your question.
Just curious...
Why not use the cell content of the browse for activating a action ?
You prefer a button action. Is this because the buttons seems to be on top en overlapping the cells ?
- Fri Nov 19, 2021 8:25 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: How many control per dialog?
- Replies: 21
- Views: 2258
Re: How many control per dialog?
Just curious...
Why not use the cell content of the browse for activating a action ?
You prefer a button action. Is this because the buttons seems to be on top en overlapping the cells ?
Why not use the cell content of the browse for activating a action ?
You prefer a button action. Is this because the buttons seems to be on top en overlapping the cells ?
- Sun Sep 20, 2020 11:38 am
- Forum: WhatsNew / Novedades
- Topic: New FTDN August/Agosto 2020 (FWH 20.08)
- Replies: 3
- Views: 4211
New FTDN August/Agosto 2020 (FWH 20.08)
... created on dialogs, it is no more necessary
to use the methods in the on init clause of dialog. It is now possible to use
them even before activating the dialog.
* TGraph.prg: Fix: DATA lFlat is not initialized in case of Redefine() resulting
in runtime error. Fixed.
* Enhancement: MENUITEM ...
to use the methods in the on init clause of dialog. It is now possible to use
them even before activating the dialog.
* TGraph.prg: Fix: DATA lFlat is not initialized in case of Redefine() resulting
in runtime error. Fixed.
* Enhancement: MENUITEM ...
- Wed Jul 24, 2019 1:04 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Minimizar varios formularios a la vez
- Replies: 13
- Views: 1536
Re: Minimizar varios formularios a la vez
Add this code to the main window, before activating it.
oWnd:bResized := <|nType| local aWnd := GetAllWin() if nType == 1 AEval( aWnd, { |o| If( o:ClassName == "TWINDOW" .and. o:hWnd != oWnd:hWnd, ; o:Iconize(), nil ) } ) endif return nil >
Hello Mr Rao ...
oWnd:bResized := <|nType| local aWnd := GetAllWin() if nType == 1 AEval( aWnd, { |o| If( o:ClassName == "TWINDOW" .and. o:hWnd != oWnd:hWnd, ; o:Iconize(), nil ) } ) endif return nil >
Hello Mr Rao ...
- Wed Jul 24, 2019 12:56 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Minimizar varios formularios a la vez
- Replies: 13
- Views: 1536
Re: Minimizar varios formularios a la vez
Add this code to the main window, before activating it.
oWnd:bResized := <|nType| local aWnd := GetAllWin() if nType == 1 AEval( aWnd, { |o| If( o:ClassName == "TWINDOW" .and. o:hWnd ...
oWnd:bResized := <|nType| local aWnd := GetAllWin() if nType == 1 AEval( aWnd, { |o| If( o:ClassName == "TWINDOW" .and. o:hWnd ...
- Sun Jul 14, 2019 12:27 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Activacion de button clausula when
- Replies: 4
- Views: 632
Re: Activacion de button clausula when
Before activating every child window add this line
Code: Select all | Expand
oChildWnd:bPostEnd := { || WndMain():oBar:AEvalWhen() }
ACTIVATE WINDOW oChildWnd
- Sun Jul 07, 2019 7:44 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Unicode characters displaying as ANSI on windows title bar
- Replies: 11
- Views: 2902
Re: Unicode characters displaying as ANSI on windows title bar
... Any idea or it's bug?
You may be losing it when resizing, but not when moving.
The most likely reason is that you are releasing the Icon after Activating the mdichild window like this:
ACTIVATE WINDOW oMdiChildRELEASE ICON oIco
Please do not do that. Instead do this:
oMdiChild:bPostEnd := { ...
You may be losing it when resizing, but not when moving.
The most likely reason is that you are releasing the Icon after Activating the mdichild window like this:
ACTIVATE WINDOW oMdiChildRELEASE ICON oIco
Please do not do that. Instead do this:
oMdiChild:bPostEnd := { ...
- Sun Jul 07, 2019 4:55 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Unicode characters displaying as ANSI on windows title bar
- Replies: 11
- Views: 2902
Re: Unicode characters displaying as ANSI on windows title bar
... Any idea or it's bug?
You may be losing it when resizing, but not when moving.
The most likely reason is that you are releasing the Icon after Activating the mdichild window like this:
ACTIVATE WINDOW oMdiChildRELEASE ICON oIco
Please do not do that. Instead do this:
oMdiChild:bPostEnd ...
You may be losing it when resizing, but not when moving.
The most likely reason is that you are releasing the Icon after Activating the mdichild window like this:
ACTIVATE WINDOW oMdiChildRELEASE ICON oIco
Please do not do that. Instead do this:
oMdiChild:bPostEnd ...
- Mon Jun 03, 2019 12:54 pm
- Forum: WhatsNew / Novedades
- Topic: New FTDN May/Mayo 2019 (FWH 19.05)
- Replies: 4
- Views: 5579
New FTDN May/Mayo 2019 (FWH 19.05)
... Fixed.
* New CLASSDATA bSetup in class TPreview. If assigned, the codeblock is evaluated with
oPreview and oWnd as parameters just before activating the preview window.
Example Usage:
RPrevUserBtns( nil, 2007 )
TPreview():bSetup := <|oPreview, oWnd|
WITH OBJECT oWnd:oBar
:aControls[ 10 ...
* New CLASSDATA bSetup in class TPreview. If assigned, the codeblock is evaluated with
oPreview and oWnd as parameters just before activating the preview window.
Example Usage:
RPrevUserBtns( nil, 2007 )
TPreview():bSetup := <|oPreview, oWnd|
WITH OBJECT oWnd:oBar
:aControls[ 10 ...