|
Post by Walt Decker on Nov 13, 2021 8:59:12 GMT -5
The font problem is fixed. I had a bout of half-heimers. MS defines 9 levels for font weight, 0 - 900 where a value of 400 is normal and a value of 700 is bold. I was multiplying the bold value by 100 to apply the font weight. I have changed that so if bold is true it applies 700 to the font creation else 400. So a value of 1 will be bold, a value of 0 will be normal.
The crash on close is fixed. I was taking a short cut and having the control destroy all the windows in the control on close. LB did not like that so now the windows are unloaded before the control is destroyed. That lets LB destroy the windows.
|
|
Dennis
Full Member
Old but still active
Posts: 147
|
Post by Dennis on Nov 13, 2021 12:05:15 GMT -5
Great!! Will give everything a whirl!! Haha I love the "half-heimers" description....
|
|
Dennis
Full Member
Old but still active
Posts: 147
|
Post by Dennis on Nov 13, 2021 12:33:37 GMT -5
OK Walt - tested everything with the updated DLL.. There is good news and bad news... Good news first... Bolding works!! The bad news? The strange crashing still exists but goes away when you change the sequence of the close statements i.e., bak to the way I prevented the crash before... Even worse, the tab does not display anything (other controls etc.). It creates the tab window with the tab control but displays nothing. I reverted to the previous DLL and except for the "bolding' it worked again. To test, I changed the sequence of the close statements to the crash configuration and the new DLL and previous DLL both crashed. Ahhh the frustrations of programming! I know what you are feeling well after being in the industry for over 50 years!!
|
|
|
Post by Walt Decker on Nov 13, 2021 13:00:14 GMT -5
That is strange. Are you using LB PRO? Does the new one work in your IDE? Are you getting a flash of windows in the upper left corner of your monitor on close?
See next post for source code, and all support files.
|
|
|
Post by Walt Decker on Nov 13, 2021 14:18:41 GMT -5
Here is source code and support dlls and slls.
See previous post for tkn and exe.
|
|
Dennis
Full Member
Old but still active
Posts: 147
|
Post by Dennis on Nov 13, 2021 18:01:52 GMT -5
Hi Walt Yes I am using LB PRO It is not the crash that concerns me - I can work around that. The total blanking out of the controls in the child windows is the worrying part. I have gone back to the last DLL which is working except for the bold. I will check all the dates and times of your files and mine. No worries - I am sure things will come right I will methodically test everything later today - Sunday 14th...
|
|
|
Post by metro on Nov 13, 2021 19:11:26 GMT -5
LB Pro here too, the latest DLL causes me grief as well. Upon running my code I can see TAB's created (screen flash) with all of my GUI controls (widgets) but the final result seems to be a freshly created cluster on blank TAB's . The original DLL has caused me issues upon closing too but I am yet to understand if there is a pattern. 99% of the time the close is smooth and without a frozen blank #TAB4 (Tab.4Hndl with black shadow) in the upper left part of my screen. Also at times there is a NOTICE "Window Not Found" (with PB in the title)
I managed to get a screenshot on #TAB2 being created. I note that as it has a TEXTEDITOR there is an Edit menu when the tab is initialized. is that menu removed by you Walt with the final tab, or it just a quirk of TAB Controls.
Thanks for the ongoing support Walt. metro
|
|
|
Post by Walt Decker on Nov 14, 2021 0:11:21 GMT -5
Dennis, Metro
Did either of you download the exe, tkn, source and support files I included in my previous posts?
Metro, child windows can not have menus unless they are MDI windows. I will see if I can come up with a style that will allow you to have a menu.
Dennis, Metro, check your personal messages. I think I should take this to a private level.
|
|
|
Post by metro on Nov 14, 2021 4:47:32 GMT -5
Dennis, Metro
Did either of you download the exe, tkn, source and support files I included in my previous posts?
Metro, child windows can not have menus unless they are MDI windows. I will see if I can come up with a style that will allow you to have a menu.
Dennis, Metro, check your personal messages. I think I should take this to a private level.
Thanks Walt, yes I have downloaded and am getting my head around the slight change in variable names. Don't waste any time on the menu, I can use buttons for the couple of things I need to do.
I am using, the sample code you supplied in your very first post (within TAB_CONTROL.txt) as the error I get is rare, I am happy to stick with it, I have 2000 lines of code that would need to be inserted into your new framework. No time for that ATM.
Thanks for the help
Metro
|
|