demo ActionTest

General TRichView support forum. Please post your questions here
Post Reply
ango
Posts: 2
Joined: Mon Apr 16, 2007 4:14 am

demo ActionTest

Post by ango »

How translate this into C++ ?
SRichViewEdit1.NextCurItem([rvsPicture, rvsHotspot, rvsHotPicture]);
THX!
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

This function has open array (of integer) as a parameter.
It is translated to C++ as 2 parameters: (1) a pointer to array and (2) size (minus 1):
bool __fastcall NextCurItem(const int * StyleNo, const int StyleNo_Size);
So it should be:

Code: Select all

int styles[] = { rvsPicture, rvsHotspot, rvsHotPicture };
SRichViewEdit1.NextCurItem(styles, 2 /* array size -1 */); 
ango
Posts: 2
Joined: Mon Apr 16, 2007 4:14 am

Post by ango »

Sergey Tkachenko wrote: SRichViewEdit1.NextCurItem(styles, 2 /* array size -1 */); [/code]
Thank you!
But,
SRichViewEdit1->NextCurItem(styles, 2 /* array size -1 */);[/code]
:D
Post Reply