Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » TreeCtrl » Scrollbar doesnt appear on TreeCtrl (Scrollbar doesnt appear on TreeCtrl)
Scrollbar doesnt appear on TreeCtrl [message #60474] Thu, 29 February 2024 19:25 Go to next message
victor_hg is currently offline  victor_hg
Messages: 3
Registered: February 2024
Junior Member
Hi,
First of all, sorry if i'm not very polite (English is not my native language)
I'm developing an application with the layout and everything is working great but I have an issue with the TreeCtrl (I'm adding elements to it) and it just truncates the output, I mean, the scrollbar never appears as you can see on the first image.



Also there is a strange behavior, after some minutes, if I just let the program running on background and then I go back to it, the scrollbar just appears (as you can see on the second image).

  • Attachment: BusquedaIPs.zip
    (Size: 161.34KB, Downloaded 18 times)
  • Attachment: upp_2.png
    (Size: 33.04KB, Downloaded 26 times)
  • Attachment: upp_1.png
    (Size: 36.46KB, Downloaded 21 times)
Re: Scrollbar doesnt appear on TreeCtrl [message #60475 is a reply to message #60474] Mon, 04 March 2024 08:45 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3357
Registered: August 2008
Senior Veteran
Hi Victor

In my computer (Windows, CLANG) your demo don't run. It crashes here:

ProgramaBusqueda::ProgramaBusqueda()
{
	CtrlLayout(*this, "Busqueda");
	
...
	//leyendo archivo configuracion
	ifstream archivo_config( "config" );              // This file doesn't exist. No error check
	string str_temp;
		//leyendo primera linea (color rojo)      // This indentation is not justified?
		getline (archivo_config, str_temp);       // The file is read even if it is not opened
		bg_rojo.SetData(stoi(str_temp));          // stoi() throws an exception as str_temp is empty. No catch catches this exception. Program crashes.

It seems you have submitted your full application. Please to help you better upload the simplest test case and be sure it runs.


Best regards
Iñaki

[Updated on: Mon, 04 March 2024 08:46]

Report message to a moderator

Re: Scrollbar doesnt appear on TreeCtrl [message #60478 is a reply to message #60475] Mon, 04 March 2024 15:14 Go to previous messageGo to next message
victor_hg is currently offline  victor_hg
Messages: 3
Registered: February 2024
Junior Member
Sorry, my bad
I forgot to upload this file (the file called "config")
Which has to be in the same directory as the executable generated
  • Attachment: config
    (Size: 0.01KB, Downloaded 12 times)
Re: Scrollbar doesnt appear on TreeCtrl [message #60479 is a reply to message #60478] Mon, 04 March 2024 15:53 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3357
Registered: August 2008
Senior Veteran
Hi Victor

Including the file, the program opens, but it looks like this.
By touching the controls I have managed to get the background colour not to be black, but I can't get the TreeCtrl to load with data.
index.php?t=getfile&id=6909&private=0
Please, if you want us to help you, prepare a simple demo that does what it needs to do to demonstrate the problem.
You can't ask the person who is going to help you to work harder giving you the solution, than the time you spend preparing the example case. Very Happy
  • Attachment: Untitled.png
    (Size: 7.36KB, Downloaded 70 times)


Best regards
Iñaki
icon6.gif  Re: Scrollbar doesnt appear on TreeCtrl [message #60481 is a reply to message #60479] Mon, 04 March 2024 18:16 Go to previous message
victor_hg is currently offline  victor_hg
Messages: 3
Registered: February 2024
Junior Member
You're right
Thanks for your time

I found the problem,
It seems that it just that i was calling to the Refresh() method on the overriden Paint() method, the problem get solved by just comment that line, now the scrollbar appears!
Previous Topic: OptionTree problems
Goto Forum:
  


Current Time: Sun Apr 28 13:47:30 CEST 2024

Total time taken to generate the page: 0.02397 seconds