Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Changing EditFields from header files
Re: Changing EditFields from header files [message #38098 is a reply to message #38097] Fri, 30 November 2012 13:22 Go to previous messageGo to previous message
navi is currently offline  navi
Messages: 107
Registered: February 2012
Location: Sydney, Australia
Experienced Member
Quote:

No C++ variables are passed or returned except the String that will be placed in the EditField t1.

what do you mean?

Again, you CAN NOT access t1 from Try2(). C++ Scope does not work that way. you have to pass or return variable in order to set value into t1 from Try2(). There is no clean way around it.

And trust me it was the very reason why C++ makers created the 'class scope'! To protect the class members.

Attached modified code has example of how t1 can be modified from functions from h2.h without bending or breaking C++ rules.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: hiding the vertical scrollbar of LineEdit Ctrl
Next Topic: Buttons in Array using ArrayCtrl
Goto Forum:
  


Current Time: Thu Jun 06 10:36:15 CEST 2024

Total time taken to generate the page: 0.02552 seconds