Buttons & Textfields on mt4 chart possible now - page 5

 
Nobody help me? :-( :-(
 
endy5:
Nobody help me? :-( :-(
You posted in fx1.net's thread, so you want a reply from fx1.net
 

That is really cool dll

would really give it a try

thank you fx1 for your contribution


but the way - one question - how can we make buttons in more fashionable way with rounded corners like on MT4?

thx

 
I've got a very complex EA based on this development.
If anyone has worked on this, we will cooperate and mutual benefit.
I have long-term objectives with this work.
Because MT4 will continue for many years with us.
My EA is for personal use.
I've got a more advanced development of more quality than the commercial versions based on the development of fx1.
I would like to be put in touch with me in the mail ruiz.alabarce@gmail.com
 

Just found this thread and tried to download the latest free version from

this website: https://www.fx1.net/wiki/pmwiki.php/MT4GUI/MT4GUI

No way, although I am a registered user on the website.

When I click on download, a new browser window opens and there the download

link for the package doesn´t exist.

Where can I get the free version ?

--------------------------------------------------------------------------------------------

Edit: I googled mt4gui and found a free download.

Only problem: My Mt4 crashes many times when I click on a button.

If I attach the EA which I coded, the buttons work fine.

But when I remove the EA from the chart and attach it again, then clicking

on the buttons often crashes the Mt4. Not always though and I have no idea why this happens.

When I comment the WindowHandle(Symbol(),Period()); the EA doesn´t crash the Mt4, of course it then

doesn´t draw the buttons on the chart, therefore the cause is this WindowHandle call, but here I am trapped.

Without the WindowHandle there are no buttons and with the WindowHandle the Mt4 crashes too often.

Here is the pattern:

1. EA first works fine with the buttons. After detaching and attaching it anew, the first click on a button crashes the Mt4.

But not always. It isn´t predictible.

Yesterday it happened for hours and I changed the code (used the WindowsHandle only in the init, or used it at the beginning of start.

Suddenly it worked fine in all situations. Detaching the EA, re-attaching it. Attaching it while it still was on the chart. Everything worked fine

but this morning it crashes Mt4 again. Was there a ghost during the night while I slept ?

I mean: yesterday night it worked for over 1 hour and I changed nothing and this morning it crashes the Mt4 ?


Is there somebody who has a stable version ?

This tool is fantastic, but it shouldn´t crash the platform. Maybe I got a buggy version ?

Please help.

Thank you very much.

 
did you solve your problem? if you need mt4gui2.dll and mt4gui.dll let me know to send them to you
 

wow, this is a really awesome tool, any chance you can share the mt4gui.dll and mt4 gui2.dll ?

thanks very very much.

 
Kemal:
did you solve your problem? if you need mt4gui2.dll and mt4gui.dll let me know to send them to you

Kemal,

I tried to send you a private message but the "send" button is not there. it is impossible.

I still have so many crashes that I would be happy to test your versions of the dll´s .

Maybe they are bug free, it would help me a lot.

My e-mail is bestfx@lavabit.com

Thanks in advance.

Regards

 

Hi,

is the dll for the buttons free and can I also use it, when I sell this program after selling??

 

Hi,

I am developing my EA with buttons, using this program and I have also experienced some crashes.

I have noticed 2 things:

1. Probably, the order in which the buttons are written in your program is important,

especially when you have other objects created.

Example: I have Labels which make the background of my EA, and when I was putting some button

before this background in the program, I got crashes.

When I put the button in the order they appear on screen, everything works OK.

2. When my EA with buttons is running and I click on the smiley face to change defaults,

and then click OK or then click some button, this also crashes MT4.

I found a solution like this:

I made a Defaults button

I run this button like this:

#include <WinUser32.mqh>
#import "mt4gui.dll"
#define MT4_WMCMD_REMOVE_EXPERT   33050

int start() {

if(tbIsClicked(hwnd,DefaultsButton)){
DisableAllEA(); // Disables Experts when Experts button enabled
RemoveEA();     // removes MyEA from chart - takes a few seconds
DisableAllEA(); // enables Experts when Experts button disabled
OpenMyEA();     // Opens MyEA with defined HOTKEY
}
}

void DisableAllEA() { // this emulates the Ctrl+E keyboard event
   keybd_event(17, 0, 0, 0); // CTRL down
   keybd_event(69, 0, 0, 0); // E down
   keybd_event(69, 0, 2, 0); // E up
   keybd_event(17, 0, 2, 0); // CTRL up
}

int RemoveEA() { // this removes the EA from chart
PostMessageA(hwnd,WM_COMMAND,33050,1);

}

void OpenMyEA() { // this opens MyEA with defined HOTKEY
   keybd_event(18, 0, 0, 0); // ALT down
   keybd_event(81, 0, 0, 0); // Q down
   keybd_event(81, 0, 2, 0); // Q up
   keybd_event(18, 0, 2, 0); // ALT up
}

This way it works great! No crashes.

BTW: I have a total of 18 buttons on my EA.

Reason: