Changing object properties

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Francois Trottier

    Changing object properties

    i know its a newbie question, but how can u change the properties of
    an object ( for exemple the caption of a button) i know in vb you
    could just write object.properti es="" but how can we do that in c ++
  • Dirk Feytons

    #2
    Re: Changing object properties

    Francois Trottier wrote:
    [color=blue]
    > i know its a newbie question, but how can u change the properties of
    > an object ( for exemple the caption of a button) i know in vb you
    > could just write object.properti es="" but how can we do that in c ++[/color]

    *Standard* C++ (which is the topic of this group) knows nothing about
    buttons or any GUI stuff for that matter. You should consult the
    documentation of the GUI library you're using.

    --
    Dirk

    (PGP keyID: 0x448BC5DD - http://www.gnupg.org - http://www.pgp.com)

    ..oO° "The most exciting phrase to hear in science, the one that heralds
    the most discoveries, is not 'Eureka!' but 'That's funny..." -- Isaac
    Asimov °Oo.

    Comment

    • Jacek Dziedzic

      #3
      Re: Changing object properties

      Basically, you're not in the right newsgroup.




      C++ does not know what captions or buttons are.

      People here are very sensitive about posts being on-topic,
      so trying a windows-specific newsgroup is your only major option.

      - J.


      Comment

      • David White

        #4
        Re: Changing object properties

        Jacek Dziedzic <jacek-NOSPAM-@janowo.net> wrote in message
        news:28499-1063753251@jano wo.net...[color=blue]
        > Basically, you're not in the right newsgroup.
        >
        > http://www.slack.net/~shiva/welcome.txt
        > http://www.slack.net/~shiva/offtopic.txt
        >
        > C++ does not know what captions or buttons are.
        >
        > People here are very sensitive about posts being on-topic,
        > so trying a windows-specific newsgroup is your only major option.[/color]

        And once again an off-topic question has been posted separately to multiple
        standard-language newsgroups. The disease is spreading.

        DW



        Comment

        • Jonathan Mcdougall

          #5
          Re: Changing object properties

          >i know its a newbie question, but how can u change the properties of[color=blue]
          >an object ( for exemple the caption of a button) i know in vb you
          >could just write object.properti es="" but how can we do that in c ++[/color]

          Depending on how the class is written :

          object.property = "value";

          or

          object.property ("value");

          or even

          object << "value";

          assuming a proper operator has been defined. I have seen cases where
          the only way was to do

          object != "value";

          Weird, no?


          Jonathan

          Comment

          • Clemens Auer

            #6
            Re: Changing object properties

            On Tue, 16 Sep 2003 18:06:54 -0400
            Francois Trottier <francoistrotti er@videotron.ca > wrote:
            [color=blue]
            > i know its a newbie question, but how can u change the properties of
            > an object ( for exemple the caption of a button) i know in vb you
            > could just write object.properti es="" but how can we do that in c ++[/color]

            C++ structs and classes doesn't have anything simelar like VB
            properties..
            only elements and member functions ..
            vb like properties are availiable in VB, VB.NET and C#

            Clemens

            PS:
            but don't switch to C# ... programming with it gives you the feeling of
            getting brain fucked by the whole M$ dev team at once ...
            (thinking of all the NotImplemented Exceptions i got writing an small
            VS.Net2003 AddIn)

            Comment

            Working...