TABCONTROL non parla con suo "padre" [RISOLTO]

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

Moderator: wriedmann

User avatar
claudiocarletta
Posts: 101
Joined: Sat Sep 05, 2020 8:56 am

TABCONTROL non parla con suo "padre"

Post by claudiocarletta »

Grazie Wolfgang,
adesso ci do un'occhiata.
Hai postato l'esempio mentre stavo preparando il mio da postare

Ciao
Claudio
User avatar
wriedmann
Posts: 3673
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

TABCONTROL non parla con suo "padre"

Post by wriedmann »

Ciao Claudio,
se non capisci qualcosa nel mio esempio oppure se non riesci a trasferirlo nella tua applicazione fammelo sapere.
Saluti
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
Chris
Posts: 4613
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

TABCONTROL non parla con suo "padre"

Post by Chris »

Hi Claudio,

Try this, it should work:

a1 := SELF:Owner:Owner:Owner:oDCComboBox1:Value
a2 := SELF:Owner:Owner:Owner:oDCComboBox2:Value

It's tricky finding the real owner window in the hierarchy of windows surfaces that VO uses, especially for a dialog window that you use for the page, but you can see what this owner represents with:

InfoBox{self, "Attenzione", asstring(SELF:Owner:Owner:Owner)}:Show()
Chris Pyrgas

XSharp Development Team test
chris(at)xsharp.eu
User avatar
wriedmann
Posts: 3673
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

TABCONTROL non parla con suo "padre"

Post by wriedmann »

Hi Chris,
in the past I had also worked with the "cascaded" owners, but for this I gave it a look with the debugger, and effectively the "oParent" instance variable contains the owning window, so code like this should also work:

Code: Select all

a1 := oParent:oDCComboBox1:Value
a2 := oParent:oDCComboBox2:Value
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
claudiocarletta
Posts: 101
Joined: Sat Sep 05, 2020 8:56 am

TABCONTROL non parla con suo "padre" [RISOLTO]

Post by claudiocarletta »

Grazie Chris,
hai vinto un vero Cannolo Siciliano
da una settimana che ero praticamente fermo a questo punto.
Tutto risolto.
Ringrazio quanti si sono prodigati nell'aiutarmi anche se ho paura che vi disturberò molte altre volte.
Ciao
User avatar
Chris
Posts: 4613
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

TABCONTROL non parla con suo "padre" [RISOLTO]

Post by Chris »

Hi Claudio,

Please don't hesitate to post as many questions as you want, a lot of people here are very happy to help! Although next time maybe you'll need to arrange to transfer some of those delicacies, instead of just posting photos ;-)
Chris Pyrgas

XSharp Development Team test
chris(at)xsharp.eu
User avatar
claudiocarletta
Posts: 101
Joined: Sat Sep 05, 2020 8:56 am

TABCONTROL non parla con suo "padre" [RISOLTO]

Post by claudiocarletta »

Purtroppo, mio caro Chris, il vero cannolo Siciliano non lo trovi in vetrina o comunque non è quello che ti devono servire.
Deve essere riempito un attimo prima di consumarlo perché la cialda deve essere asciutta e croccante.
È difficile che il cannolo possa affrontare un viaggio fino in Grecia in buone condizioni, è più facile che venga tu in Sicilia, troverai molte somiglianze con la tua bella Grecia.
Ciao
User avatar
Chris
Posts: 4613
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

TABCONTROL non parla con suo "padre" [RISOLTO]

Post by Chris »

Yeah, everybody says the two places look very similar, also the people... I have only been to central/northern Italy, but will try to visit also Sicily soon! Ciao Claudio!
Chris Pyrgas

XSharp Development Team test
chris(at)xsharp.eu
User avatar
wriedmann
Posts: 3673
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

TABCONTROL non parla con suo "padre" [RISOLTO]

Post by wriedmann »

Hi Chris,
after all, Sicily many, many years ago was called "Magna Graecia".... and there are many ancient greek temples in Sicily.
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
Chris
Posts: 4613
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

TABCONTROL non parla con suo "padre" [RISOLTO]

Post by Chris »

Hi Wolfgang,

Yeah, I've heard something about it :). And also "una faccia, una razza", so many similarities!
Chris Pyrgas

XSharp Development Team test
chris(at)xsharp.eu
Post Reply