crelf Posted February 21, 2009 Report Share Posted February 21, 2009 I can't seem to find a way to make the text in a table's column headers go vertical - does anyone know who to do this (I'm not sure it's even possible)? I'd be happy to switch to a similar control if that capability exists somewhere else... Quote Link to comment
BobHamburger Posted February 21, 2009 Report Share Posted February 21, 2009 QUOTE (crelf @ Feb 20 2009, 01:46 PM) I can't seem to find a way to make the text in a table's column headers go vertical - does anyone know who to do this (I'm not sure it's even possible)? I'd be happy to switch to a similar control if that capability exists somewhere else... About the only thing that I could find quickly that allows programmatic creation of vertical text is a picture control. That would be an ugly solution... unless, of course, you completely recreated your table in the picture. Create a whole abstraction layer to emulate the behavior of the table in the picture control. While we're at it, add all the other controls and indicators. Make it so that you can drag and drop them. Then you've got a completely dynamically-creatable user interface. Hey, now that we're really deep into the muck, let's just finish the job and write all of LabVIEW within LabVIEW. (Mopping off brow, catching my breath, and backing away from the precipice.) Sorry, I got a little carried away there. Quote Link to comment
crelf Posted February 21, 2009 Author Report Share Posted February 21, 2009 QUOTE (BobHamburger @ Feb 20 2009, 02:21 PM) Create a whole abstraction layer to emulate the behavior of the table in the picture control... I've implemented it just as you described and it looks great - thanks Bob! Quote Link to comment
Grampa_of_Oliva_n_Eden Posted February 21, 2009 Report Share Posted February 21, 2009 THere was (and may still be ) a bug in the table if you used a transparent background and then attempted to edit the contents of a cell. When editing you could see the old text behind where you were typing as if the table was really an XControl that help an image of the table contents in a picture and would show and possition a text box when you clciked on a cell so.... I suspect Bob outlined what is really inside the table. Ben Quote Link to comment
crelf Posted February 21, 2009 Author Report Share Posted February 21, 2009 QUOTE (neBulus @ Feb 20 2009, 04:17 PM) I suspect Bob outlined what is really inside the table. You think tables are really pictures? Quote Link to comment
Grampa_of_Oliva_n_Eden Posted February 21, 2009 Report Share Posted February 21, 2009 QUOTE (crelf @ Feb 20 2009, 04:49 PM) You think tables are really pictures? Try it yourself or look closely at this image (from LV 8.5) http://lavag.org/old_files/monthly_02_2009/post-29-1235167349.png' target="_blank"> I typed in "CRELF" then (after entering the text) went back and deleted all of the character but did NOT complete the change ( did not hit enter of click outside). The text box for entry picked up the transparent color from the table background so you can see through and the text "CRELF" is still visable in the Picture behind the data entry box. This is the bug that leads me to believe that way down somewhere the table is really an XControl that renders the image using a picture control and shows/postions/hides a text box when a user clicks. Ben Quote Link to comment
Rolf Kalbermatter Posted February 22, 2009 Report Share Posted February 22, 2009 QUOTE (crelf @ Feb 20 2009, 05:49 PM) You think tables are really pictures? No way. They exist since before the Picture control was released. But I guess the field edit option has a redrawing problem when dealing with transparent background. Of course deep down there is C code and to enable editing of the field they probably do use the trick of creating a temporary text entry field but fail to account for the case where the table background is transparent and simply copy the table background to the edit control in all cases, which would be certainly desired behavior for non transparent backgrounds. Rolf Kalbermatter Quote Link to comment
ragglefrock Posted February 22, 2009 Report Share Posted February 22, 2009 QUOTE (crelf @ Feb 20 2009, 12:46 PM) I can't seem to find a way to make the text in a table's column headers go vertical - does anyone know who to do this (I'm not sure it's even possible)? I'd be happy to switch to a similar control if that capability exists somewhere else... I tried to figure this out once, but there was just too much vertical knowledge involved. Quote Link to comment
Grampa_of_Oliva_n_Eden Posted February 22, 2009 Report Share Posted February 22, 2009 QUOTE (rolfk @ Feb 21 2009, 04:23 AM) No way. They exist since before the Picture control was released. But I guess the field edit option has a redrawing problem when dealing with transparent background.Of course deep down there is C code and to enable editing of the field they probably do use the trick of creating a temporary text entry field but fail to account for the case where the table background is transparent and simply copy the table background to the edit control in all cases, which would be certainly desired behavior for non transparent backgrounds. Rolf Kalbermatter I'll grant you that. My point is that Bob outlined the work being done somewhere and it could be re-written using the Picture control and we would not know the difference. I think its cool because it gives you a "if all else fails" option. :thumbup: Ben Quote Link to comment
crelf Posted February 23, 2009 Author Report Share Posted February 23, 2009 QUOTE (neBulus @ Feb 21 2009, 10:11 AM) ...it gives you a "if all else fails" option. True, but thankfully I'm not that desperate Quote Link to comment
MikaelH Posted February 24, 2009 Report Share Posted February 24, 2009 QUOTE (crelf @ Feb 23 2009, 04:06 AM) True, but thankfully I'm not that desperate You could always do an XControl and combine the normal Table with a Picture control on the top, just for displaying the columns. //Mikael Quote Link to comment
Grampa_of_Oliva_n_Eden Posted February 24, 2009 Report Share Posted February 24, 2009 QUOTE (MikaelH @ Feb 22 2009, 10:35 PM) You could always do an XControl and combine the normal Table with a Picture control on the top, just for displaying the columns.//Mikael Quoting from Matt's Grandmother "All things in moderation, especially, moderation." Yep, toss the bathwater and keep the baby. Ben Quote Link to comment
crelf Posted February 24, 2009 Author Report Share Posted February 24, 2009 QUOTE (MikaelH @ Feb 22 2009, 10:35 PM) You could always do an XControl and combine the normal Table with a Picture control on the top, just for displaying the columns. Now you're talkin'! I might have a quick look into that today... Quote Link to comment
loserboy Posted October 13, 2009 Report Share Posted October 13, 2009 it may be oversimplifying it but why cant you just put a newline after each character: C \n r \n e \n l \n f \n Quote Link to comment
ShaunR Posted October 13, 2009 Report Share Posted October 13, 2009 If you use a DataGrid .Net control. It has a GdiVertical font attribute you can use. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.