Search found 36 matches

by Nicke
Mon Feb 09, 2015 9:13 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: OpenSoundControl (OSC) in Rev?
Replies: 31
Views: 25545

Re: OpenSoundControl (OSC) in Rev?

CasparCG sends realtime data and events as soon as you are connected like this:
http://casparcg.com/wiki/CasparCG_OSC_Protocol

So it seems that the best way to do it is to override your OSC.ReadData. Thanks!
by Nicke
Sun Feb 08, 2015 7:21 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: OpenSoundControl (OSC) in Rev?
Replies: 31
Views: 25545

Re: OpenSoundControl (OSC) in Rev?

mweider: I tried to build my own OSC lib (did not get it to fully work, I see the messages but didn't get the formatting working) before I found yours. I'm also trying to use it with CasparCG and following your advice above I have now connected but I can not figure out how to listen to all messages ...
by Nicke
Thu May 22, 2014 8:32 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Datagrid, color a line without using backgroundcolor[SOLVED]
Replies: 6
Views: 4778

Re: Datagrid, color a line without using backgroundcolor

Hi Simon,

I have to look into that. Looked at a few tutorials about customizing the template row and it might be the right way to go. Datagrids are so hard to understand...

Thanks!
by Nicke
Wed May 21, 2014 4:09 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Datagrid, color a line without using backgroundcolor[SOLVED]
Replies: 6
Views: 4778

Re: Datagrid, color a line without using backgroundcolor

Craig,

not really since it only colors the text. I want to change the backgroundcolor and opacity so that it looks like "Alternate Row Colors" but with an other color.

Is it possible or should I forget about LC in cases like this and return to python/Qt?

BR Nicke
by Nicke
Tue May 20, 2014 10:06 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Datagrid, color a line without using backgroundcolor[SOLVED]
Replies: 6
Views: 4778

Datagrid, color a line without using backgroundcolor[SOLVED]

Hi, I posted about my issue in the beginners forum (http://forums.runrev.com/viewtopic.php?f=7&t=20320) but I didn't get an answer if it is possible in LC to do what I want. Can I change the backgroundcolor of a line in a datagrid in the same way that "Alternate Row Colors" does? If I use background...
by Nicke
Tue May 20, 2014 9:53 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Change datagrid backgroundcolor for a row from code [SOLVED]
Replies: 19
Views: 10680

Re: Change datagrid backgroundcolor for a row from code

Hi keram,

thanks I have to take a look at that approach, but I still have to figure out how to color the wanted line so that the hilite is still visible...
by Nicke
Thu May 15, 2014 11:04 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Change datagrid backgroundcolor for a row from code [SOLVED]
Replies: 19
Views: 10680

Re: Change datagrid backgroundcolor for a row from code

Ok, I'm back to square one. The code I thought was working is not working as I need. on mouseUp repeat with x = 1 to 4 set the opaque of field ("Col" && x && "0002") of grp "DG1" to true set the backgroundColor of field ("Col" && x && "0002") of grp "DG1" to "green" end repeat end mouseUp This will ...
by Nicke
Sat May 10, 2014 9:56 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Change datagrid backgroundcolor for a row from code [SOLVED]
Replies: 19
Views: 10680

Re: Change datagrid backgroundcolor for a row from code

Hi, the reset also resets the active hilite so that is not an option. I tried with the lighter green background color but at least on a linux machine there is no different (look at the screenshot) http://www.digiactive.net/forum_stuff/dg_selected.png I have to investigate the background color opacit...
by Nicke
Sat May 10, 2014 8:57 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Change datagrid backgroundcolor for a row from code [SOLVED]
Replies: 19
Views: 10680

Re: Change datagrid backgroundcolor for a row from code

Simon, excellent! I didn't figure out how to change the whole line at a time but of course with a repeat... So when I want to move the green line to the next line (line 2) how do I reset line 1 as it was before I colored it? I could of course just set the opaque to false but the the background color...
by Nicke
Sat May 10, 2014 8:26 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Change datagrid backgroundcolor for a row from code [SOLVED]
Replies: 19
Views: 10680

Re: Change datagrid backgroundcolor for a row from code

Simon,

correct.

The closest I have found is this http://ftp.runrev.com/forums/viewtopic.php?f=7&t=13025 solution but I have not figured out how I should use it from code (where I'm not clicking on the datagrid)...

Nicke
by Nicke
Sat May 10, 2014 8:07 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Change datagrid backgroundcolor for a row from code [SOLVED]
Replies: 19
Views: 10680

Re: Change datagrid backgroundcolor for a row from code

Hi Simon, I added your code to the DG but I'm still confused. So now (I'm testing this on a linux machine now, I usually use LC on a Windows if that is of any difference) when I click on any line in the DG the message box pops up with the command closeCard entered and below the line I pressed but th...
by Nicke
Sat May 10, 2014 7:03 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Change datagrid backgroundcolor for a row from code [SOLVED]
Replies: 19
Views: 10680

Re: Change datagrid backgroundcolor for a row from code

Hi, Craig, I will try to explain better what I want to achieve. I started a new Main stack, I dragged a DataGrid out named it "DG1" added four columns, added 3 lines of data. Added a button with the code below: on mouseUp set the dgFocus of grp "DG1" to "true" set the dgProp["hilite color"] of grp "...
by Nicke
Fri May 09, 2014 11:26 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Change datagrid backgroundcolor for a row from code [SOLVED]
Replies: 19
Views: 10680

Re: Change datagrid backgroundcolor for a row from code

I have still not found a working solution for changing the background color of a line in a datagrid, any ideas? I would like to set the background color of a line that does not change (as the hilitebar does) if the user clicks in the datagrid.

BR Nicke

Go to advanced search