appearance

Delphi - application hangs while ShowMessage or MessageDlg

a 夏天 提交于 2021-02-08 09:14:42
问题 why the application hangs when Executing Thread and that thread have ShowMessage or MessageDlg but when using MessageBox everything is working normally. all this happened if the application Appearance not the defualt one >> " Windows " if the selected Appearance " Windows " it will never hangs even with the ShowMessage and MessageDlg 回答1: ShowMessage() and MessageDlg() are not thread-safe. They display VCL Forms, which must only be used in the context of the main UI thread. Windows.MessageBox

tkk checkbutton appears when loaded up with black box in it

五迷三道 提交于 2020-08-07 06:41:13
问题 I create a check button / box, with the following call x=ttk.Checkbutton(tab1,state='disabled',command = lambda j=i,x=k: fCheckButton(j,x)) x.state(['selected']) The box appears fine and is selected, but it appears on load up, with a black box in it, which seems to have nothing to do with the state of it. I have looked for reasons why, but can't actually find anyone with the same problem. thanks 回答1: I've had a similar issue on Windows 7. After loading the app, one of my checkbuttons

Control's Enabled appearance at design time?

醉酒当歌 提交于 2020-05-09 06:00:30
问题 I defined a custom button class, which sets background color when button is enabled/disabled. Enabled appearance at runtime (A): Disabled appearance at runtime (B): Design time appearance is always (A), regardless of the value of Enabled property. I would like my control to appear in designer exactly the way it would appear at run time. Is it possible and, if so, how can do it? Here is what I tried (only relevant parts of the code): Public Class StyledButton : Inherits Button Private p

Control's Enabled appearance at design time?

谁都会走 提交于 2020-05-09 05:59:01
问题 I defined a custom button class, which sets background color when button is enabled/disabled. Enabled appearance at runtime (A): Disabled appearance at runtime (B): Design time appearance is always (A), regardless of the value of Enabled property. I would like my control to appear in designer exactly the way it would appear at run time. Is it possible and, if so, how can do it? Here is what I tried (only relevant parts of the code): Public Class StyledButton : Inherits Button Private p

How to scroll the UITableviewcell scroll up when the keyboard appears? [duplicate]

会有一股神秘感。 提交于 2020-01-01 10:06:10
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Table View scroll when text field begin editing iphone I have loaded many UITextFields in UITableview. Maximum i have 15 UITextFields in UITableView cells. I want to move(Scroll) up the the Cell when the Keyboard/UIActionSheet(UIPickerView) appears. Please suggest/guide me any sample code to solve this problem. Thanks in advance. 回答1: Please try below code in -textFieldShouldBeginEditing .... self.tblView.frame=

How to disable Xcode 5 automatically upgrade xibs to iOS7 appearance

为君一笑 提交于 2019-12-31 10:43:19
问题 If you open an Xcode 4.x project at Xcode 5 and then open a xib at Interface Builder, you will get an alert: NOTE: I only have the issues with the forced iOS7 appearance, auto layout is still turned off for me. And then i accidentally clicked "Alway Upgrade" so Xcode automatically upgrades all my xibs to Xcode 5 and iOS7 prior. But i use Xcode 4.x parallel and it's very annoying to switching back all the xibs when i accidentally open them in Xcode 5. Before opened in XCode 5 interface builder

How to get for each value in one array column number in another array?

不打扰是莪最后的温柔 提交于 2019-12-24 12:19:24
问题 Please look the example sheet. The 'sheet1' is a gradually filled table. In column "A" some kind of ID for each entity. These identifiers are sometimes repeated. In the result I just want to know the appearance number of each ID. To solve this I created 'sheet2'. in 'sheet2' column 'A' list of unique values from 'sheet1'. Then with huge formula in cell 'sheet2!B2' I get all row numbers for each unique value from 'sheet1' separated by columns. And finally I want to get in 'sheet1' column

Color of the text is not changing when style including textColor is applied to textAppearance of textView

一笑奈何 提交于 2019-12-23 18:03:21
问题 I want to reduce my xml code repetition. So I made some standard styles for text in textView. We can apply styles under 'style' attribute as well as 'android:textAppearance' attribute in textView. Below are some styles I made for text appearance- <style name="Grey"> <item name="android:textColor"> #333333 </item> </style> <style name="CodeFont" parent="@android:style/TextAppearance.Medium"> <item name="android:textColor"> #00FF00 </item> <item name="android:typeface">monospace</item> <item

UIAppearance not taking effect on UILabels created programmatically

谁说胖子不能爱 提交于 2019-12-20 17:35:31
问题 We have extended UILabel to be able to apply standard fonts and colors for all uses of a given label type in our apps. Eg. @interface UILabelHeadingBold : UILabel @end In our AppDelegate, we apply fonts and colors like this [[UILabelHeadingBold appearance] setTextColor:<some color>]; [[UILabelHeadingBold appearance] setFont:<some font>]; When adding a UILabel in our XIB's, we can now select the class to be of type UILabelHeadingBold, and it works as expected. The label is shown with the

UISegmentcontrol appearances causing issues

浪尽此生 提交于 2019-12-20 04:52:37
问题 i need help on my UISegment appearances, i set this in my app delegate everything works fine. till i add in this code to change my selected segment color, it caused an issues. i called the IBAction when viewDidLoad. it supposed to show this but instead it show this, i know is the appearance issues but not sure now to fix it...when i commented the appearances codes it will the first picture. appdelegate //normal segment [[UISegmentedControl appearance] setTitleTextAttributes: [NSDictionary