The Glade 4.0 https://gladerebooted.net/ |
|
Tab Order https://gladerebooted.net/viewtopic.php?f=5&t=5368 |
Page 1 of 1 |
Author: | darksiege [ Sat Jan 29, 2011 8:13 pm ] |
Post subject: | Tab Order |
I am trying to set up a Tab Order for a form I am designing for class. When I open the tab order stuff it starts with 0 then the sub categories are 0.1 and up then 1, 1.0 and up, etc. Which determines the priority order? Would 0 get the priority or it is high to low? |
Author: | Shelgeyr [ Sat Jan 29, 2011 11:26 pm ] |
Post subject: | |
Typically, low to high. |
Author: | darksiege [ Sun Jan 30, 2011 2:23 am ] |
Post subject: | Re: Tab Order |
now... if I may ask a follow up question: I have a field that is entered with an integer... and when you check a radio button it sets a second text box (hidden) with a value. Now when I click a button it unhides a DiplayText, which I am trying to populate as follows: Code: DisplayText.Text = Val(TimeText.Text) + Val(OffsetBox.Text) The issue I am encountering is that in order to actually show any text in the box I need to manually place my cursor in the window and press any key. Once I do this it displays as expected. Isn't there a way to automatically display the data without the need to go into the field that way? |
Author: | Shelgeyr [ Sun Jan 30, 2011 11:24 am ] |
Post subject: | |
Depends on the language. If you're doing this in some flavor of VB, Application.DoEvents might be what you need. If it's not related to VB, you'll need someone else's advice cuz that's the only language I'm currently familiar enough with to offer assistance. |
Author: | darksiege [ Sun Jan 30, 2011 4:00 pm ] |
Post subject: | |
my apologies... yeah I am using VB 2010 |
Author: | Lex Luthor [ Sun Jan 30, 2011 5:49 pm ] |
Post subject: | |
I think you need to move the code that sets the text to within the event callback that happens when you click the radio button. If this doesn't help, you could paste all your code within a [spoiler ][code ][/code ][/spoiler ] and I could probably help you better. |
Author: | darksiege [ Mon Jan 31, 2011 12:40 am ] |
Post subject: | Re: Tab Order |
Spoiler: The bolded part is what is not refreshing until I enter the field and press a key. Other than this automatic update, the only other thing I want to figure out is how to use the same form to display a xxx time to UTC conversion. But I will get to that later |
Author: | Shelgeyr [ Mon Jan 31, 2011 9:38 am ] |
Post subject: | |
Interesting. I'd have gone with a single event for changing the value of the radio button group, with a switch statement to test the value of the group and set the text accordingly. Using separate events for each button is an approach I wouldn't have come up with. In response to the problem you're actually having ... the only place I see in your code in which the value of DisplayText.Text gets changed is within the event that's triggered by the change to said value. I recommend altering the event to be triggered when the value of OffsetBox.Text is changed, since that's what will be modified each time a radio button is clicked. |
Author: | Screeling [ Mon Jan 31, 2011 10:32 am ] |
Post subject: | |
I'm not sure why that behavior occurs. I created a small form with a textbox and a button. Textbox was set with Text of 1 and Visible = False. I set an event to make the textbox Visible the same way you did it, and it works without having to click in there. We're still using Visual Studio 2005 at work though and it doesn't seem to have that Me.DisplayText.Refresh() method. No weird defaults as far as fonts go? |
Author: | Lex Luthor [ Mon Jan 31, 2011 12:22 pm ] |
Post subject: | |
I think the issue is that Me.DisplayText.Refresh() does not cause DisplayText_TextChanged() to happen. You should put this code: DisplayText.Text = Val(TimeText.Text) + Val(OffsetBox.Text) in DisplayButton_Click where Me.DisplayText.Refresh() is. |
Author: | darksiege [ Mon Jan 31, 2011 4:00 pm ] |
Post subject: | |
Thank you guys so very much. Lex, that did exactly what I wanted it to. |
Page 1 of 1 | All times are UTC - 6 hours [ DST ] |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |