Search found 201 matches

by KDJ
Wed Jun 20, 2018 6:32 pm
Forum: General
Topic: mouseover label
Replies: 15
Views: 588

Re: mouseover label

Grigory ... Why WM_MOUSELEAVE in HMG Extended works and in classic HMG doesn't work? Krzysztof IMHO Because HMG Extended uses a Label subclassing on C-level 8-) Grigory I solved this problem. Before that I completely forgot about the function EventProcessAllHookMessage(). WM_MOUSELEAVE works also i...
by KDJ
Sun Jun 17, 2018 12:16 pm
Forum: Others
Topic: How to adopt function DeleteUrlCacheEntry in HMG
Replies: 3
Views: 210

Re: How to adopt function DeleteUrlCacheEntry in HMG

For example, in this way: #include "hmg.ch" MEMVAR _HMG_SYSDATA FUNCTION Main() LOCAL cURL := "http://myURL" LOCAL nError IF DeleteUrlCacheEntry(cURL, @nError) MsgBox("Deleted!") ELSE //System Error Codes: https://msdn.microsoft.com/en-us/library/windows/desktop/ms681381(v=vs.85).aspx MsgBox("Error ...
by KDJ
Sun Jun 10, 2018 8:31 pm
Forum: General
Topic: mouseover label
Replies: 15
Views: 588

Re: mouseover label

Grigory, thank you very much for your explanation.
by KDJ
Sun Jun 10, 2018 4:36 pm
Forum: General
Topic: mouseover label
Replies: 15
Views: 588

Re: mouseover label

Grigory Yes, thank you for the idea. This can also be done by processing WM_SETCURSOR message in main window event handler (example is here: http://www.hmgforum.com/viewtopic.php?f=9&t=4806&hilit=mouse+andyglez ). But WM_MOUSELEAVE is still not received. Why WM_MOUSELEAVE in HMG Extended works and ...
by KDJ
Sun Jun 10, 2018 12:19 pm
Forum: General
Topic: mouseover label
Replies: 15
Views: 588

Re: mouseover label

Hi, Grigory SS_NOTIFY Sends the parent window STN_CLICKED, STN_DBLCLK, STN_DISABLE, and STN_ENABLE notification codes when the user clicks or double-clicks the control. So applying SS_NOTIFY style should not affect the WM_MOUSELEAVE message generation. In addition, this LABEL already has SS_NOTIFY s...
by KDJ
Sat Jun 09, 2018 8:09 pm
Forum: General
Topic: mouseover label
Replies: 15
Views: 588

Re: mouseover label

Can somebody know why WM_MOUSELEAVE message is not generated for LABEL and another controls? Example of code: #include "hmg.ch" MEMVAR _HMG_SYSDATA FUNCTION Main() DEFINE WINDOW MainForm; WIDTH 300; HEIGHT 200; MAIN DEFINE LABEL Label1 ROW 10 COL 10 WIDTH 140 HEIGHT 45 VALUE "This is LABEL" ALIGNMEN...
by KDJ
Wed Jun 06, 2018 8:24 pm
Forum: GUI Basics
Topic: Form with console panel
Replies: 4
Views: 207

Re: Form with console panel

Chang
I don't understand what console you need.
Do you mean command console (cmd)?
by KDJ
Tue Jun 05, 2018 8:21 pm
Forum: GUI Basics
Topic: Form with console panel
Replies: 4
Views: 207

Re: Form with console panel

Chang , you can try in this way: #include "hmg.ch" REQUEST HB_GT_WIN_DEFAULT MEMVAR _HMG_SYSDATA FUNCTION Main() DEFINE WINDOW MainForm; WIDTH 700; HEIGHT 500; MAIN; ON INIT MainFormOnInit(); ON PAINT RedrawWindow(GetConsoleWindow()) DEFINE BUTTON WriteButton ROW 430 COL 10 WIDTH 130 HEIGHT 25 CAPT...
by KDJ
Sat Jun 02, 2018 1:59 pm
Forum: GUI Basics
Topic: isWindowDefined() value
Replies: 2
Views: 172

Re: isWindowDefined() value

Chang

Code: Select all

FUNCTION CloseWin(cWin)
  msgDebug(cWin, IsWindowDefined(&cWin), _IsWindowDefined("Win2"))
  IF IsWindowDefined(&cWin)
    DoMethod(cWin, "Release")
  ENDIF
  RETURN NIL
by KDJ
Thu May 31, 2018 2:06 pm
Forum: GUI Basics
Topic: Hang on Release ChildWindow
Replies: 5
Views: 331

Re: Hang on Release ChildWindow

Chang

Try to use DoEvents() function after release "NewWindow":

Code: Select all

FUNCTION ReleaseNewWindow()
  IF IsWindowDefined(NewWindow)
    msgDebug( "before")
    DoMethod( "NewWindow", "Release")
    DoEvents()
    msgDebug( "after")
  ELSE
    MsgInfo( "Click New Window!")
  ENDIF
  RETURN NIL