>  How do I highlight the row with a callback?

  Use the click_cb callback:

int function(Ihandle *ih, int lin, int col, char *status);

 And setting the MARKL:C attribute, using  MARK*:C (a full column) or
MARKL:* (a full line).

Best,
Scuri



Em qua., 15 de jul. de 2020 às 14:44, Antonio Scuri <antonio.sc...@gmail.com>
escreveu:

> >  Can you point me to a C example showing how to assign titles?
>
>   "A matrix might have titles for lines and columns. Titles are always non
> scrollable, non editable and presented with a different default background
> color. A matrix will have a line of titles if an attribute of the "L:0"
> type is defined, where L is a line number, or if the HEIGHT0 attribute is
> defined. It will have a column of titles if an attribute of the "0:C" type
> is defined, where C is a column number, or if the WIDTH0 attribute is
> defined."
>
>   From the IupMatrix documentation Notes.
>
> Best,
> Scuri
>
>
> Em seg., 13 de jul. de 2020 às 16:06, <supp...@scriptbasic.org> escreveu:
>
>> Antonio,
>>
>> Can you point me to a C example showing how to assign titles?
>>
>> The matrix.c example has no titles.
>>
>> Thanks!
>>
>> John
>>
>> On 2020-07-13 09:25, supp...@scriptbasic.org wrote:
>> > There is no title just a grid of cells. How would I select (highlight)
>> > let's say row 3 if I click on any cell in that row? That makes sense
>> > for columns but clicking on a title for rows doesn't.
>> >
>> > How do I highlight the row with a callback?
>> >
>> > On 2020-07-13 06:07, Antonio Scuri wrote:
>> >> To select a complete column or a line you just click on the title. If
>> >> you want the col or Lin to be selected when clicked on a cell you
>> >> should use a callback.
>> >>
>> >> Best,
>> >> Scuri
>> >>
>> >> Em dom, 12 de jul de 2020 22:25, <supp...@scriptbasic.org> escreveu:
>> >>
>> >>> I'm using mark multiple. Should this be disabled for COL / LIN mode?
>> >>>
>> >>> On 2020-07-12 17:06, John Spikowski wrote:
>> >>>> Hi Antonio,
>> >>>>
>> >>>> I can't seem to get anything other than "CELL" to work with
>> >>> IupMatrix
>> >>>> and IupSetAttribute(mat, "MARKMODE","CELL"). If I try COL / LIN
>> >>> nothing
>> >>>> is highlighted when I click on a cell.
>> >>>>
>> >>>> Running IUP 3.29 Windows 10 32 bit.
>> >>>>
>> >>>>
>> >>>> John
>> >>>>
>> >>>>
>> >>>>
>> >>>> _______________________________________________
>> >>>> Iup-users mailing list
>> >>>> Iup-users@lists.sourceforge.net
>> >>>> https://lists.sourceforge.net/lists/listinfo/iup-users
>> >>>
>> >>> _______________________________________________
>> >>> Iup-users mailing list
>> >>> Iup-users@lists.sourceforge.net
>> >>> https://lists.sourceforge.net/lists/listinfo/iup-users
>> >> _______________________________________________
>> >> Iup-users mailing list
>> >> Iup-users@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/iup-users
>> >
>> >
>> > _______________________________________________
>> > Iup-users mailing list
>> > Iup-users@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/iup-users
>>
>>
>> _______________________________________________
>> Iup-users mailing list
>> Iup-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>
>
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to