Thread: Bidmaron's Coding Questions
-
April 24th, 2014, 05:24 #21Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
April 24th, 2014, 05:34 #22
Or use the onLogin event - this gives the username with the event: https://www.fantasygrounds.com/refdoc/User.xcp#onLogin
Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
April 27th, 2014, 02:24 #23
Archangel
- Join Date
- Apr 2008
- Location
- Virginia Beach
- Posts
- 3,096
String control question
With trying to support internationalization, I'm running into problems. I have three controls I need to place side-by-side. First is a checkbox (my other question in Merge rules pertains), then a label string, and a stringcycler. The stringcycler contents and the label need to use string resources. It is easy to align the label to the checkbox. But how do I align the cycler to the label without a gap?
When I look at windowcontrol, it provides a minimum sizelimit tag. If I specify that, will the label auto-adjust the control width so I can anchor the cycler to the right edge of the label?
-
April 30th, 2014, 02:59 #24
Archangel
- Join Date
- Apr 2008
- Location
- Virginia Beach
- Posts
- 3,096
I have tried to adjust a window height by calling setSize within the window's onInit event, but it is not working. Is there a prohibition on setting window size within its onInit event? I have debugged the routine and confirmed that the size I am setting exceeds the current size, but the window remains the same size.
-
April 30th, 2014, 22:34 #25
Archangel
- Join Date
- Apr 2008
- Location
- Virginia Beach
- Posts
- 3,096
OK, found my own answer. To have the window resize as it is populated, you have to eliminate the appropriate dimension from the <placement> tag. Thus, if you want the window to expand or shrink vertically, don't put in the height tag. If you want the width fixed, enter the value you want, usually the frame width.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks