ERROR RC2104 undefined keyword or key name: WS_VISIBLE

Forum dedicato ai programmatori di X# in lingua italiana – Italian language forum

Moderator: wriedmann

Post Reply
Iannino45
Posts: 2
Joined: Thu Nov 28, 2019 9:06 am

ERROR RC2104 undefined keyword or key name: WS_VISIBLE

Post by Iannino45 »

Segnalo e descrivo il seguente bug scaturito dopo la compilazione di una applicazione VO importata in X# da CAVO28sp4b :
Se in una finestra di tipo DataDialog vi è un oggetto Single-Line Edit che abbia la proprietà Visibile(Yes/No)
impostata su No già nella versione VO, quando l'applicazione viene importata tramite Tool di XIDE
non dà nessun errore in compilazione. Se ora si edita l'oggetto da Xide ritoccando la proprietà Visibile mettendola ad Yes
la compilazione è ancora OK ma se poi la si riporta nuovamente a No, il compilatore dà subito errore RC2104.
Controllando il .rc del programma dove l'errore del compilatore ti rimanda, si nota che la proprietà Visibile
dell'oggetto viene posta a 'NOT WS_VISIBLE'.
Forzando manualmente al posto di 'NOT WS_VISIBLE' un 'NOT 268435456', come fa invece Visual Studio 2019 nello
stesso punto del .rc, allora la compilazione va a buon fine e tutto funziona perfettamente.

Riporto a titolo di esempio la riga del .rc in cui tutto ciò avviene:

Compilazione con errore dopo aver posto a No da editor di Xide la proprietà Visibile dell'oggetto:

CONTROL "", _TABTOTCONS_DATAWINDOW_CGIORNO, "EDIT", WS_CHILD|WS_DISABLED|WS_BORDER|ES_AUTOHSCROLL|NOT WS_VISIBLE, 123, 172, 22, 12, WS_EX_CLIENTEDGE
-----------------------------
Compilazione senza errore dopo aver forzato manualmente il .rc sostituendo 'NOT WS_VISIBLE' con 'NOT 268435456'

CONTROL "", _TABTOTCONS_DATAWINDOW_CGIORNO, "EDIT", WS_CHILD|WS_DISABLED|WS_BORDER|ES_AUTOHSCROLL|NOT 268435456, 123, 172, 22, 12, WS_EX_CLIENTEDGE

sulla falsa riga di quello che fa Visual Studio 2019 nel trattare la proprità Visibile(Yes/No)


Uso il seguente ambiente di sviluppo:
XSharp 26a1 Public scaricato il 25-10-2020
XIDE 1.26 Build september 2020
Il problema era presente anche nella prima versione da me usata XSharp 22Public 12-2019 con la sua XIDE.
Qualcuno ha già posto rimedio a questo problema?
Grazie
Antonino
User avatar
Chris
Posts: 4562
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

ERROR RC2104 undefined keyword or key name: WS_VISIBLE

Post by Chris »

Ciao Antonino,

I see the problem, also it is a bit worse, after you set Visible to No and save, next time you open the form again, Visible is set to Yes again. Will fix this now, thanks for your report!
Chris Pyrgas

XSharp Development Team test
chris(at)xsharp.eu
User avatar
Chris
Posts: 4562
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

ERROR RC2104 undefined keyword or key name: WS_VISIBLE

Post by Chris »

Antonino,

The problem is fixed now! I can't see your email address, so if you want a quick fix, please send me an email yourself and I will reply with sending it to you.
Chris Pyrgas

XSharp Development Team test
chris(at)xsharp.eu
Iannino45
Posts: 2
Joined: Thu Nov 28, 2019 9:06 am

ERROR RC2104 undefined keyword or key name: WS_VISIBLE

Post by Iannino45 »

Thanks Chris,
I replied by email.
Antonino
Post Reply