Marc,
The way I would do it is to create a button in R:Base with the text as you want
it - presumably a single letter - then use a graphics program to capture a copy
of that then you can edit the image if need be. Then create a copy of the
button looking "depressed" - that can also be edited if need be.
These should end up exactly the same size as your buttons would be so your
space is not compromised.
You only have to place the variable image(s) on one line of the S/R but, I
assume, you'll need three in a row - if I'm understanding your needs correctly.
As the look-up is going to pick the image for you it's only one variable for
each letter across the row.
The "problem" with buttons and the like in S/Rs is that they do change to the
value of whatever line you are currently focused on. Believe me, the look-up
doesn't change and, once you have the images, it really is pretty
straight-forward. (It has to be - I got it to work!)
If you like I'll send you a screen grab of my form showing the effect - I'd
post it here but it'll only get stripped off by the server.
Regards,
Alastair.
----- Original Message -----
From: MDRD
To: RBASE-L Mailing List
Sent: Thursday, March 05, 2009 1:49 PM
Subject: [RBASE-L] - Re: Scrolling Region and DB Check box
Hi Alastair
Would this take more space compared to a DB check box? My form is getting
tight on space, we will have several tiers and each one
had 5 lined and a noted field at the bottom.
Since I could have 13 images for each of the 5 rows it seems this would get
complicated.
The Bit Buttons would work fine if the other tiers didn't change too.
Am I correct, would I have to do this for each A B C then for each of the 5
lines?
Thanks for the help
Marc
----- Original Message -----
From: Alastair Burr
To: RBASE-L Mailing List
Sent: Wednesday, March 04, 2009 6:22 PM
Subject: [RBASE-L] - Re: Scrolling Region and DB Check box
Marc,
I'm pretty sure it would work for you - images are clickable and can run
EEPs.
I've had time now to look up how my form works:
I have a special table with 4 images, in my case, each with an Id code: MI,
MZ, ZI & ZZ.
The form has these variables:
20 : TEXT vHint1 = (IFGT(INT_WritMus,10001, 'M', 'Z'))
21 : TEXT vHint2 = (IFGT(INT_PublInst,10001, 'I', 'Z'))
22 : TEXT vHint3 = (.vHint1 + .vHint2)
23 : VARBIT vImage = Status_Image FROM WPMI_Indicator WHERE
Status_Indicator = .vHint3
The idea is to display the appropriate image when either of a pair of
DBEdits contains a name that does not (yet) exist in a look-up table so that I
can either add the name or vary the entry. My images indicate both okay
(effectively no image but actually a piece of background colour), both missing
or one or other missing.
In your case I guess that you could place three varbit variables and
display - look-up - either the "clicked" or "unclicked" version of your ABC
letters. Click one of the images and change it to the clicked version and
change both the other two to their unclicked versions. Get clever and change
the hints with property commands as well.
The neat trick is the lookup (variable 23 above) which works "properly" for
all rows in the S/R.
Regards,
Alastair.
----- Original Message -----
From: MDRD
To: RBASE-L Mailing List
Sent: Wednesday, March 04, 2009 9:25 PM
Subject: [RBASE-L] - Re: Scrolling Region and DB Check box
Alastair
I didn't think of that, as long as the image stayed highlighted so you
could see what
the correct answer was that would be OK but can images do that?
Thanks
Marc
----- Original Message -----
From: Alastair Burr
To: RBASE-L Mailing List
Sent: Wednesday, March 04, 2009 2:58 PM
Subject: [RBASE-L] - Re: Scrolling Region and DB Check box
Marc,
I think it was Karen (and if it wasn't apologies to whoever it was) who
gave me an idea about using images in a S/R that stay "correct" from row to row.
Could you use three clickable images for your letters and cycle from
one to the next with each click? So A goes to B; B goes to C and C goes to A.
If you think that might work I'll dig out the method for you - I can't
remember how it works of the top of my head.
Regards,
Alastair.
----- Original Message -----
From: MDRD
To: RBASE-L Mailing List
Sent: Wednesday, March 04, 2009 8:36 PM
Subject: [RBASE-L] - Re: Scrolling Region and DB Check box
Hi Bernie
I really need one column for the A B C
The Bit button almost works but the second
tier gets changed too.
thanks Marc
----- Original Message -----
From: Bernard Lis
To: RBASE-L Mailing List
Sent: Wednesday, March 04, 2009 1:22 PM
Subject: [RBASE-L] - Re: Scrolling Region and DB Check box
Put 3 db check boxes in your region and let them check the one they
want.
You would also have to create 3 more columns in your table called A
B C.
Will that work for you?
Bernie Lis
----- Original Message -----
From: MDRD
To: RBASE-L Mailing List
Sent: Wednesday, March 04, 2009 12:15 PM
Subject: [RBASE-L] - Scrolling Region and DB Check box
HI
I am stuck on something that should be very simple.
I have a Scrolling Region and would love to use a Radio Group
but that is not possible.
I have a text field with 1 character that I want to store A B or C
Instead of having a DB Edit and typing in A B C, I would like
to have the same type of look and feel of the Radio Group.
I have played with Buttons and DB Check boxes but can't seem
to get it figured out. Also I would like the object to be
highlighted
in when using the form so you can tell what the value of the
field is.
An I way off target or is this possible?
Thanks
Marc
----------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.0.237 / Virus Database: 270.11.7/1982 - Release Date:
03/03/09 16:09:00
--------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.0.237 / Virus Database: 270.11.7/1982 - Release Date: 03/03/09
16:09:00
------------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.0.237 / Virus Database: 270.11.8/1984 - Release Date: 03/04/09
19:17:00