Saving fonts and colors (delphi)

谁说胖子不能爱 提交于 2019-12-20 05:59:16

问题


My system gives the user to change the color and font of several items on multiple forms.

I need a way to save these fonts and colors. My system uses sql so is there a way to save them there or is there another way to save them.


回答1:


You can create a second table named users_prefereces with 2 column: users and preferences.

preferences will be a json string where you save the user preferences. in that way you can have a struct with all the user preferences like a string. when you get the preference string decode that string and you will have the struct.

user_id the id of the usr

second way:

add a column in the users tables alway with json values.



来源:https://stackoverflow.com/questions/18870256/saving-fonts-and-colors-delphi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!