Toggle High Intensity in a show command
Laura Brody
laura.k.brody at gmail.com
Sat Jul 22 11:49:02 PDT 2017
I have also noticed that on some systems, regular and high intensity colors
are the same. You may want to try just using different colors (blue and
green or white and yellow rather than trying to toggle high intensity).
If you go to Configuration Editor, F6, U-update, F1-Help, F9-Search then 2b
for Color Codes, you will see all of the colors you
can have filePro display. Page Down for the next page. The colors may or
may not be different. On some system, the 2nd page may blink. Your mileage
may vary.
Laura Brody
On Sat, Jul 22, 2017 at 2:38 PM, Laura Brody <laura.k.brody at gmail.com>
wrote:
> In the online help files, I used the SHOW codes to "draw" pictures of
> popups, listboxes and menus in the examples that I created. Here is the
> entry for LISTBOX (in dcabe.hlp)
>
> -----------
> @@@ LISTBOX()
> v4.1 \r n = LISTBOX(array[,beg[,end[,r[,c[,h[,w[,init]]]]]]]) \r -
> Display
> the elements in an array and allow the user to select one.
> If the user presses \KY, the result will be "0",
> otherwise the position of the element chosen.
>
> Colors used: POPUPNORMAL and POPUPINVERSE.
>
> Enhanced: v5.0 - added 8th parameter to specify initial highlight position,
> intervening optional parameters can be left off entirely.
>
> Example:
> then: dim nums(5)(8,*); nums["1"] = "One"; nums["2"] = "Two"
> then: nums["3"] = "Three"; nums["4"] = "Four"; nums["5"] = "Five"
> then: x = LISTBOX(nums,"3","5") ' Only display elements 3, 4 & 5.
>
> If the user chooses the first element in the listbox, "1"
> will be returned even though it is the 3rd element of
> the array.
>
> (continued)
> @@@
> ( \r LISTBOX \r continued)
> Example:
> then: dim gender(3)(7,*); gender["1"]="Male"
> then: gender["2"] = "Female"; gender["3"]="Unknown"
> then: x = LISTBOX(gender,"","","","","","","3")
> then: ' x = LISTBOX(gender,,,,,,,"3") produces the same result.
> if: x eq "0" ' User pressed \KY.
> then: end
> then: sex = gender[x] ' Put choice in "sex" field.
>
> With POPUPNORMAL
> set to 0x2f and \A2f\G7\G0\G0\G0\G0\G0\G0\G0\
> G0\G0\G0\G0\G9\A-
> POPUPINVERSE set \A2f\G. Male \G.\B0 \B1\A-
> to 0x4f, the above \A2f\G. Female \G.\B0 \B1\A-
> code will generate \A2f\G.\A77 \A4f Unknown \A2f \G.\B0
> \B1\A-<-cursor, highlight bar
> this listbox \A2f\G1\G0\G0\G0\G0\G0\G0\G0\G0\G0\G0\G0\G3\B0
> \B1\A-
> centered on the screen: \B0 \B1\B-<- dropshadow
>
> ----------
>
> As you can see, I can mix and match background, foreground and graphics
> characters in the SHOW statement to
> get the desired result. BTW, "\A-" says to change the attributes back to
> what they were originally. Anything with "\G"
> followed by a number or character is a graphics character.
>
> Does this help? Do you have a specific problem that you need solved?
>
> Laura Brody
>
>
> On Sat, Jul 22, 2017 at 1:21 PM, Mike via Filepro-list <
> filepro-list at lists.celestial.com> wrote:
>
>> Can someone please help me out with the correct syntax to get the high
>> intensity to work in a show command?
>>
>> This is what I am trying but regardless of using the \i or not using \i
>> it shows the exact same color.
>>
>> show ("21","16") "\b0\i\f5Select Department"
>>
>> and this is all the documentation says without even one example to show
>> you where in the show command it's supposed to go, that took me a while...
>>
>> "Show Codes (Color only):
>> \I Toggles high intensity
>> \Bn Sets background color
>> \Fn Sets foreground color
>> \Ann Sets attribute (background+foreground)
>> \C Characters only"
>>
>> Windows 2008 Server, Filepro 5.0.09 DN9
>>
>> Any help is greatly appreciated,
>> Mike
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Filepro-list mailing list
>> Filepro-list at lists.celestial.com
>> Subscribe/Unsubscribe/Subscription Changes
>> http://mailman.celestial.com/mailman/listinfo/filepro-list
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20170722/f318e1b5/attachment.html>
More information about the Filepro-list
mailing list