Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 13 of 13
  1. #1
    Join Date
    Mar 2007
    Posts
    172

    Grin how can i save shape color ?

    is it possible to save shape color in a file (txt, ini, inc) ?

  2. #2
    Join Date
    Dec 2007
    Location
    Missouri, United States
    Posts
    476
    Quote Originally Posted by ButtonMaker View Post
    is it possible to save shape color in a file (txt, ini, inc) ?
    im not sure i understand what your wanting to do this for but if you must then youll have to set the value you want manually as their is no way to actually retrieve the shapes color.

    So lets say you want your shape to be filled with red [which is 255] then youd set a variable which we'll call scolor to 255. Then set the fillcolor for the shape [which we'll call shape1] to the var, and finally output the variable to an inifile. A small example is below. Hope it helps

    Code:
    sColor = 255
    Shape.SetFillColor("Shape1", sColor);
    INIFile.SetValue("AutoPlay\\Docs\\Settings.ini", "Shape1", "Color", sColor);

    p.s.
    a more practical use would be to set the scolor variable with a dialog.input or perhaps a input object.
    Last edited by TimeSurfer; 04-23-2008 at 06:22 AM.

  3. #3
    Join Date
    Mar 2007
    Posts
    172
    @TimeSurfer

    i want to save color of the shape for next time use...

    look at the example please...
    Attached Files

  4. #4
    Join Date
    Dec 2007
    Location
    Missouri, United States
    Posts
    476
    i gotcha here is a revised copy of your apz. You'll notice i added 1 line to your label code [at the bottom] and added a line in page preload and a conditional statement in page on show.
    Attached Files

  5. #5
    Join Date
    Mar 2007
    Posts
    172
    thanks alot TimeSurfer

  6. #6
    Join Date
    Dec 2007
    Location
    Missouri, United States
    Posts
    476
    Quote Originally Posted by ButtonMaker View Post
    thanks alot TimeSurfer
    no problem m8, alot of us kinda just drift around here at the forum looking for people to help

  7. #7
    Join Date
    Mar 2007
    Posts
    172
    why can i not set pluging invisible ? if no color make it invisible...

    Code:
    if scolor ~= nil then
      Shape.SetFillColor("Plugin1", scolor);
      else
      Shape.SetVisible("Plugin1", false)
    end

  8. #8
    Join Date
    Mar 2007
    Posts
    172
    isnt that correct ? if no color make it invisible...

    Code:
    if scolor ~= nil then
      Shape.SetFillColor("Plugin1", scolor);
      else
      Plugin.SetVisible("Plugin1", false);
    end

  9. #9
    Join Date
    Dec 2007
    Location
    Missouri, United States
    Posts
    476
    yes your correct, problem is that scolor is set by the inifile. if the inifile were empty it would work or if the color value in the ini was blank it would work.

  10. #10
    Join Date
    Mar 2007
    Posts
    172
    TimeSurfer
    when i click cancel on color dialog i get an error !!! with ur last example

  11. #11
    Join Date
    Dec 2007
    Location
    Missouri, United States
    Posts
    476
    Quote Originally Posted by ButtonMaker View Post
    TimeSurfer
    when i click cancel on color dialog i get an error !!! with ur last example
    whats the error it give's you and i will fix

  12. #12
    Join Date
    Mar 2007
    Posts
    172
    when i click cancel on color dialog shape goes black color and i get that error...
    Attached Images

  13. #13
    Join Date
    Dec 2007
    Location
    Missouri, United States
    Posts
    476
    it has something to do with the chcolor.dll give me a few ill try to have a solution for you.

Similar Threads

  1. Shape object fill color
    By Roboblue in forum AutoPlay Media Studio 6.0
    Replies: 5
    Last Post: 02-23-2007, 03:21 AM
  2. More color picker questions
    By Roboblue in forum AutoPlay Media Studio 6.0
    Replies: 12
    Last Post: 02-19-2007, 12:30 AM
  3. Displaying a Save As Dialog
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 10-01-2003, 03:53 PM
  4. Windows Color Picker
    By JimS in forum AutoPlay Media Studio 4.0
    Replies: 23
    Last Post: 09-11-2003, 08:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts