Hi
When one of the list item is focused in web page, the item looks something like top image.
I would like to make all the list item looks focused, like bottom image.
Is it possible to do so by setting some property or using theme/styles?
I appreciate your kind advice.
Best Regards,
Megumi Sawada
Making list item focused
-
MegumiSawada
- Posts: 80
- Joined: Tue Mar 22, 2016 1:45 pm
- Location: Tokyo, Japan
Re: Making list item focused
You can create a custom DrawStyle in your theme named DrawStyle1 (or whatever).
You can make this drawstyle look like your focused style.
Then attach that drawstyle to all your list items.
The list items will not be "focused" but they will look like it.
Hope this helps,
Joe
Then attach that drawstyle to all your list items.
Code: Select all
#STD_INT := 1
dountil cond(#STD_INT > 5)
#STD_STRNG := "Hello " + #STD_INT.AsString
add_entry to_list(#List1)
#List1.CurrentItem.ThemeDrawStyle := DrawStyle1
#STD_INT += 1
enduntil
Hope this helps,
Joe
-
MegumiSawada
- Posts: 80
- Joined: Tue Mar 22, 2016 1:45 pm
- Location: Tokyo, Japan
Re: Making list item focused
Hi Joe,
Thank you for your advice!
There might be some restrictions, but with custom DrawStyle ,it seems I can do similar things to what I wanted to.
Best Regards,
Megumi
Thank you for your advice!
There might be some restrictions, but with custom DrawStyle ,it seems I can do similar things to what I wanted to.
Best Regards,
Megumi
Re: Making list item focused
Wouldn't you just mark every item as selected, and then the current draw style is used?
selectList #Grid
#grid.currentItem.selected := true
upd_Entry #grid
endSelect
Grid selection style has to be multiple.
I don't know for sure if upd_entry is required.
Art
selectList #Grid
#grid.currentItem.selected := true
upd_Entry #grid
endSelect
Grid selection style has to be multiple.
I don't know for sure if upd_entry is required.
Art
Art Tostaine
- Stewart Marshall
- Posts: 417
- Joined: Thu Nov 05, 2015 5:25 pm
Re: Making list item focused
You could set the items to be selected (UPD_ENTRY is not required), but this would change the moment you click in the list. The clicked item would become the FocusItem and all others would become Selected(False).
Far better then to use a DrawStyle as Joe suggested
Far better then to use a DrawStyle as Joe suggested