Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 17 FEB 2001 04:07:34PM b cameron wrote:

How can I set the foreground (or background) color of a particular cell (row) in a listbox? The listbox is prefilled at create time, then the user will select multiple cells and then I would like to programmatically change the text color of it/them/they.

I will/am searching the knowledge base for the next two questions

but will ask anyway.

What is the most successful way to get 2 forms from one version of OI into another. The forms are nonbound so not conncerned with any data tables. I want to go from my development copy of OI into someone else's development copy.

Using right click on buttons or listbox, edittables?

TIA


At 17 FEB 2001 04:13PM b cameron wrote:

http://www.revelation.com/knowledge/23d2.htm

Found this link but "no can get to…" Suggestions?


At 17 FEB 2001 07:03PM Donald Bakke wrote:

Bruce,

Where did you find this link? Or better yet, what were you looking for? Maybe we can provide a better link.

[email protected]

SRP Computer Solutions, Inc.


At 17 FEB 2001 07:26PM Donald Bakke wrote:

Bruce,

I don't know how you can change specific colors of cells within a listbox. Someone else, Sprezz or WinWin, might know, but I've never seen this implemented with OI. If you use a multiselect edittable then this could be done quite easily.

Their are several methods for transferring items from one version of OI to another. Which one you use depends on your needs and circumstances. Here's a brief description of the two approaches we take:

1. Check-Out approach

This method allows you to select specific items for transferring into another repository. You can optionally point to an existing copy of OI and transfer everything directly into that system. Alternatively, you can point to an empty folder and a temporary repository will be created for you. If you do the second method then you'll have to log into the other version of OI and run a similar "Check-Out" process to bring those components in.

The advantage of this approach, especially if you go direct from OI to OI, is speed. Also, the tools included with the Check-Out method allow you to select components that are related to each other using OI's "Used By" tracking. The disadvantage to this approach is that once you have done a Check-Out, you have to start the process all over again if you need to do this another time. That is, OI does not track previous Check-Out's so you have to create them anew each time.

2. RDK approach

This method also allows you to select specific items for transferring to another OI repository. This is all handled through the Runtime Deployment Kit interface and an included function, RDKInstall(), for bringing in already created RDK extracts.

The advantage of this approach is that it stores your RDK "definitions" so you can easily go back and re-deploy when you need another update made. These definitions can be modified or "saved-as" for great flexibility. Another feature is that you can select components which have been modified "as-of" a certain date and time. This is helpful when you have done some work recently and you want to extract just those items. The disadvantage of this approach is that the tools do not provide "Used by" tracking. So all components that are related to each other have to be tracked internally or you have to use another OI utility to provide you this information. Either way, you have to select each component one at a time. Also, this approach always requires to to deploy to an empty folder and then brought in by logging into the target copy of OI.

Revelation indended the Check-Out approach to be used for inter-development tracking and work transfer. The RDK was designed primarily for allowing developers to easily send updates to already deployed systems (even if they are only runtime.) In general we prefer to use the RDK for inter-development and client updates. If I need a quick transfer, however, I'll use the Check-Out system.

[email protected]

SRP Computer Solutions, Inc.


At 17 FEB 2001 07:36PM Donald Bakke wrote:

Bruce,

I didn't realize that you had asked a separate question regarding right-clicks in OI. Now that I know what you wanted, I understand your question.

There are a few posts that document how to trap the right-click. Some, however, do not work with edittables. This link should work with all controls including edittables.

If you were also interested in creating your own context menus with your right-clicks, then study this Knowledge Base article. You will want/need to massage it some to make it work dynamically for you but all the essential ingredients are here.

[email protected]

SRP Computer Solutions, Inc.


At 18 FEB 2001 04:33PM b cameron wrote:

Don,

Thank you! This is excellent information!

I will look into the edittable multiselect option again for the color situation. I tried to use an edittable at first but found that list boxes were more to the clients liking in functionality.

As for the right click I did find quite a bit of info in the knowledge base. No menu of right click menus though as of yet. I will keep looking.

Again, thanks for taking the time to respond with that much information.


At 18 FEB 2001 05:55PM b cameron wrote:

Don,

Posted this before I read your other reply. I did check out the knowledge base and got the right click menu example to work, thanks.

As for the color situation. You have to excuse my ignorance but nowhere, have I found anything regarding multiselection on an edittable. That is one of the reasons for going with the listbox.

I have been searching for a change color solution but to no avail.

I thought maybe I could put a bmp in a particular cell but have not

had any luck at that either.


At 18 FEB 2001 10:32PM Donald Bakke wrote:

Bruce,

Posted this before I read your other reply. I did check out the knowledge base and got the right click menu example to work, thanks.

No problem. I'm glad you found it and got it working.

[/i]As for the color situation. You have to excuse my ignorance but nowhere, have I found anything regarding multiselection on an edittable. That is one of the reasons for going with the listbox.[/i]

Multi-selection is accomplished by modifying the STYLE property of the edittable. Look in the PRG and you'll see a reference to "512…Multi-Row Selection". Using this and changing the look of the edittable (i.e. removing column headings and row buttons) will allow you to create a control that looks and behaves very much like a listbox but with the features of an edittable.

I have been searching for a change color solution but to no avail. I thought maybe I could put a bmp in a particular cell but have not had any luck at that either.

I didn't do an exhaustive search myself, but the only place where I saw direct postings on how to change color was on the Works site. However, since this information is not privledged I'll re-post the code sample for you here:

RetVal=Send_Message(EditTable,"COLOR_BY_POS",Col,Row,ColorArray)

where ColorArray is an @Fm-delimited array consisting of

Background Color

Foreground Color

Background Color (when Selected)

Foreground Color (When Selected)

Putting a BMP in a cell can be done, sort of. However, I don't think it is worth the effort. Essentially, what we do is dynamically create a BMP control and position it over the edittable cell where the focus is. Our BMP is actually a button so it has a purpose. The tricky part is writing the logic to detect and place the exact position of the BMP control.

[email protected]

SRP Computer Solutions, Inc.


At 18 FEB 2001 10:44PM b cameron wrote:

Don,

I'll look into the edittable code for multi selection. THanks.

What I ended up doing; since the color_by_pos wasn't happening for me on the listbox; was to create a new bmp using the IND.bmp to have 4 images. Three with different colors and 1 white. At the top of my listbox is a button that looks like a column heading. When the user selects a cell or multiple, then clicks the heading button I offer 3 options. Depending on the option I loop through the TEXTVAL items returned, and change the bmp using the Send_Message(ctrlentid,"UPDATE",pos,bmpval)

depending on what it was and what the user has selected it to be.

I'm pretty happy with the results so far. Thanks for the response.

B

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/c105a05e3b265885852569f600740c9c.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1