Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
19
Erster Beitrag:
vor 1 Jahr, 3 Monaten
Letzter Beitrag:
vor 1 Jahr, 3 Monaten
Beteiligte Autoren:
André Labuschagné, Curtis, Alexandre Leclerc, Allard

WD21 - Creation Of Popup

Startbeitrag von André Labuschagné am 23.08.2016 17:46

Hi All

I am missing something simple here. I need to create a popup that I will be using to display a few lines of information after which I want the user to touch the popup window and it must close. I have followed the notes but there is no popup option under containers. What am I missing?

Cheers
André

Antworten:

Found that this works with WB, not WD.

Cheers
André

von André Labuschagné - am 23.08.2016 19:28
Hi André,

You still can use OpenPopup() / OpenPopupPosition() to mimic this behaviour with some additional code in the popup window to close on click (or any other field). The popup will also close if you click outside (the goal of a popup).

Best regards,
Alexandre Leclerc

von Alexandre Leclerc - am 23.08.2016 19:53
Hi Alexandre

Thanks for that. I am very new to WD.

Cheers
André

von André Labuschagné - am 23.08.2016 20:15
Hi Alexandre

That looks like exactly what I want but I cannot work out how to create a popup window. Still scratching away here.

Cheers
André

von André Labuschagné - am 23.08.2016 20:39
Hi Alexandre

I am getting runtime errors. I have no idea how to create a pop up window.

Cheers
André

von André Labuschagné - am 23.08.2016 20:48
Quote
André Labuschagné
Hi Alexandre

I am getting runtime errors. I have no idea how to create a pop up window.

Cheers
André


To be clear, you want to create your own pop up window and not a standard Windows menu (list of options), correct? If so then just create a new window and use this window name in OpenPopup().

If you want a Windows style system menu you can go to the Window ribbon in WinDev and select Popup menus to create and edit popup menus. Just be make sure the window you have open is the one you want the menu to be associated with. Then use the name of the menu with OpenPopupMenu().

von Curtis - am 23.08.2016 21:59
Hi Curtis

Ok - I have obviously got this all wrong. What I am really looking for is a little dialog window that I can customise the look and feel of entirely. When touched it must close. There must be no visible ok or yes or no button displayed. I am going to display some text comment in that window. Does that make sense?

Cheers
André

von André Labuschagné - am 24.08.2016 01:31
Hi All

Have now got a window created and successfully called and passing some text to it but it will not display in the html control I have placed on this window that I am calling. I am assigning the text to the control and have confirmed that there is text to assign. Any ideas? Are there any other tricks I could be missing?

Cheers
André

von André Labuschagné - am 24.08.2016 03:00
Turns out html controls do not work on all windows. There is nothing in the help file that sets out the conditions of the window that are required for it to work.

So now I am scratching to try and find out what type of window is required.

Cheers
André

von André Labuschagné - am 24.08.2016 03:26
Hi All

Chasing my tail but now proved that this is a threading issue. Need to call the window differently.

Cheers
André

von André Labuschagné - am 24.08.2016 11:37
Hi André,

As asked in another of your thread, are you using WebDev or WinDev? And if so, why are you speaking of HTML control? This would help us help you, in knowing better what you try to do in which environment.

Kind regards,
Alexandre Leclerc

von Alexandre Leclerc - am 24.08.2016 12:30
Hi Alexandre

WD.

Cheers
André

von André Labuschagné - am 24.08.2016 14:27
You want to display a popup that has lines of text, correct? If so, why are you using an HTML control?

von Curtis - am 24.08.2016 16:19
Hi Curtis

Yes - just a little window with text made up of three parts and each part must have a different colour. That is why I was looking at HTML control. This must stand out and I must have full control over the look and feel. Can you help?

Cheers
Andre

von André Labuschagné - am 24.08.2016 17:40
I would use 3 static controls instead of using an HTML control. Each of the static controls can be a different color.

I think the HTML control is mostly used for displaying web pages in WinDev.

von Curtis - am 24.08.2016 17:46
That was my next solution.

We have used the html control very successfully with hand coded html. it works very well indeed.

von André Labuschagné - am 24.08.2016 18:00
Hi andre

Make a new window.

Place rtf tekst control on it

You can change font and size and colour etc etc

regards
Allard

von Allard - am 26.08.2016 06:20
All sorted - it was a threading issue.

Cheers
André

von André Labuschagné - am 26.08.2016 15:32
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.