WD20/21 - Default SelectColor() window is empty?

Startbeitrag von Arie am 29.09.2016 11:57

Hi,

for some reason the SelectColor() function, which is supposed to open a color picker, is opening an empty Window in one of my WD20 projects. While in others I have no problem. I migrated the project in WD21, just to do a test, same result: showing this empty window.
I just recently discoverd this, because this function is not used very often by the user.

Originally this project came from WD15,16 and so on. Maybe it lost "something" on it's way to WD 20?

Any ideas?


Antworten:

Looks like that window got corrupted. I'm not sure where it is stored, but if we find out I'm sure one of us can send you our copy of the window, that is if it's stored as a window file like I assume.

Have you tried using the scSystem constant to see if the system color window shows up?

von Curtis - am 29.09.2016 13:49
Well, it's quite strange.
As a test, I call SelectColor() as the very first function in the project opening sectin - no problem , works as expected.
Then I moved the call further, after some startup logic. and after all it tunrs out that this function 'breaks' after a call to gpwLogin() ?!?!??!

I'm using a manual start of the usergroupware and it's the old V17 version (GPW not GPU). Somehow this method breaks the color-window.

But using scSystem, as you suggest, I have no problem. So it must be the windev-color-window, but i don't see this window as part of my project. I guess it's somewhere in the Windev framework?

Nevertheless, using the system-variant is good enough for now, so you put my on the right track. Thanks.

von Arie - am 29.09.2016 14:28
Strange. Sounds like a glorious WinDev bug. Doesn't sound like the window is corrupt if it works at first.

I assume it's somewhere in the framework. I could have sworn there was another way to do a color picker where a customizable window gets imported to your project, but I can't seem to find it.

von Curtis - am 29.09.2016 14:46
Is Groupware blocking access somehow?

von DarrenF - am 29.09.2016 14:54
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.