FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour dialog creation ..
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM

Re: dialog creation ..

Posted: Sat Aug 20, 2011 02:05 PM

>but I tried to make a class but I saw oTooltip on Windows class is not a classdata but only a variable static !!

I think Antonio told me it was done this way for speed.

>for the dialog how I can make it ?

The easiest way is to just use the ACTION clause of the button define. If you are already using that for something else, then you could use bRClicked instead.

I think to popup the dialog whenever the mouse is over it will be more complex. There is a bMMoved codeblock, and if you use a modal dialog this might work. But if you wanted a window or non-modal dialog this would probably pop them up multiple times as the mouse was moving over the button so you would have to set a flag to keep this from happening.

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM

Re: dialog creation ..

Posted: Sat Aug 20, 2011 03:20 PM
James,

oBtn1:bMMoved := {| nRow, nCol | MsgAlert( ALLTRIM( STR(nRow)), ALLTRIM( STR(nCol)) ) }
will show nRow and nCol from inside the Button.

That is the reason, I used :
oDlg:bMMoved := {| nRow, nCol | MsgAlert( ALLTRIM( STR(nRow)), ALLTRIM( STR(nCol)) ) }
in Relation to SAY-Screenpositions

that works.

I think, creating or changing a Class including Tests,
takes much more Time, than changing Buttons to SAYs, getting the desired Results.
I cannot do more, than showing working Samples.
Before I start to change something inside original FWH-source, I try to find Solutions without
any Changes.

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.
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM

Re: dialog creation ..

Posted: Sat Aug 20, 2011 03:40 PM

Uwe,

I don't think he needs the row and col when using bMMoved. He just needs to popup something when the cursor is over the button. Something like this:

oBtn1:bMMoved := { || msgInfo() }

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM

Re: dialog creation ..

Posted: Sat Aug 20, 2011 04:13 PM
James,

I got it working with Buttons.
I will create a nice Sample for it with different Options.
The Popup is shown related to Button-position.
The Button-temperature is show on Popup-title
Optional autoclose or staying on Screen with Buttonactions.

1. Button / Temperature :



2. Button / Temperature :



3. Button / Temperature :



Optional :



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.

Continue the discussion