🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #14164

Re: How to Trigger the Main Program from a Timer Procedure?

#14164
From: Remy Lebeau (TeamB)
Date: Tue, 02 Sep 2003 20:35
38 lines
2545 bytes
"Bob Gonder" <notbg@notmindspring.invalid> wrote in message
news:8op9lvgh1nut5j7onf31mlv7d901j164fg@4ax.com...

> Could he call something simple like maybe NextButton::OnClick() ?

If all he wants to do is trigger a specific event handler, then just call it
directly, as event handlers are class methods like any other:

    Button1Click(NULL);
or
    Button1Click(Button1);

If he wants to trigger the OnClick of a particular button without calling
the OnClick handler directly, then he can call the button's Click() method
instead:

    Button1->Click();

> Now if I can just figure out how to put column header buttons
> into a list view. (non-vcl of course).

A ListView already has built-in column headers and header buttons.  Simply
use the ListView in report mode, and just make sure that the
LVS_NOCOLUMNHEADER and LVS_NOSORTHEADER styles are not specified.  Then, to
know when a header button has been clicked on, simply intercept the
WM_NOTIFY message from the parent's window procedure and test for the
LVN_COLUMNCLICK notification.


Gambit



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.515 / Virus Database: 313 - Release Date: 9/1/03
Technical Details
Message-ID: <3f54fee6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <oprus769kobq7az6@newsgroups.borland.com> <3f53a731$1@newsgroups.borland.com> <i7c7lv4b1hb6f6k5upe6qsv718q7qi1jth@4ax.com> <opruue6dumbq7az6@newsgroups.borland.com> <jvf8lv4n3r77fendn3jhcher6ppblrhsk3@4ax.com> <3f5443bb$1@newsgroups.borland.com> <26n8lv07s0tvfprnifpa1g0taki56lojoo@4ax.com> <3f54cb7f@newsgroups.borland.com> <8op9lvgh1nut5j7onf31mlv7d901j164fg@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,e4cd861378e7d24
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-09-02 13:37:41 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <oprus769kobq7az6@newsgroups.borland.com> <3f53a731$1@newsgroups.borland.com> <i7c7lv4b1hb6f6k5upe6qsv718q7qi1jth@4ax.com> <opruue6dumbq7az6@newsgroups.borland.com> <jvf8lv4n3r77fendn3jhcher6ppblrhsk3@4ax.com> <3f5443bb$1@newsgroups.borland.com> <26n8lv07s0tvfprnifpa1g0taki56lojoo@4ax.com> <3f54cb7f@newsgroups.borland.com> <8op9lvgh1nut5j7onf31mlv7d901j164fg@4ax.com>
Subject: Re: How to Trigger the Main Program from a Timer Procedure?
Date: Tue, 2 Sep 2003 13:35:04 -0700
Lines: 40
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3f54fee6$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1062534886 207.175.226.26 (2 Sep 2003 13:34:46 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail